/* ============================================================================
   NIGHTSHADE SMP - RESPONSIVE STYLESHEET
   Desktop-first approach with mobile overrides
   Version: 2.0
   ============================================================================ */

/* ========== CSS VARIABLES ========== */
:root {
  --primary-color: #6a1b9a;
  --secondary-color: #7289DA;
  --dark-bg: #1a1a1a;
  --light-text: #fff;
  --nav-height: 70px;
  --transition-timing: cubic-bezier(0.4, 0, 0.2, 1);
}


/* ========== BASE STYLES (DESKTOP) ========== */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: black;
  overflow-x: hidden;
}


/* ========== NAVIGATION (DESKTOP) ========== */

/* Nav Brand */
.nav-brand {
  padding: 0.5rem 1rem;
  margin-right: auto;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.nav-brand:hover {
  opacity: 0.8;
}

.nav-brand-title {
  font-size: 1.5em;
  font-weight: bold;
  color: white;
  line-height: 1.2;
}

.nav-brand-subtitle {
  font-size: 0.9em;
  font-style: italic;
  color: rgb(255 255 255 / 80%);
  line-height: 1.2;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgb(0 0 0 / 90%);
  backdrop-filter: blur(10px);
  transition: transform 0.3s var(--transition-timing);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.7rem;
}

.nav-buttons {
  display: flex;
  gap: 0.2rem;
  margin-left: auto;
}

.tab-button {
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  color: var(--light-text);
  background: transparent;
  border: 2px solid transparent;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s var(--transition-timing);
}

.tab-button:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.tab-button.selected {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

/* Hide mobile navigation elements on desktop */
.nav-toggle {
  display: none;
}


/* ========== LAYOUT & STRUCTURE ========== */

.wrapper {
  position: relative;
  flex: 1;
  z-index: 1;
  overflow: visible;
  background-color: rgb(255 255 255 / 5%);
}

/* Header Section */
.header-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.header-section > *,
.header-section * {
  pointer-events: auto;
}

/* Foreground Container */
.foreground-container {
  position: relative;
  width: 100%;
  max-width: 90%;
  height: 100vh;
  margin: 0 auto;
  padding: 0 1rem;
  z-index: 10;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  pointer-events: none;
}

.foreground-container * {
  pointer-events: auto;
}

.foreground {
  display: block;
  width: 100%;
  height: auto;
  max-width: 800px;
  max-height: 400px;
  margin: 0 auto;
  object-fit: contain;
}

/* Season Announcement */
.season-announcement {
  font-family: 'Arial', sans-serif;
  font-size: 2.2em;
  font-weight: bold;
  color: #f0e6ff;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(168, 85, 247, 0.5);
  margin: 0;
}


/* ========== BUTTONS ========== */

/* Header Buttons Container */
.header-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 70px;
  z-index: 3;
}

.join-whitelist,
.apply-now-btn {
  position: relative;
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: white;
  background: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  min-width: 200px;
  width: auto;
  transition: all 0.3s var(--transition-timing);
  transform: translateY(0);
  text-shadow: 0 1px 1px rgb(0 0 0 / 20%);
  box-shadow: 0 4px 0 rgb(0 0 0 / 20%), 0 5px 15px rgb(0 0 0 / 10%);
}

.join-whitelist {
  background: linear-gradient(145deg, rgb(156 77 204 / 90%), rgb(106 27 154 / 90%));
  border: 1px solid rgb(156 77 204 / 40%);
}

.apply-now-btn {
  background: linear-gradient(145deg, rgb(139 155 242 / 90%), rgb(88 101 242 / 90%));
  border: 1px solid rgb(139 155 242 / 40%);
}

.join-whitelist:hover,
.apply-now-btn:hover {
  box-shadow: 0 5px 0 rgb(0 0 0 / 20%), 0 7px 20px rgb(0 0 0 / 15%);
  transform: translateY(-2px);
}

.join-whitelist:active,
.apply-now-btn:active {
  box-shadow: 0 2px 0 rgb(0 0 0 / 20%), 0 3px 5px rgb(0 0 0 / 10%), inset 0 1px 3px rgb(0 0 0 / 10%);
  transform: translateY(2px);
  transition: all 0.1s var(--transition-timing);
}

.join-whitelist::before,
.apply-now-btn::before {
  position: absolute;
  inset: 0;
  content: '';
  background: radial-gradient(circle at 30% 30%, rgb(255 255 255 / 10%) 0%, rgb(255 255 255 / 5%) 40%, transparent 70%);
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.3s var(--transition-timing);
}

.join-whitelist:hover::before,
.apply-now-btn:hover::before {
  opacity: 1;
}

.join-whitelist::after,
.apply-now-btn::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  content: '';
  background: linear-gradient(to right, rgb(255 255 255 / 10%), rgb(255 255 255 / 30%), rgb(255 255 255 / 10%));
}


