/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Enhanced Color Palette - Opera Gaming Inspired */
  --primary-bg: #0a0a0f;
  --bg-primary: #0a0a0f; /* Added for breadcrumbs compatibility */
  --secondary-bg: #1a1a2e;
  --accent-bg: #16213e;
  --primary-red: #e94560;
  --primary-blue: #0f3460;
  --accent-blue: #00d4ff;
  --accent-purple: #9b59b6;
  --accent-green: #2ecc71;
  --accent-orange: #f39c12;
  --text-primary: #ffffff;
  --text-secondary: #b8b8b8;
  --text-muted: #6c6c6c;
  --border-color: #2a2a3e;
  --success-color: #00ff88;
  --warning-color: #ffaa00;

  /* Typography */
  --font-primary: 'Orbitron', monospace;
  --font-secondary: 'Rajdhani', sans-serif;

  /* Spacing */
  --container-max-width: 1200px;
  --section-padding: 80px 0;
}

body {
  font-family: var(--font-secondary);
  background: var(--primary-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
}

/* Body overflow control for modals */
body.modal-open {
  overflow: hidden;
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section - Extended background */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding-top: 70px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--primary-bg) 0%,
    var(--secondary-bg) 50%,
    var(--accent-bg) 100%
  );
}

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

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

.floating-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.floating-particles::before,
.floating-particles::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent-blue);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.floating-particles::before {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.floating-particles::after {
  top: 60%;
  right: 30%;
  animation-delay: 3s;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1000px;
  padding: 60px 20px 40px;
}

.hero-title {
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  margin-bottom: 30px;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(45deg, var(--accent-blue), var(--primary-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight-text {
  color: var(--primary-red);
  text-shadow: 0 0 20px rgba(233, 69, 96, 0.5);
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #d1d9e0;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* How It Works Section - Inside Hero */
.how-it-works-hero {
  position: relative;
  z-index: 2;
  padding: 60px 0;
  width: 100%;
}

.section-title {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 60px;
  font-size: 1.2rem;
  font-weight: 400;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  text-align: center;
  padding: 30px 20px;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 15px;
  transition: all 0.3s ease;
  height: auto;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.step:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
  border-color: var(--accent-blue);
}

.step-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(45deg, var(--accent-blue), var(--primary-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: white;
  flex-shrink: 0;
}

.step h3 {
  font-family: var(--font-primary);
  margin-bottom: 15px;
  color: var(--accent-blue);
  font-size: 1.2rem;
  white-space: nowrap;
}

.step p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.5;
  flex-grow: 1;
}

.step-arrow {
  display: none;
}

/* Hero Messages Section */
.hero-messages {
  position: relative;
  z-index: 2;
  padding: 40px 0 60px;
  width: 100%;
}

.messages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.message-of-day {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 150, 200, 0.1));
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 12px;
  padding: 25px;
  backdrop-filter: blur(10px);
  max-height: 200px;
  overflow-y: auto;
}

.message-of-day::-webkit-scrollbar {
  width: 6px;
}

.message-of-day::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.message-of-day::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.5);
  border-radius: 3px;
}

.motd-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: var(--accent-blue);
  font-weight: 700;
  font-size: 1.1rem;
}

.message-of-day p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #e0e6ed;
  font-weight: 500;
}

.trending-box {
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.15), rgba(200, 50, 80, 0.1));
  border: 1px solid rgba(233, 69, 96, 0.3);
  border-radius: 12px;
  padding: 25px;
  text-align: left;
  max-height: 200px;
  overflow-y: auto;
}

.trending-box::-webkit-scrollbar {
  width: 6px;
}

.trending-box::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.trending-box::-webkit-scrollbar-thumb {
  background: rgba(233, 69, 96, 0.5);
  border-radius: 3px;
}

.trending-box h3 {
  color: var(--primary-red);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
}

.trending-box ul {
  list-style: none;
}

.trending-box li {
  margin-bottom: 12px;
}

.trending-box a {
  color: #d1d9e0;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
}

.trending-box a:hover {
  color: var(--primary-red);
}