/* ========== CONTENT SECTIONS ========== */

.target-section {
  position: relative;
  z-index: 10;
  background-color: transparent;
  color: white;
  pointer-events: none;
}

.target-section * {
  pointer-events: auto;
}

/* Base Tab Content Styles */
.tab-content {
  display: none;
  max-width: 800px;
  margin: auto;
  padding: 2rem;
  background-color: transparent;
  color: white;
}

/* ========== UNIVERSAL TAB COMPONENTS ==========
   Professional, reusable classes for all tabs
   Use these for consistent styling across Welcome, Rules, Vote, Join tabs
   ============================================== */

/* Universal Tab Hero Section 
   Used for: Page headers with title and intro
   Replaces: .rules-hero, .application-options-hero */
.tab-hero {
  padding: 2rem 1rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, rgb(106 27 154), rgb(142 36 170));
  border-radius: 10px;
  box-shadow: 0 4px 15px rgb(0 0 0 / 20%);
  text-align: center;
}

.tab-hero h2 {
  font-size: 2.5rem;
  color: white;
  margin: 0 0 0.5rem 0;
  font-weight: 700;
}

.tab-hero .tab-intro,
.tab-hero .rules-intro {
  margin: 0 auto;
  max-width: 800px;
  font-size: 1.1rem;
  line-height: 1.5;
  color: rgb(255 255 255 / 85%);
  font-weight: 400;
}

/* Universal Tab Intro Paragraph
   Used for: Descriptive text below hero titles
   Replaces: .rules-intro 
   Note: When inside .tab-hero, margins are controlled by parent */
.tab-intro {
  max-width: 800px;
  margin: 0 auto 1.5rem;
  font-size: 1.1rem;
  line-height: 1.5;
  color: rgb(255 255 255 / 85%);
  font-weight: 400;
}

/* Universal Content Grid (2-column)
   Used for: Two-column card layouts (desktop), stacks to 1 column (mobile)
   Replaces: .rules-grid */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: start;
}

.content-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Universal Content Cards
   Used for: Consistent card styling across all tabs
   Replaces: .rules-card
   Components: .content-card-header, .content-card-content */
.content-card {
  height: auto;
  background-color: rgb(40 40 40);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgb(0 0 0 / 10%);
  overflow: hidden;
  margin-bottom: 2rem;
  clear: both;
}

.content-card-header {
  display: flex;
  padding: 1.2rem;
  background: linear-gradient(to right, rgb(106 27 154 / 80%), rgb(142 36 170 / 80%));
}

.content-card-header i {
  font-size: 1.8rem;
  color: white;
}

.content-card-header h3 {
  margin: 0;
  padding-left: 1rem;
  font-size: 1.5rem;
  color: white;
}

.content-card-content {
  padding: 1.5rem;
  text-align: left;
}

/* Map Tab */
.tab-content.map {
  max-width: 100%;
  height: 100vh;
  padding: 1.5rem clamp(3rem, 5vw, 6rem) calc(79px + 1.5rem) clamp(3rem, 5vw, 6rem);
  margin: 0 0 -1px 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-container {
  width: 100%;
  height: 100%;
  margin: 0;
  background-color: rgb(40 40 40);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.map-header {
  flex-shrink: 0;
  background: linear-gradient(135deg, rgb(106 27 154), rgb(142 36 170));
  padding: 2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.map-open-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255,255,255,0.2);
  border-radius: 8px;
  color: white;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s;
}

.map-open-button:hover {
  background: rgba(255,255,255,0.3);
}

.map-iframe-wrapper {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.map-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}


/* ========== WELCOME TAB ========== */

.welcome {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background-color: transparent;
  color: white;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Welcome-specific intro statement */
.intro-statement {
  font-size: 1.2em;
  font-weight: 400;
  color: rgb(255 255 255 / 90%);
  text-align: center;
  margin-bottom: 2rem;
}

.intro-statement strong {
  font-weight: 600;
  color: white;
}

.server-features {
  display: flex;
  flex-flow: row wrap;
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-item {
  display: flex;
  width: calc(50% - 0.75rem);
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  box-sizing: border-box;
}

.feature-icon {
  display: flex;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  background-color: rgb(106 27 154 / 20%);
  border-radius: 50%;
  flex-shrink: 0;
}

.feature-icon i {
  font-size: 1.5rem;
  color: white;
}

.feature-content {
  flex: 1;
}

.feature-content h4 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: white;
}

.feature-content p {
  margin: 0;
  color: rgb(255 255 255 / 80%);
}

/* Call to Action */
.cta-section {
  margin-top: 2rem;
  text-align: center;
}

.cta-button {
  display: inline-block;
  margin: 0.5rem;
  padding: 12px 24px;
  font-size: 1.1em;
  color: white;
  background-color: rgb(255 255 255 / 10%);
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.cta-button:hover {
  background-color: rgb(255 255 255 / 20%);
  border-color: rgb(255 255 255 / 40%);
}

.discord-button {
  background-color: rgb(114 137 218 / 10%);
  border-color: rgb(114 137 218 / 30%);
}

.discord-button:hover {
  background-color: rgb(114 137 218 / 20%);
  border-color: rgb(114 137 218 / 50%);
}


/* ========== SERVER STATUS ========== */

.server-status-card {
  min-height: 180px;
  padding-bottom: 15px;
}


/* ========== RULES TAB ========== */

.rules {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  color: white;
}

/* Legacy classes retained for Rules & Join tabs functionality */

.rules-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Legacy class support - maps to new .content-card */
.rules-card {
  height: auto;
  background-color: rgb(40 40 40);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgb(0 0 0 / 10%);
  overflow: hidden;
  margin-bottom: 2rem;
  clear: both;
}

.rules-card-header {
  display: flex;
  padding: 1.2rem;
  background: linear-gradient(to right, rgb(106 27 154 / 80%), rgb(142 36 170 / 80%));
}

.rules-card-header i {
  font-size: 1.8rem;
  color: white;
}

.rules-card-header h3 {
  margin: 0;
  padding-left: 1rem;
  font-size: 1.5rem;
  color: white;
}

.rules-card-content {
  padding: 1.5rem;
  text-align: left;
}

/* Rules-specific content styles */

.rule-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
}

.rule-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.rule-icon {
  display: flex;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  background-color: rgb(106 27 154 / 20%);
  border-radius: 50%;
  flex-shrink: 0;
}

.rule-icon i {
  font-size: 1.5rem;
  color: #9c27b0;
}

.rule-content {
  flex: 1;
}

.rule-content h4 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: white;
}

.rule-content p {
  margin: 0;
  line-height: 1.5;
  color: rgb(255 255 255 / 80%);
}

.allowed-mods-list {
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.allowed-mods-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  color: rgb(255 255 255 / 90%);
}

.allowed-mods-list li i {
  font-size: 1.2rem;
  color: #4CAF50;
}

.building-guidelines-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Building Area - Styled like rule-item for consistency */
.building-area {
  display: flex;
  gap: 1rem;
  padding: 1.5rem 0;
  margin-bottom: 0;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  text-align: left;
}

.building-area:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.building-area:first-child {
  padding-top: 0;
}

.building-area-icon {
  display: flex;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  background-color: rgb(106 27 154 / 20%);
  border-radius: 50%;
  flex-shrink: 0;
}

.building-area-icon i {
  font-size: 1.5rem;
  color: #9c27b0;
}

.building-area-content {
  flex: 1;
}

.building-area h4 {
  margin: 0 0 0.8rem;
  font-size: 1.2rem;
  color: white;
  font-weight: 600;
}

.building-area ul {
  margin: 0;
  padding-left: 1.2rem;
  list-style: none;
}

.building-area ul li {
  position: relative;
  margin-bottom: 0.8rem;
  padding-left: 1.2rem;
  line-height: 1.6;
  color: rgb(255 255 255 / 80%);
}

.building-area ul li:last-child {
  margin-bottom: 0;
}

.building-area ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #9c27b0;
  font-weight: bold;
}

.building-area ul li a {
  color: #8e24aa;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.building-area ul li a:hover {
  color: #ab47bc;
}

.building-area ul li b,
.building-area ul li strong {
  color: rgb(255 255 255 / 95%);
  font-weight: 600;
}

.rules-footer {
  padding: 1.5rem;
  margin-top: 2rem;
  background-color: rgb(40 40 40);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 10px;
  text-align: center;
}

.rules-footer p {
  margin: 0;
  font-size: 1.1rem;
  color: rgb(255 255 255 / 90%);
}

/* Rules Dropdown - Desktop: Always visible */
.rules-card-header.dropdown-toggle {
  cursor: default;
}

/* Desktop only - cards always visible, no dropdowns */
@media (min-width: 769px) {
  div.rules-card > div.rules-card-content,
  div.content-card > div.content-card-content {
    display: block !important;
    max-height: none !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    background-color: transparent !important;
  }

  .dropdown-icon {
    display: none !important;
  }
}


/* ========== VOTE TAB ========== */

.vote {
  padding: 2rem;
  color: white;
}

.vote-full-width {
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
}

.vote-card {
  background-color: rgb(40 40 40);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 12px;
  margin-bottom: 2rem;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.vote-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background-color: rgb(106 27 154);
  border-bottom: 1px solid rgb(255 255 255 / 10%);
}

.vote-card-header.dark-purple {
  background: linear-gradient(135deg, rgb(106 27 154), rgb(142 36 170));
}