/* Stats Section - Enhanced Gaming Theme */
.stats-section {
  padding: var(--section-padding);
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  position: relative;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 50%, rgba(233, 69, 96, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(155, 89, 182, 0.1) 0%, transparent 50%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 2;
}

.stat-card {
  background: linear-gradient(145deg, rgba(26, 26, 46, 0.8), rgba(22, 33, 62, 0.8));
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 15px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

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

.stat-card:hover::before {
  left: 100%;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-blue);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.stat-icon {
  font-size: 3rem;
  color: var(--accent-blue);
  margin-bottom: 20px;
}

.stat-number {
  font-family: var(--font-primary);
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 1.2rem;
  font-weight: 500;
}

/* Hot Cases Section */
.hot-cases {
  padding: var(--section-padding);
  background: var(--secondary-bg);
}

.hot-cases .section-subtitle {
  font-size: 1.3rem;
  margin-bottom: 60px;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.case-card {
  background: var(--primary-bg);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--accent-blue);
}

.vote-status {
  padding: 12px 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}

.vote-status.not-voted {
  background: rgba(255, 170, 0, 0.1);
  color: var(--warning-color);
  border-bottom: 1px solid rgba(255, 170, 0, 0.2);
}

.vote-status.voted {
  background: rgba(0, 255, 136, 0.1);
  color: var(--success-color);
  border-bottom: 1px solid rgba(0, 255, 136, 0.2);
}

.case-video {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

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

.case-card:hover .case-video img {
  transform: scale(1.05);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0, 212, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  transition: all 0.3s ease;
}

.case-card:hover .play-button {
  background: var(--accent-blue);
  transform: translate(-50%, -50%) scale(1.1);
}

.case-info {
  padding: 20px;
}

.vote-count {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  margin-bottom: 15px;
  font-weight: 500;
  font-size: 1rem;
}

.case-tags {
  margin-bottom: 15px;
}

.tag {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.game-tag {
  background: rgba(0, 212, 255, 0.2);
  color: var(--accent-blue);
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.game-tag:hover {
  background: rgba(0, 212, 255, 0.3);
  transform: scale(1.05);
}

.case-author {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 1rem;
}

/* Hero CTA Section */
.hero-cta {
  position: relative;
  z-index: 3;
  padding: 40px 0 60px;
}

.cta-content-hero {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.cta-content-hero h2 {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 20px;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.cta-content-hero p {
  font-size: 1.4rem;
  color: #e0e6ed;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
}

.cta-buttons-hero {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn-hero {
  padding: 18px 35px;
  border: none;
  border-radius: 12px;
  font-family: var(--font-secondary);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  min-width: 200px;
  justify-content: center;
}

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

.cta-btn-hero:hover::before {
  left: 100%;
}

.cta-btn-hero.primary {
  background: linear-gradient(135deg, var(--accent-blue), var(--primary-blue));
  color: white;
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.cta-btn-hero.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 212, 255, 0.5);
}

.cta-btn-hero.secondary {
  background: linear-gradient(135deg, var(--primary-red), #c0392b);
  color: white;
  box-shadow: 0 8px 25px rgba(233, 69, 96, 0.3);
}

.cta-btn-hero.secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(233, 69, 96, 0.5);
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: var(--font-secondary);
}

.cta-btn.primary {
  background: linear-gradient(45deg, var(--accent-blue), var(--primary-blue));
  color: white;
  box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
}

.cta-btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

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

.cta-btn.secondary:hover {
  background: var(--primary-red);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(233, 69, 96, 0.3);
}

/* Hot Community Posts Wall Section */
.community-posts-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
  border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.community-posts-section .section-header {
  text-align: center;
  margin-bottom: 50px;
}

.community-posts-section .section-header h2 {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 15px;
  text-shadow: 0 0 20px rgba(255, 87, 34, 0.3);
}

.community-posts-section .section-header p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.posts-wall {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.community-post {
  background: linear-gradient(135deg, rgba(30, 35, 45, 0.9), rgba(20, 25, 35, 0.8));
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 15px;
  padding: 25px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.community-post:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(0, 212, 255, 0.4);
}

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

.post-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--accent-blue);
}

.author-info h4 {
  color: var(--text-primary);
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.author-info .post-time {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

.community-tag {
  background: linear-gradient(45deg, var(--primary-red), #c0392b);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.community-tag:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
}

.post-media {
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
}

.post-video,
.post-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.2rem;
}

.post-content {
  margin-bottom: 20px;
}

.post-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  font-size: 1rem;
}

.post-toolbar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.toolbar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.toolbar-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.toolbar-btn.upvoted {
  color: var(--accent-blue);
  background: rgba(0, 212, 255, 0.1);
}

.toolbar-btn.downvoted {
  color: var(--primary-red);
  background: rgba(233, 69, 96, 0.1);
}

.toolbar-btn.active {
  color: var(--accent-blue);
}

.comment-section {
  margin-top: 20px;
  display: none;
}

.comment-section.expanded {
  display: block;
  animation: slideDown 0.3s ease;
}

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

.comment-input {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.comment-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 2px solid var(--accent-blue);
  flex-shrink: 0;
}

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

.comment-textarea {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
  min-height: 80px;
}

.comment-textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.comment-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comment-tools {
  display: flex;
  gap: 10px;
}

.comment-tool {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.comment-tool:hover {
  color: var(--accent-blue);
  background: rgba(0, 212, 255, 0.1);
}

.comment-submit {
  background: linear-gradient(45deg, var(--accent-blue), var(--primary-blue));
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.comment-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

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

.comment {
  display: flex;
  gap: 12px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-content {
  flex: 1;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.comment-author {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.comment-time {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.comment-text {
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.comment-actions-bar {
  display: flex;
  align-items: center;
  gap: 15px;
}

.comment-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.comment-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.comment-btn.upvoted {
  color: var(--accent-blue);
}

.comment-btn.downvoted {
  color: var(--primary-red);
}

.my-comment {
  border-left: 3px solid var(--accent-blue);
}

.my-comment .comment-actions-bar {
  gap: 10px;
}

.edit-btn,
.delete-btn {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.edit-btn:hover {
  color: var(--primary-blue);
}

.delete-btn:hover {
  color: var(--primary-red);
}

/* Responsive Design */
@media (max-width: 768px) {
  .community-posts-section {
    padding: 60px 0;
  }

  .posts-wall {
    gap: 20px;
  }

  .community-post {
    padding: 20px;
  }

  .post-toolbar {
    flex-wrap: wrap;
    gap: 15px;
  }

  .comment-input {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-link span {
    font-size: 12px;
  }

  .nav-link {
    padding: 8px 10px;
    gap: 4px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: rgba(10, 10, 15, 0.98);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    padding: 100px 0 20px 0;
    gap: 10px;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-link {
    justify-content: center;
    padding: 15px 20px;
    margin: 0 20px;
    border-radius: 10px;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .steps-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .messages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

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

/* Hot Community Posts Wall Section */
.community-posts-section {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
  padding: 80px 0;
  position: relative;
}

.community-posts-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(0, 123, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(220, 53, 69, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  z-index: 2;
}

.section-header h2 {
  font-family: 'Orbitron', monospace;
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
  text-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
}

.section-header h2 i {
  color: #dc3545;
  margin-right: 15px;
  animation: flicker 2s infinite alternate;
}

.section-header p {
  font-size: 1.2rem;
  color: #b8c5d1;
  max-width: 600px;
  margin: 0 auto;
}

.posts-wall {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 25px;
  position: relative;
  z-index: 2;
}

/* Individual Post Styling */
.community-post {
  background: rgba(20, 25, 40, 0.9);
  border: 1px solid rgba(0, 123, 255, 0.2);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.community-post::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #007bff, #dc3545, #007bff);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.community-post:hover {
  border-color: rgba(0, 123, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 123, 255, 0.1);
}

.community-post:hover::before {
  opacity: 1;
}

/* Post Header */
.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(45deg, #007bff, #dc3545);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.1rem;
}

.author-info h4 {
  color: #ffffff;
  font-size: 1rem;
  margin: 0;
  font-weight: 600;
}

.author-info .post-time {
  color: #8a9ba8;
  font-size: 0.85rem;
  margin: 2px 0 0 0;
}

.community-tag {
  background: rgba(0, 123, 255, 0.2);
  color: #007bff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 123, 255, 0.3);
}

.community-tag:hover {
  background: rgba(0, 123, 255, 0.3);
  transform: scale(1.05);
}

/* Post Content */
.post-content {
  margin-bottom: 15px;
}

.post-title {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.post-text {
  color: #d1d9e0;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.post-media {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 15px;
  position: relative;
}

.post-media img,
.post-media video {
  width: 100%;
  height: auto;
  display: block;
}

.post-media video {
  max-height: 400px;
  object-fit: cover;
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.play-overlay:hover {
  background: rgba(0, 123, 255, 0.8);
  transform: translate(-50%, -50%) scale(1.1);
}

/* Post Actions */
.post-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.vote-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.vote-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 12px;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.vote-btn {
  background: none;
  border: none;
  color: #8a9ba8;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

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

.vote-btn.upvoted {
  color: #007bff;
  background: rgba(0, 123, 255, 0.2);
}

.vote-btn.downvoted {
  color: #dc3545;
  background: rgba(220, 53, 69, 0.2);
}

.vote-count {
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  min-width: 30px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  line-height: 1;
  margin: 0;
  padding: 0;
}

.action-buttons {
  display: flex;
  gap: 15px;
}

.action-btn {
  background: none;
  border: none;
  color: #8a9ba8;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.action-btn:hover {
  color: #007bff;
  background: rgba(0, 123, 255, 0.1);
}

.action-btn.report-btn:hover {
  color: #dc3545;
  background: rgba(220, 53, 69, 0.1);
}

.comment-count {
  font-weight: 500;
}

/* Comments Section */
.comments-section {
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: none;
}

.comments-section.active {
  display: block;
}

.comment-form {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  align-items: flex-start;
  width: 100%;
}

.comment-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: linear-gradient(45deg, #28a745, #007bff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  flex-shrink: 0;
}

.comment-input-container {
  flex: 1;
  position: relative;
  width: 100%;
  max-width: calc(100% - 45px); /* Account for avatar width + gap */
}

.comment-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px;
  color: #ffffff;
  font-size: 0.9rem;
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
  box-sizing: border-box;
}

.comment-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

.comment-input::placeholder {
  color: #8a9ba8;
}

.comment-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.comment-options {
  display: flex;
  gap: 10px;
}

.comment-option {
  background: none;
  border: none;
  color: #8a9ba8;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.comment-option:hover {
  color: #007bff;
  background: rgba(0, 123, 255, 0.1);
}

.comment-submit {
  background: #007bff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.comment-submit:hover {
  background: #0056b3;
  transform: translateY(-1px);
}

.comment-submit:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
}

/* Individual Comments */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.comment {
  display: flex;
  gap: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border-left: 3px solid rgba(0, 123, 255, 0.3);
}

.comment-content {
  flex: 1;
}

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

.comment-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-author-name {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
}

.comment-time {
  color: #8a9ba8;
  font-size: 0.8rem;
}

.comment-menu {
  position: relative;
}

.comment-menu-btn {
  background: none;
  border: none;
  color: #8a9ba8;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.comment-menu-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.comment-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(20, 25, 40, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 8px 0;
  min-width: 120px;
  z-index: 1000;
  display: none;
  backdrop-filter: blur(10px);
}

.comment-dropdown.active {
  display: block;
}

.comment-dropdown button {
  width: 100%;
  background: none;
  border: none;
  color: #d1d9e0;
  padding: 8px 16px;
  text-align: left;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.comment-dropdown button:hover {
  background: rgba(0, 123, 255, 0.1);
  color: #007bff;
}

.comment-dropdown button.delete:hover {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.comment-text {
  color: #d1d9e0;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 8px;
}

.comment-actions {
  display: flex;
  gap: 15px;
}

.comment-vote {
  display: flex;
  align-items: center;
  gap: 5px;
}

.comment-vote-btn {
  background: none;
  border: none;
  color: #8a9ba8;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 2px;
  transition: all 0.3s ease;
}

.comment-vote-btn:hover {
  color: #007bff;
}

.comment-vote-btn.upvoted {
  color: #007bff;
}

.comment-vote-btn.downvoted {
  color: #dc3545;
}

.comment-vote-count {
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 500;
  min-width: 20px;
  text-align: center;
}

/* Edit Comment Form */
.edit-comment-form {
  margin-top: 10px;
}

.edit-comment-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 10px;
  color: #ffffff;
  font-size: 0.9rem;
  resize: vertical;
  min-height: 60px;
  font-family: inherit;
}

.edit-comment-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

.edit-comment-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.edit-save-btn,
.edit-cancel-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.edit-save-btn {
  background: #28a745;
  color: white;
}

.edit-save-btn:hover {
  background: #218838;
}

.edit-cancel-btn {
  background: #6c757d;
  color: white;
}

.edit-cancel-btn:hover {
  background: #5a6268;
}

/* Animations */
@keyframes flicker {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Responsive Design for Community Posts */
@media (max-width: 768px) {
  .community-posts-section {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .posts-wall {
    padding: 0 15px;
  }

  .community-post {
    padding: 15px;
  }

  .post-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .post-actions {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .vote-section {
    width: 100%;
    justify-content: space-between;
  }

  .comment-form {
    flex-direction: column;
    gap: 15px;
  }

  .comment-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* Custom Delete Confirmation Modal */
.delete-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
  animation: modalFadeIn 0.3s ease;
}

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

.delete-modal-content {
  background: linear-gradient(135deg, rgba(30, 35, 45, 0.95), rgba(20, 25, 35, 0.95));
  border: 2px solid rgba(220, 53, 69, 0.3);
  border-radius: 15px;
  padding: 30px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.3s ease;
}

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

.delete-modal-icon {
  font-size: 3rem;
  color: #dc3545;
  margin-bottom: 20px;
  animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.delete-modal-title {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  font-family: 'Orbitron', monospace;
}

.delete-modal-message {
  color: #b8c5d1;
  font-size: 1rem;
  margin-bottom: 25px;
  line-height: 1.5;
}

.delete-modal-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.delete-modal-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 100px;
}

.delete-confirm-btn {
  background: linear-gradient(45deg, #dc3545, #c82333);
  color: white;
  border: 2px solid transparent;
}

.delete-confirm-btn:hover {
  background: linear-gradient(45deg, #c82333, #bd2130);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

.delete-cancel-btn {
  background: transparent;
  color: #8a9ba8;
  border: 2px solid rgba(138, 155, 168, 0.3);
}

.delete-cancel-btn:hover {
  background: rgba(138, 155, 168, 0.1);
  color: #ffffff;
  border-color: rgba(138, 155, 168, 0.5);
  transform: translateY(-2px);
}

/* Mobile Notification Badge Fix - Let JavaScript handle it */
@media (max-width: 768px) {
  /* Let JavaScript control the badge visibility */
}

/* Hero Auth Button Styles */
.hero-auth-button {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.auth-trigger-btn {
  background: linear-gradient(135deg, var(--primary-red), var(--accent-purple));
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  color: var(--text-primary);
  font-family: var(--font-secondary);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 25px rgba(233, 69, 96, 0.3);
  position: relative;
  overflow: hidden;
}

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

.auth-trigger-btn:hover::before {
  left: 100%;
}

.auth-trigger-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(233, 69, 96, 0.4);
  background: linear-gradient(135deg, #ff4d6d, #a569bd);
}

.auth-trigger-btn i {
  font-size: 20px;
}

/* Auth Modal Styles - Glassmorphism Effect */
.auth-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.auth-modal {
  background: rgba(26, 26, 46, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  width: 90%;
  max-width: 450px;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  transform: scale(0.7) translateY(50px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.auth-modal-overlay.active .auth-modal {
  transform: scale(1) translateY(0);
}

/* Custom scrollbar for auth modal content */
.auth-modal-content::-webkit-scrollbar {
  width: 6px;
}

.auth-modal-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.auth-modal-content::-webkit-scrollbar-thumb {
  background: rgba(233, 69, 96, 0.5);
  border-radius: 3px;
}

.auth-modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(233, 69, 96, 0.7);
}

.auth-modal-header {
  padding: 30px 30px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auth-modal-header h2 {
  font-family: var(--font-primary);
  font-size: 24px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-modal-close:hover {
  background: rgba(233, 69, 96, 0.2);
  color: var(--primary-red);
  transform: rotate(90deg);
}

.auth-modal-content {
  padding: 30px;
  overflow-y: auto;
  flex: 1;
  border-radius: 0 0 20px 20px;
}

.auth-form h3 {
  font-family: var(--font-primary);
  font-size: 20px;
  margin-bottom: 25px;
  text-align: center;
  color: var(--text-primary);
}

.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-group i {
  position: absolute;
  left: 15px;
  top: 18px;
  color: var(--text-secondary);
  font-size: 16px;
  z-index: 1;
}

.input-group input {
  width: 100%;
  padding: 15px 15px 15px 45px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 16px;
  font-family: var(--font-secondary);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.input-group input:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.input-group input::placeholder {
  color: var(--text-muted);
}

/* Input validation requirements */
.input-requirement {
  display: block;
  font-size: 11px;
  color: #888;
  margin-top: 5px;
  margin-left: 45px;
  line-height: 1.3;
  opacity: 0.8;
}

.input-group:focus-within .input-requirement {
  color: var(--accent-blue);
  opacity: 1;
}

.input-group input:invalid:not(:placeholder-shown) {
  border-color: var(--primary-red);
}

.input-group input:valid:not(:placeholder-shown) {
  border-color: var(--success-color);
}

.auth-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
  position: relative;
  overflow: hidden;
}

.auth-btn.primary {
  background: linear-gradient(135deg, var(--primary-red), var(--accent-purple));
  color: var(--text-primary);
  box-shadow: 0 8px 25px rgba(233, 69, 96, 0.3);
}

.auth-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(233, 69, 96, 0.4);
  background: linear-gradient(135deg, #ff4d6d, #a569bd);
}

.auth-btn.google {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-btn.google:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.auth-divider {
  text-align: center;
  margin: 25px 0;
  position: relative;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
  background: rgba(26, 26, 46, 0.9);
  padding: 0 15px;
  color: var(--text-secondary);
  font-size: 14px;
}

.auth-switch {
  text-align: center;
  margin-top: 20px;
  color: var(--text-secondary);
  font-size: 14px;
}

.auth-switch a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.auth-switch a:hover {
  color: var(--primary-red);
}

/* Steam Info Message in Signup Form */
.auth-info-message {
  background: rgba(100, 255, 218, 0.1);
  border: 1px solid rgba(100, 255, 218, 0.3);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.auth-info-message i {
  color: #64ffda;
  font-size: 1.2rem;
  margin-top: 0.2rem;
}

.auth-info-message p {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.hidden {
  display: none !important;
}

/* Auth pending state - hide auth-dependent elements during initial load */
.auth-pending #heroLoginBtn,
.auth-pending #myAccountBtn,
.auth-pending #userProfileContainer,
.auth-pending .auth-trigger,
.auth-pending .dropdown-link[href='submit-evidence.html'] {
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

/* Auth checked state - show elements after auth check */
.auth-checked #heroLoginBtn,
.auth-checked #myAccountBtn,
.auth-checked #userProfileContainer,
.auth-checked .auth-trigger,
.auth-checked .dropdown-link[href='submit-evidence.html'] {
  visibility: visible;
  opacity: 1;
}

/* Animation for modal entrance */
@keyframes modalBounce {
  0% {
    transform: scale(0.3) translateY(100px);
    opacity: 0;
  }
  50% {
    transform: scale(1.05) translateY(-10px);
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.auth-modal-overlay.active .auth-modal {
  animation: modalBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Steam Connection Prompt Modal */
.steam-prompt-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(10px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.steam-prompt-content {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  animation: modalBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.steam-prompt-content h2 {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.steam-prompt-content p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.steam-prompt-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.btn-steam-now,
.btn-steam-later {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-steam-now {
  background: linear-gradient(135deg, #171a21 0%, #1b2838 100%);
  color: #66c0f4;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-steam-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(102, 192, 244, 0.3);
}

.btn-steam-later {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.btn-steam-later:hover {
  background: rgba(255, 255, 255, 0.15);
}

.steam-prompt-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* Mobile Responsiveness for Steam Prompt */
@media (max-width: 768px) {
  .steam-prompt-content {
    padding: 30px 20px;
    width: 95%;
  }

  .steam-prompt-content h2 {
    font-size: 1.5rem;
  }

  .steam-prompt-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-steam-now,
  .btn-steam-later {
    width: 100%;
    justify-content: center;
  }
}

/* Mobile Responsiveness for Auth Modal */
@media (max-width: 768px) {
  .auth-modal {
    width: 95%;
    margin: 20px;
  }

  .auth-modal-header {
    padding: 20px 20px 15px;
  }

  .auth-modal-content {
    padding: 20px;
  }

  .hero-auth-button {
    margin-top: 20px;
  }

  .auth-trigger-btn {
    padding: 12px 25px;
    font-size: 16px;
  }
}

/* Admin Testing Panel Styles - Responsive Design */
.admin-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: min(400px, 90vw); /* Responsive width */
  height: 100vh;
  display: none; /* Hidden by default - prevents flash on page load */
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10001;
  transform: translateX(-100%); /* Use transform instead of left positioning */
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 5px 0 25px rgba(0, 0, 0, 0.3);
}

.admin-panel.active {
  transform: translateX(0); /* Slide in */
}

/* Mobile Close Tip (inside panel) */
.admin-panel-tip-mobile-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-red), var(--accent-purple));
  border-radius: 15px;
  display: none; /* Hidden by default */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  z-index: 10003;
}

.admin-panel-tip-mobile-close:hover {
  background: linear-gradient(135deg, #ff4d6d, #a569bd);
  transform: scale(1.05);
}

.admin-panel-tip {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%) translateX(-10%); /* Show 90% of tip on desktop */
  width: clamp(60px, 15vw, 80px); /* Responsive width */
  display: none; /* Hidden by default - prevents flash on page load */
  height: clamp(100px, 25vh, 120px); /* Responsive height */
  background: linear-gradient(135deg, var(--primary-red), var(--accent-purple));
  border-radius: 0 15px 15px 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 3px 0 15px rgba(233, 69, 96, 0.3);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  z-index: 9998;
}

.admin-panel-tip.panel-open {
  transform: translateY(-50%) translateX(calc(min(400px, 90vw) - 10%)); /* Move with panel, show 90% */
}

.admin-panel-tip:hover {
  background: linear-gradient(135deg, #ff4d6d, #a569bd);
  transform: translateY(-50%) translateX(0%); /* Show 100% on hover */
  box-shadow: 5px 0 20px rgba(233, 69, 96, 0.4);
}

.admin-panel-tip.panel-open:hover {
  transform: translateY(-50%) translateX(calc(min(400px, 90vw))); /* Show 100% when open and hover */
}
.admin-tip-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(6px, 2vw, 8px); /* Responsive gap */
}

.admin-tip-text {
  font-size: clamp(11px, 3vw, 13px); /* Responsive font size */
  font-weight: bold;
  color: white;
  letter-spacing: 1px;
}

.admin-current-user {
  font-size: clamp(10px, 2.5vw, 12px); /* Responsive font size */
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  margin-top: 10px;
  max-width: 70px;
  word-wrap: break-word;
  line-height: 1.2;
}

#adminArrow {
  font-size: clamp(14px, 4vw, 16px); /* Responsive arrow size */
  color: white;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Arrow direction states */
.admin-panel-tip:not(.panel-open) #adminArrow {
  transform: rotate(0deg); /* Point right when closed */
}

.admin-panel-tip.panel-open #adminArrow {
  transform: rotate(180deg); /* Point left when open */
}

.admin-panel-content {
  padding: 20px;
  height: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-red) transparent;
}

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

.admin-panel-content::-webkit-scrollbar-track {
  background: transparent;
}

.admin-panel-content::-webkit-scrollbar-thumb {
  background: var(--primary-red);
  border-radius: 3px;
}

.admin-header {
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-header h3 {
  font-family: var(--font-primary);
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-header p {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
}

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

.admin-section h4 {
  font-size: 14px;
  color: var(--accent-blue);
  margin-bottom: 12px;
  font-weight: 600;
}

.current-user-info {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 15px;
}

.user-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.user-card-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-red), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
  color: white;
}

.user-card-details {
  display: flex;
  flex-direction: column;
}

.user-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Active user indicator */
.active-user-indicator {
  color: var(--accent-green);
  font-size: 10px;
  margin-left: 8px;
}

/* Comment edited time indicator */
.comment-edited-time {
  color: #8a9ba8;
  font-style: italic;
}

/* Comment reply form styling */
.comment-reply-form {
  margin-top: 15px;
  border-left: 3px solid rgba(0, 123, 255, 0.5);
  padding-left: 20px;
  margin-left: 50px;
}

/* Nested reply comment styling */
.comment.nested-reply {
  margin-left: 50px;
  border-left: 3px solid rgba(0, 123, 255, 0.5);
  padding-left: 20px;
  margin-top: 10px;
  position: relative;
}

/* Comment action buttons container */
.comment-action-buttons {
  display: flex;
  gap: 10px;
}

.user-card-email {
  font-size: 11px;
  color: var(--text-secondary);
}

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

.user-action-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-secondary);
  padding: 5px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  transition: all 0.3s ease;
}

.user-action-btn:hover {
  background: rgba(233, 69, 96, 0.2);
  border-color: var(--primary-red);
  color: var(--primary-red);
}

.user-action-btn.danger:hover {
  background: rgba(233, 69, 96, 0.3);
  color: white;
}

.admin-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-btn {
  padding: 10px 15px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.admin-btn.danger {
  background: rgba(233, 69, 96, 0.2);
  color: var(--primary-red);
  border: 1px solid rgba(233, 69, 96, 0.3);
}

.admin-btn.danger:hover {
  background: var(--primary-red);
  color: white;
  transform: translateY(-2px);
}

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

.admin-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.no-user-message,
.no-users-message {
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  font-style: italic;
  padding: 20px;
}

.current-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.current-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-red), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  color: white;
}

.current-user-details {
  flex: 1;
}

.current-user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.current-user-email {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.current-user-rank {
  font-size: 11px;
  color: var(--accent-green);
  font-weight: 500;
}

/* Mobile Responsiveness for Admin Panel */
@media (max-width: 768px) {
  .admin-panel {
    width: 300px;
    left: -250px;
  }

  .admin-panel-tip {
    right: -50px;
    width: 50px;
    height: 100px;
  }

  .admin-tip-text {
    font-size: 10px;
  }

  .admin-current-user {
    font-size: 9px;
    max-width: 40px;
  }
}

/* Auth Message Styles */
.auth-message {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 15px;
  font-weight: 600;
  animation: slideInMessage 0.4s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.auth-message.success {
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.2), rgba(46, 204, 113, 0.1));
  border: 2px solid var(--accent-green);
  color: var(--accent-green);
}

.auth-message.success::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(46, 204, 113, 0.3), transparent);
  animation: shimmer 2s infinite;
}

.auth-message.error {
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.2), rgba(233, 69, 96, 0.1));
  border: 2px solid var(--primary-red);
  color: var(--primary-red);
}

.auth-message i {
  font-size: 18px;
  flex-shrink: 0;
}

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

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Mobile responsiveness for admin tip animation */
@media (max-width: 768px) {
  .admin-panel-tip {
    left: -15px; /* Adjust for mobile */
  }

  .admin-panel-tip.panel-open {
    left: 350px; /* Adjust for mobile panel width */
  }
}

/* Mobile specific adjustments - Width-based animation and dual tips */
@media (max-width: 768px) {
  .admin-panel {
    width: 0; /* Start with zero width */
    overflow: hidden; /* Hide content when width is 0 */
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: none; /* Disable transform on mobile */
    left: 0 !important; /* Ensure it starts from left edge */
    right: 0 !important; /* Ensure it can expand to right edge */
  }

  .admin-panel.active {
    width: 100vw !important; /* Force full screen width when open */
    transform: none; /* Disable transform on mobile */
  }

  /* Fix squishing by giving content fixed width */
  .admin-panel-content {
    width: 100vw !important; /* Fixed width to prevent squishing */
    min-width: 100vw !important; /* Ensure minimum width */
    flex-shrink: 0 !important; /* Prevent shrinking */
  }

  /* Main tip animation on mobile */
  .admin-panel-tip {
    left: -7px; /* Use left positioning as suggested */
    transform: translateY(-50%); /* Only vertical centering */
    width: 60px;
    height: 100px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Match panel speed */
  }

  .admin-panel-tip:hover {
    left: -2px; /* Show even more on hover */
  }

  .admin-panel-tip.panel-open {
    left: calc(100vw + 60px); /* Move completely off-screen to the right */
    transform: translateY(-50%); /* Maintain vertical centering */
  }

  /* Bigger text for mobile tip */
  .admin-panel-tip .admin-tip-text {
    font-size: 11px !important; /* Bigger ADMIN text */
    font-weight: 700 !important; /* Bolder */
    letter-spacing: 0.5px !important; /* Better spacing */
  }

  .admin-panel-tip .admin-current-user {
    font-size: 9px !important; /* Bigger user status text */
    font-weight: 500 !important; /* Medium weight */
    line-height: 1.2 !important; /* Better line spacing */
  }

  /* Arrow flip animation for mobile */
  .admin-panel-tip #adminArrow {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 12px !important; /* Slightly bigger arrow */
  }

  .admin-panel-tip.panel-open #adminArrow {
    transform: rotate(180deg); /* Flip arrow when panel opens on mobile too */
  }

  /* Mobile close button styled like other admin buttons */
  .admin-panel-tip-mobile-close {
    position: relative !important; /* Change to relative positioning */
    top: auto !important;
    right: auto !important;
    margin: 20px auto 0 auto; /* Center with top margin for spacing */
    width: 100% !important; /* Full width like other buttons */
    height: auto !important; /* Auto height like other buttons */
    padding: 12px 16px; /* Same padding as admin buttons */
    border-radius: 6px !important; /* Same border radius as admin buttons */
    background: rgba(233, 69, 96, 0.1) !important; /* Same as danger button */
    border: 1px solid rgba(233, 69, 96, 0.3) !important;
    color: var(--primary-red) !important;
    opacity: 0; /* Start invisible */
    transition: all 0.3s ease 0.4s; /* Fade in after panel animation completes */
    writing-mode: initial !important; /* Reset writing mode */
    text-orientation: initial !important; /* Reset text orientation */
    flex-direction: row !important; /* Horizontal layout */
    justify-content: center !important;
    align-items: center !important;
    gap: 8px; /* Space between icon and text */
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
  }

  .admin-panel-tip-mobile-close:hover {
    background: var(--primary-red) !important;
    color: white !important;
    border-color: var(--primary-red) !important;
    transform: none !important; /* No scale transform */
  }

  /* Show mobile close tip when panel is open */
  .admin-panel.active .admin-panel-tip-mobile-close {
    display: flex; /* Show close tip when panel is active */
    opacity: 1; /* Fade in */
  }
}

/* Breadcrumbs - Global Styles */
.breadcrumbs {
  backdrop-filter: blur(15px); /* Enhanced blur for glassmorphism */
  border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
  margin: 17px 0px 0 0px; /* Updated margin as requested */
  padding: 15px 0;
  position: sticky;
  top: 140px;
  z-index: 100;
}

.breadcrumb-container {
  max-width: none; /* Remove max-width constraint */
  margin: 0; /* Remove auto centering */
  padding: 0 20px; /* Keep left padding for spacing from edge */
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start; /* Move to far left */
}

.breadcrumb-link {
  color: var(--text-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.breadcrumb-separator {
  color: var(--text-secondary);
  font-size: 12px;
  opacity: 0.6;
}

.breadcrumb-current {
  color: var(--primary-red);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Mobile Responsive Breadcrumbs - Smaller text and arrows to fit more breadcrumbs */
@media (max-width: 768px) {
  .breadcrumb-container {
    padding: 0 15px; /* Reduce padding on mobile */
    gap: 6px; /* Reduce gap between breadcrumb elements */
  }

  .breadcrumb-link {
    font-size: 11px !important; /* Smaller text */
    gap: 5px !important; /* Smaller gap between icon and text */
  }

  .breadcrumb-separator {
    font-size: 9px !important; /* Smaller arrow */
  }

  .breadcrumb-current {
    font-size: 11px !important; /* Smaller text */
    gap: 5px !important; /* Smaller gap between icon and text */
  }

  /* Reduce icon sizes in breadcrumbs for mobile */
  .breadcrumb-link i,
  .breadcrumb-current i {
    font-size: 10px !important; /* Smaller icons */
  }
}

/* Auth Loading Modal */
.auth-loading-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 15, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.auth-loading-modal.show {
  opacity: 1;
}

.auth-loading-modal.hidden {
  display: none;
}

.loading-content {
  text-align: center;
  padding: 40px;
  background: rgba(26, 26, 46, 0.9);
  border-radius: 20px;
  border: 2px solid var(--accent-blue);
  box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3);
  min-width: 320px;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(0, 212, 255, 0.1);
  border-radius: 50%;
  border-top-color: var(--accent-blue);
  animation: spin 1s ease-in-out infinite;
  margin: 0 auto 20px;
}

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

#loadingMessage {
  font-size: 18px;
  color: var(--text-primary);
  font-family: var(--font-secondary);
  margin: 0 0 20px 0;
  opacity: 0.9;
}

/* Loading Modal Buttons */
.loading-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.loading-buttons.hidden {
  display: none;
}

.loading-btn {
  padding: 10px 20px;
  font-family: var(--font-secondary);
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.loading-btn.hidden {
  display: none;
}

.loading-btn i {
  font-size: 18px;
}

/* Cancel button - Danger style */
.loading-btn.cancel-btn {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  border: 2px solid #dc2626;
}

.loading-btn.cancel-btn:hover {
  background: rgba(220, 38, 38, 0.2);
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
  transform: translateY(-2px);
}

/* Focus states for accessibility */
.loading-btn.cancel-btn:focus {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}

/* Auto-hide animation for messages */
.auto-hide {
  animation: fadeOutMessage 5s ease-out forwards;
}

@keyframes fadeOutMessage {
  0%,
  80% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* Utility classes to replace inline styles */
.nav-item.hidden {
  display: none !important;
}

.nav-item.visible {
  display: block !important;
}

/* Modal body overflow control */
body.modal-open {
  overflow: hidden;
}

/* Notification badge positioning */
.notification-badge {
  display: flex;
  position: absolute;
  background: #dc3545;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 11px;
  font-weight: bold;
  align-items: center;
  justify-content: center;
  border: 2px solid #0a0a0f;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.8);
  z-index: 1005;
}

.notification-badge.mobile-position {
  right: 13px; /* Ayman's perfect coordinates! */
  top: -4px; /* Ayman's perfect coordinates! */
}

.notification-badge.desktop-position {
  right: -5px;
  top: -5px;
}

/* Dropdown arrow rotation */
.dropdown-arrow.rotated {
  transform: rotate(180deg);
}

/* Progress bar widths */
.progress-bar-width-0 {
  width: 0%;
}
.progress-bar-width-25 {
  width: 25%;
}
.progress-bar-width-50 {
  width: 50%;
}
.progress-bar-width-75 {
  width: 75%;
}
.progress-bar-width-100 {
  width: 100%;
}

/* Admin panel visibility */
.admin-panel.panel-hidden {
  display: none !important;
}

.admin-panel.panel-visible {
  display: block !important;
}

/* Online user status indicators */
.online-status-indicator {
  width: 8px;
  height: 8px;
  background: #4ecdc4;
  border-radius: 50%;
  display: inline-block;
  margin-right: 10px;
}

.user-avatar-small {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 10px;
}

/* Admin tip visibility */
.admin-tip-visible {
  display: flex !important;
}

.admin-tip-hidden {
  display: none !important;
}

/* Online users styling */
.online-users-empty {
  padding: 12px;
  text-align: center;
  color: #666;
}

.online-user-item {
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.online-user-item.current-user {
  background: rgba(233, 69, 96, 0.1);
}

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

.online-indicator {
  width: 8px;
  height: 8px;
  background: #2ecc71;
  border-radius: 50%;
  display: inline-block;
}

.online-username {
  flex: 1;
}

.online-username.current-user {
  font-weight: bold;
}

.steam-icon {
  color: #66c0f4;
  font-size: 14px;
}

.online-location {
  font-size: 12px;
  color: #999;
}

.online-time {
  font-size: 12px;
  color: #666;
}

/* User card styling */
.user-card {
  background: rgba(233, 69, 96, 0.1);
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.user-card-inner {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-avatar {
  width: 50px;
  height: 50px;
  background: #e94560;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
}

.user-details {
  flex: 1;
}

.user-name {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 4px;
}

.user-email {
  font-size: 13px;
  color: #999;
  margin-bottom: 2px;
}

.user-status {
  font-size: 12px;
  color: #2ecc71;
}

.status-icon {
  font-size: 8px;
  margin-right: 4px;
}