.vote-card-header .header-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.vote-card-header .header-subtitle {
  margin: 0;
  font-size: 1rem;
  font-weight: normal;
  color: rgb(255 255 255 / 80%);
}

.vote-card-header i {
  font-size: 2rem;
  color: white;
}

.vote-card-header h3 {
  margin: 0;
  font-size: 2.5rem;
  color: white;
}

.vote-card-content {
  padding: 1.5rem;
}

.voting-sites {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(6, auto);
  grid-auto-flow: column;
  gap: 1rem;
}

.voting-site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background-color: rgb(255 255 255 / 5%);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.voting-site:hover {
  background-color: rgb(255 255 255 / 10%);
  box-shadow: 0 5px 15px rgb(0 0 0 / 20%);
  transform: translateY(-2px);
}

.row-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-right: 1rem;
  background-color: rgb(255 255 255 / 10%);
  border-radius: 50%;
  color: white;
  font-weight: bold;
}

.site-details {
  display: flex;
  align-items: center;
  flex-grow: 1;
}

.site-icon {
  margin-right: 1rem;
}

.site-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.site-name {
  font-weight: 500;
  color: white;
}

.vote-link {
  padding: 0.5rem 1rem;
  background-color: var(--primary-color);
  border-radius: 4px;
  color: white;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.vote-link:hover {
  background-color: #8e24aa;
  transform: translateY(-2px);
}

/* Voted State */
.voting-site.voted .vote-link {
  background-color: #4CAF50;
  pointer-events: none;
}

.voting-site.voted .vote-link:hover {
  background-color: #4CAF50;
  transform: none;
}

.voting-site.voted .row-number {
  background-color: #4CAF50;
}

.voting-tips {
  margin: 0;
  padding: 0;
  list-style: none;
}

.voting-tips li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: rgb(255 255 255 / 80%);
}

.voting-tips li i {
  font-size: 1.1rem;
  color: var(--primary-color);
}

.open-all-button {
  padding: 0.6rem 1.2rem;
  background-color: #4CAF50;
  border: none;
  border-radius: 5px;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.3s ease;
}

.open-all-button:hover {
  background-color: #45a049;
}

.popup-help-container {
  margin-top: 15px;
  text-align: center;
}

#popup-help-link {
  font-size: 0.9rem;
  color: #c58af9;
  text-decoration: none;
}

#popup-help-link:hover {
  text-decoration: underline;
}

/* Popup Modal */
.popup-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

.popup-modal-content {
  width: 90%;
  max-width: 700px;
  background: #2c2f33;
  border-radius: 8px;
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.popup-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #4a148c;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.popup-modal-header h3 {
  margin: 0;
  font-size: 1.4rem;
}

.popup-modal-body {
  padding: 20px;
  line-height: 1.6;
}

.popup-modal-body p {
  margin-bottom: 15px;
}

.browser-instructions {
  display: flex;
  gap: 20px;
}

.browser-column {
  flex: 1;
}

.browser-column h4 {
  margin-bottom: 10px;
  color: #c58af9;
}

.browser-column ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.popup-modal-footer {
  padding: 15px 20px;
  text-align: center;
}

.close-footer-button {
  padding: 10px 25px;
  background-color: #6a1b9a;
  border: none;
  border-radius: 5px;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.close-footer-button:hover {
  background-color: #8e24aa;
}


/* ========== FAQ SECTION ========== */

.faq-section {
  max-width: 800px;
  padding: 1.5rem;
  background-color: rgb(40 40 40);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 10px;
}

.faq-section h2 {
  font-size: 1.8em;
  margin-bottom: 1.5rem;
  color: white;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background-color: rgb(255 255 255 / 10%);
  border-radius: 8px;
  min-height: auto !important;
  overflow: visible;
  transition: background-color 0.3s ease;
}

.faq-item:hover {
  background-color: rgb(255 255 255 / 15%);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem;
  background-color: rgb(60 60 60);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 1.1em;
  font-weight: bold;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: #fc0;
}

.faq-question i {
  font-size: 0.9em;
  transition: transform 0.3s ease;
}

/* Rotate FAQ chevron when expanded */
.faq-question[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.fas.fa-chevron-down {
  z-index: 19999;
}

.faq-answer {
  display: none;
  padding: 1rem;
  flex: 0 0 auto;
  white-space: normal;
  word-wrap: break-word;
}

.faq-answer p {
  margin: 0;
}

.faq-answer.show {
  display: block;
}


/* ========== FORMS ========== */

/* Whitelist Form */
.whitelist-form-container {
  width: 100%;
}

.whitelist-form-container .form-group {
  width: 100%;
  margin-bottom: 1.5rem;
}

.whitelist-form-container .age-group {
  width: 80px;
}

.whitelist-form-container input[type="number"] {
  appearance: textfield;
}

.whitelist-form-container input[type="number"]::-webkit-inner-spin-button,
.whitelist-form-container input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.whitelist-form-container label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.whitelist-form-container input,
.whitelist-form-container select,
.whitelist-form-container textarea {
  padding: 0.75rem;
  background-color: rgb(40 40 40);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 6px;
  color: white;
}

.whitelist-form-container select option {
  background-color: #2a2a2a;
  color: white;
}

.whitelist-form-container .input-fields {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 1.5rem;
}

.whitelist-form-container .char-count {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: rgb(255 255 255 / 70%);
  text-align: right;
}

.whitelist-form-container input:focus,
.whitelist-form-container select:focus,
.whitelist-form-container textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgb(142 36 170 / 25%);
}

.form-group {
  display: flex;
  flex: 1 1 calc(50% - 10px);
  flex-direction: column;
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.submit-button,
.reset-button {
  padding: 12px 24px;
  font-size: 1em;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-button {
  background-color: #6a1b9a;
  color: white;
}

.submit-button:hover {
  background-color: #8e24aa;
  transform: translateY(-1px);
}

.reset-button {
  background-color: rgb(255 255 255 / 10%);
  border: 1px solid rgb(255 255 255 / 20%);
  color: white;
}

.reset-button:hover {
  background-color: rgb(255 255 255 / 20%);
  transform: translateY(-1px);
}

.char-count {
  margin-top: -10px;
  margin-bottom: 20px;
  font-size: 0.9em;
  color: rgb(255 255 255 / 70%);
  text-align: right;
}

/* Form Input Elements */
.minecraft-username {
  flex: 1;
  height: 40px;
  padding: 10px;
  background-color: rgb(255 255 255 / 10%);
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 5px;
  color: white;
  font-size: 1em;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.minecraft-username:focus {
  background-color: rgb(255 255 255 / 20%);
  border-color: rgb(255 255 255 / 40%);
}

.check-username, .connect-discord {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 10px 20px;
  background-color: #6a1b9a;
  border: none;
  border-radius: 5px;
  color: white;
  font-size: 1em;
  cursor: pointer;
  box-sizing: border-box;
  transform: translateY(-2px);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.check-username:hover, .connect-discord:hover {
  background-color: #8e24aa;
  transform: translateY(-3px);
}

.check-username:active, .connect-discord:active {
  transform: translateY(-1px);
}

.player-info, .discord-info {
  border-radius: 8px;
  text-align: center;
}

.player-skin {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 120px;
  height: 220px;
  margin: 0 auto;
}

.discord-avatar {
  width: 100px;
  margin: 0 auto 15px;
  border-radius: 50%;
  overflow: hidden;
}

.discord-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.age-group input[type="number"] {
  width: 100%;
  height: 40px;
  padding: 10px;
  background-color: rgb(255 255 255 / 10%);
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 5px;
  color: white;
  font-size: 1em;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.player-info {
  flex: 0 0 250px;
  padding: 15px;
  padding-bottom: 5rem;
  margin-top: 20px;
  margin-bottom: 20px;
  background-color: rgb(255 255 255 / 10%);
  border-radius: 8px;
  text-align: center;
}

.player-info h3 {
  margin-bottom: 10px;
  font-size: 1.5em;
  color: white;
}

.player-skin img {
  padding-top: 2rem;
  border-radius: 8px;
}


/* ========== MODALS ========== */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background-color: rgb(0 0 0 / 70%);
}

.modal-content {
  width: 90%;
  max-width: 500px;
  padding: 2rem;
  background-color: #1a1a1a;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgb(0 0 0 / 50%);
}

.modal-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: white;
}

.modal-content button {
  margin: 0 10px;
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-content button.confirm-submit,
.modal-content button.confirm-reset {
  background-color: #6a1b9a;
  color: white;
}

.modal-content button.confirm-submit:hover,
.modal-content button.confirm-reset:hover {
  background-color: #8e24aa;
}

.modal-content button.cancel-submit,
.modal-content button.cancel-reset {
  background-color: #ccc;
  color: #333;
}

.modal-content button.cancel-submit:hover,
.modal-content button.cancel-reset:hover {
  background-color: #bbb;
}

.confirm-submit,
.confirm-reset {
  background-color: #6a1b9a;
  color: white;
}

.confirm-submit:hover,
.confirm-reset:hover {
  background-color: #8e24aa;
}

.cancel-submit,
.cancel-reset {
  background-color: rgb(255 255 255 / 10%);
  border: 1px solid rgb(255 255 255 / 20%);
  color: white;
}

.cancel-submit:hover,
.cancel-reset:hover {
  background-color: rgb(255 255 255 / 20%);
}


/* ========== LIGHTBOX ========== */

.lightbox {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  background-color: rgb(0 0 0 / 90%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 90vh;
  margin: 0 auto;
}

.close-button {
  position: absolute;
  top: 20px;
  right: 30px;
  z-index: 1001;
  font-size: 40px;
  color: white;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.3s ease;
}

.close-button:hover {
  color: #f00;
}

.lightbox-image {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  margin: 0 auto;
  border-radius: 8px;
  object-fit: contain;
}

.lightbox-button {
  position: absolute;
  top: 50%;
  z-index: 1001;
  padding: 15px;
  background-color: rgb(0 0 0 / 70%);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.3s ease;
}

.lightbox-button:hover {
  background-color: rgb(0 0 0 / 90%);
}

.lightbox-button.left {
  left: 20px;
}

.lightbox-button.right {
  right: 20px;
}


/* ========== UTILITIES ========== */

/* Spinner */
.spinner {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1000;
  width: 40px;
  height: 40px;
  border: 4px solid rgb(0 0 0 / 10%);
  border-left-color: #6a1b9a;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: spin 1s linear infinite;
}

.success-message {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  padding: 20px;
  background-color: #4CAF50;
  border-radius: 10px;
  color: white;
  text-align: center;
}

.hamburger {
  position: relative;
  display: block;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  width: 25px;
  height: 3px;
  background-color: white;
}

.hamburger::before,
.hamburger::after {
  position: absolute;
  left: 0;
  content: '';
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}


/* ========== ANIMATIONS ========== */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Back to Top Button */
.back-to-top {
  display: none;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  padding: 12px 15px;
  background-color: #6a1b9a;
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 8px rgb(0 0 0 / 30%);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.back-to-top.show {
  display: block;
}

.back-to-top:hover {
  background-color: #8e24aa;
  transform: translateY(-2px);
}


/* ============================================================================
   RESPONSIVE BREAKPOINTS - DESKTOP FIRST
   ============================================================================ */

/* ========== TABLET (max-width: 768px) ========== */
@media (max-width: 768px) {
  
  /* Season Announcement */
  .season-announcement {
    font-size: 1.8em;
    margin-top: 15px;
  }

  /* Navigation */
  .nav-buttons {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    width: 100%;
    padding: 1rem;
    background-color: rgb(0 0 0 / 90%);
    flex-direction: column;
    gap: 0.5rem;
    z-index: 9999;
    box-sizing: border-box;
  }

  /* Show nav menu when active */
  .nav-buttons.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
    padding: 10px;
    margin-left: auto;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
  }

  .nav-toggle:hover {
    background: rgb(106 27 154 / 20%);
    box-shadow: 0 4px 12px rgb(0 0 0 / 30%);
  }

  /* Hamburger Icon - Three Lines */
  .hamburger {
    position: relative;
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: background 0.3s ease, transform 0.3s ease;
  }

  .hamburger::before,
  .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease;
  }

  .hamburger::before {
    top: -8px;
  }

  .hamburger::after {
    top: 8px;
  }

  /* Hamburger Animation - Transform to X when active */
  .nav-toggle.active .hamburger {
    background: transparent;
  }

  .nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
  }

  .nav-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
  }

  /* Active state styling */
  .nav-toggle.active {
    background: rgb(106 27 154 / 30%);
    border-color: rgb(255 255 255 / 20%);
  }

  .tab-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-align: left;
    background: rgb(106 27 154 / 10%);
    border: 1px solid rgb(255 255 255 / 5%);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgb(0 0 0 / 10%);
    transition: all 0.2s ease;
  }

  .tab-button:hover {
    background: rgb(106 27 154 / 20%);
    border-color: rgb(255 255 255 / 10%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgb(0 0 0 / 20%);
  }

  /* Content */
  .tab-content {
    padding: 0.4rem;
    background: transparent;
    backdrop-filter: none;
  }

  /* Map Tab */
  .tab-content.map {
    height: 100vh;
    padding: 1rem 2rem calc(79px + 1rem) 2rem;
    margin: 0 0 -1px 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .map-container {
    width: 100%;
    height: 100%;
    margin: 0;
  }

  .map-header {
    padding: 1.5rem 2rem;
  }

  /* Welcome Tab */
  .welcome {
    padding: 0.4rem;
    padding-top: 1rem;
  }

  .server-features {
    flex-direction: column;
  }

  .feature-item {
    width: 100%;
  }

  /* Hide back-to-top button on mobile - blocks content */
  .back-to-top {
    display: none !important;
  }

  /* Universal Tab Hero - Mobile */
  .tab-hero {
    padding: 1.5rem 1rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .tab-hero h2 {
    font-size: 2rem;
    margin: 0 0 0.4rem 0;
    font-weight: 700;
  }

  .tab-hero .tab-intro {
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.4;
    color: rgb(255 255 255 / 85%);
    font-weight: 400;
  }

  /* Universal Tab Intro - Mobile */
  .tab-intro {
    margin: 0 auto 1rem;
    font-size: 1rem;
    line-height: 1.4;
    color: rgb(255 255 255 / 85%);
    font-weight: 400;
  }

  /* Universal Content Grid - Mobile (Single Column) */
  .content-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .content-column,
  .rules-column {
    gap: 1rem;
  }

  /* Universal Content Card - Mobile */
  .content-card,
  .rules-card {
    height: auto;
    overflow: hidden;
    margin-bottom: 1rem;
  }

  /* Keep cards rounded in all states */
  .rules .content-card,
  .rules .rules-card,
  .whitelist .content-card,
  .whitelist .rules-card {
    border-radius: 10px;
  }

  /* Rules Tab */
  .rules {
    margin: 0 auto;
    max-width: 100%;
    padding-bottom: 1rem;
  }

  /* Universal Content Card Header - Mobile */
  .content-card-header,
  .rules-card-header {
    position: relative;
    padding: 1.2rem 1rem;
    gap: 0.8rem;
    cursor: pointer;
  }

  .content-card-header i,
  .rules-card-header i {
    font-size: 1.5rem;
  }

  .content-card-header h3,
  .rules-card-header h3 {
    font-size: 1.3rem;
  }

  .application-options-section .rules-card-header,
  .application-options-section .content-card-header {
    gap: 0;
  }

  .dropdown-toggle {
    position: relative;
    justify-content: space-between;
  }

  .dropdown-icon {
    display: inline-block !important;
    margin-left: auto;
    font-size: 1.2rem !important;
    color: rgb(255 255 255 / 90%) !important;
    transition: transform 0.3s ease;
  }

  /* Rotate dropdown icon when active */
  .dropdown-toggle.active .dropdown-icon {
    transform: rotate(180deg);
  }

  /* Hide dropdown icons on Welcome tab cards */
  .welcome .content-card-header .dropdown-icon {
    display: none !important;
  }

  /* Welcome tab headers should not be clickable */
  .welcome .content-card-header {
    cursor: default;
  }

  /* Universal Content Card Content - Mobile Dropdown */
  /* Only apply dropdown to Rules and Join tabs, NOT Welcome tab */
  .rules .content-card-content,
  .rules .rules-card-content,
  .whitelist .content-card-content,
  .whitelist .rules-card-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0;
    visibility: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.25s ease-in 0.05s, 
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0s 0.4s;
  }

  .rules .content-card-content.show,
  .rules .rules-card-content.show,
  .whitelist .content-card-content.show,
  .whitelist .rules-card-content.show {
    max-height: 5000px;
    opacity: 1;
    padding: 1.5rem;
    visibility: visible;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.25s ease-out 0.1s, 
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0s 0s;
  }

  /* Welcome tab cards - always visible on mobile */
  .welcome .content-card-content {
    max-height: none;
    opacity: 1;
    transform: none;
    overflow: visible;
  }

  /* Vote tab cards - always visible on mobile */
  .vote .vote-card-content {
    max-height: none;
    opacity: 1;
    transform: none;
    overflow: visible;
  }

  .rule-item {
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    padding-bottom: 1.2rem;
  }

  .rule-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .rule-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
  }

  .rule-icon i {
    font-size: 1.2rem;
  }

  .rule-content h4 {
    font-size: 1.1rem;
  }

  .rule-content p {
    font-size: 0.95rem;
  }

  .allowed-mods-list {
    margin: 0.8rem 0;
  }

  .allowed-mods-list li {
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
  }

  .allowed-mods-list li i {
    font-size: 1rem;
  }

  /* Building Guidelines - Mobile maintains vertical layout */
  .building-guidelines-grid {
    gap: 0;
  }

  .building-area {
    padding: 1.2rem 0;
  }

  .building-area:first-child {
    padding-top: 0;
  }

  .building-area-icon {
    width: 40px;
    height: 40px;
  }

  .building-area-icon i {
    font-size: 1.2rem;
  }

  .building-area h4 {
    margin: 0 0 0.6rem;
    font-size: 1.1rem;
  }

  .building-area ul {
    padding-left: 1rem;
  }

  .building-area ul li {
    margin-bottom: 0.6rem;
    padding-left: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .building-area ul li::before {
    font-size: 0.8rem;
  }

  .rules-footer {
    padding: 1.2rem;
    margin-top: 1.5rem;
  }

  .rules-footer p {
    font-size: 1rem;
  }

  /* Vote Tab */
  .vote {
    padding: 0.4rem;
    padding-top: 1rem;
  }

  .vote h2 {
    font-size: 2rem;
  }

  .voting-sites {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-auto-flow: row;
  }

  /* FAQ Section - Mobile */
  .faq-section {
    padding: 1rem;
  }

  .faq-section h2 {
    font-size: 1.5rem;
  }

  .faq-question {
    font-size: 0.95rem;
    padding: 0.8rem;
  }

  .faq-answer {
    padding: 0.8rem;
    font-size: 0.9rem;
  }

  /* Typography */
  h2 {
    font-size: 1.5em;
  }

  p {
    font-size: 1em;
  }

  h2,
  h3,
  h4 {
    margin-bottom: 1.5rem;
    color: var(--light-text);
  }

  p {
    margin-bottom: 1.5rem;
    color: rgb(255 255 255 / 90%);
  }

  /* Buttons */
  button {
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
  }

  button:hover {
    box-shadow: 0 6px 15px rgb(0 0 0 / 30%);
  }

  /* Forms */
  .form-group {
    width: 100%;
    margin-bottom: 1.5rem;
  }

  .form-actions {
    flex-direction: column;
    gap: 10px;
  }

  .submit-button,
  .reset-button {
    width: 100%;
  }

  /* General */
  body {
    font-size: 14px;
  }
}


/* ========== MOBILE SMALL (max-width: 712px) ========== */
@media (max-width: 712px) {
  .header-buttons {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .join-whitelist,
  .apply-now-btn {
    width: auto;
    min-width: 200px;
    max-width: 280px;
  }
}


/* ========== MOBILE EXTRA SMALL (max-width: 480px) ========== */
@media (max-width: 480px) {
  
  .feature-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .feature-icon {
    margin-bottom: 1rem;
  }

  .tab-button {
    padding: 8px 16px;
    font-size: 0.9em;
  }

  /* Tab Hero - Extra Small Mobile */
  .tab-hero {
    padding: 1.2rem 0.8rem;
  }

  .tab-hero h2 {
    font-size: 1.75rem;
  }

  .tab-hero .tab-intro {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  /* FAQ - Extra Small Mobile */
  .faq-section {
    padding: 0.8rem;
  }

  .faq-section h2 {
    font-size: 1.3rem;
  }

  .faq-question {
    font-size: 0.9rem;
    padding: 0.7rem;
  }

  .faq-answer {
    padding: 0.7rem;
    font-size: 0.85rem;
  }

  /* Building Guidelines - Extra Small Mobile */
  .building-area {
    padding: 1rem 0;
  }

  .building-area-icon {
    width: 36px;
    height: 36px;
  }

  .building-area-icon i {
    font-size: 1.1rem;
  }

  .building-area h4 {
    font-size: 1rem;
  }

  .building-area ul li {
    font-size: 0.85rem;
    padding-left: 0.9rem;
  }
}

/* ============================================================================
   TOP VOTERS LEADERBOARD
   ============================================================================ */

.top-voters-container {
  min-height: 150px;
}

.loading-spinner,
.no-voters-message,
.error-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.loading-spinner i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: rgb(106, 27, 154);
}

.no-voters-message i,
.error-message i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.top-voters-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.voter-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.voter-avatar {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  border: 2px solid rgba(106, 27, 154, 0.3);
  transition: all 0.3s ease;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

.voter-row:hover .voter-avatar {
  border-color: rgb(106, 27, 154);
  transform: scale(1.1);
}

.voter-row:hover {
  background: rgba(106, 27, 154, 0.15);
  transform: translateX(5px);
}

.voter-row.top-three {
  background: rgba(106, 27, 154, 0.2);
  border-left-color: rgb(106, 27, 154);
}

.voter-rank {
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.voter-rank .rank-number {
  font-weight: bold;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.1rem;
}

.voter-name {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
}

.voter-votes {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-left: auto;
}

.vote-count {
  font-size: 1.3rem;
  font-weight: bold;
  color: rgb(106, 27, 154);
}

.vote-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .voter-row {
    padding: 0.85rem 1rem;
  }

  .voter-rank {
    min-width: 35px;
    font-size: 1.1rem;
  }

  .voter-name {
    font-size: 1rem;
    margin-left: 0.75rem;
  }

  .vote-count {
    font-size: 1.1rem;
  }

  .vote-label {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .voter-row {
    padding: 0.75rem 0.85rem;
  }

  .voter-rank {
    min-width: 30px;
    font-size: 1rem;
  }

  .voter-name {
    font-size: 0.95rem;
    margin-left: 0.5rem;
  }

  .vote-count {
    font-size: 1rem;
  }
}

/* ============================================================================
   CHART CONTAINER (Server Stats)
   ============================================================================ */

.chart-container {
  position: relative;
  width: 100%;
  height: 200px;
  margin-top: 1rem;
}

/* Mobile - Taller chart for better visibility */
@media (max-width: 768px) {
  .chart-container {
    height: 250px;
  }
}


/* ============================================================================
   END OF STYLESHEET
   ============================================================================ */
