/* Core Styles */
:root {
  --primary-color: #9333EA;
  --secondary-color: #E879F9;
  --dark-purple: #581C87;
  --dark-color: #0F0F0F;
  --dark-light-color: #1A1A1A;
  --text-color: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--dark-color);
  color: var(--text-color);
  line-height: 1.6;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  align-items: center;
  justify-content: center;
}

/* Hide vertical scrollbar on secondary headers */
header,
.bg-dark-light {
  overflow-y: hidden;
}

/* Fade-in for page and sections */
body, section, header, .faq-gradient-card, .card, .rounded-xl, .bg-dark-light, .bg-dark-light\/50 {
  animation: fadeIn 0.8s cubic-bezier(0.4,0,0.2,1) both;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  background: #1e293b;
  border-radius: 8px;
}

::-webkit-scrollbar-track {
  background: #232526;
  border-radius: 8px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(120deg, #2563eb 0%, #38bdf8 100%);
  border-radius: 8px;
  box-shadow: 0 2px 8px #2563eb44;
  border: 2px solid #1e293b;
  min-height: 40px;
  transition: background 0.2s, width 0.2s;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(120deg, #38bdf8 0%, #2563eb 100%);
  width: 14px;
  box-shadow: 0 4px 16px #2563eb66;
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #2563eb #232526;
}

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

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 5px var(--primary-color);
  }
  50% {
    box-shadow: 0 0 15px var(--primary-color), 0 0 30px var(--dark-purple);
  }
  100% {
    box-shadow: 0 0 5px var(--primary-color);
  }
}

.animate-fadeIn {
  animation: fadeIn 1s ease-in;
}

.animate-pulse-glow {
  animation: pulseGlow 2s infinite;
}

/* Loading overlay */
#loading {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.95);
  color: var(--primary-color);
  font-size: 1.5rem;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.05em;
  font-weight: 600;
  transition: opacity 0.3s;
}

/* Custom CSS (Supporting Tailwind) */
.btn-glow:hover {
  box-shadow: 0 0 15px var(--primary-color), 0 0 30px var(--dark-purple);
  transition: all 0.3s ease;
}

.image-overlay {
  position: relative;
}

.image-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(to right, rgba(15, 15, 15, 0.8), transparent);
}

/* Hero Section Gradient */
.hero-gradient {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(15, 15, 15, 0.9));
}

/* Glass Effect */
.glass-effect {
  background: rgba(26, 26, 26, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .container {
    padding: 0 20px;
  }
}

/* Form Styles */
input:focus, textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(147, 51, 234, 0.25);
  outline: none;
}

/* Hover Effects */
.hover-scale {
  transition: transform 0.3s ease;
}

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

/* Custom Border Glow */
.border-glow {
  border: 1.5px solid var(--primary-color) !important;
  box-shadow: 0 0 12px 0 var(--primary-color), 0 2px 16px 0 rgba(16,185,129,0.10);
}

/* Card, FAQ, and Panel Hover/Active/Focus Effects */
.rounded-xl, .card, .faq-gradient-card, .bg-dark-light, .bg-dark-light\/50 {
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.rounded-xl:focus-within, .card:focus-within, .faq-gradient-card:focus-within {
  box-shadow: 0 0 0 2px var(--primary-color);
  border-color: var(--primary-color);
}
.rounded-xl:active, .card:active, .faq-gradient-card:active {
  transform: scale(0.98);
}
.rounded-xl:hover, .card:hover, .faq-gradient-card:hover, .bg-dark-light:hover, .bg-dark-light\/50:hover {
  box-shadow: 0 8px 32px 0 rgba(16,185,129,0.18), 0 0 12px 0 var(--primary-color);
  transform: scale(1.03);
  border-color: var(--primary-color);
}

/* FAQ and Rules Card Styles */
.faq-gradient-card, .expandable-rule {
  border-radius: 1.5rem;
  border-left: 6px solid #10b981;
  background: linear-gradient(120deg, #181c24 80%, #10b98122 100%);
  box-shadow: 0 4px 24px 0 rgba(16,185,129,0.13), 0 1.5px 8px 0 rgba(0,0,0,0.12);
  margin-bottom: 2rem;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  padding: 1.2rem 1.5rem;
}
.faq-gradient-card:hover, .expandable-rule:hover, .expandable-rule:focus-within {
  box-shadow: 0 8px 32px 0 rgba(16,185,129,0.18), 0 2px 12px 0 rgba(0,0,0,0.13);
  transform: scale(1.025);
  border-left-color: #22d3ee;
  background: linear-gradient(120deg, #232b3b 90%, #10b98111 100%);
}
.faq-gradient-card .faq-content, .expandable-rule .rule-card-content {
  background: linear-gradient(120deg, #232b3b 90%, #10b98111 100%);
  border-radius: 1rem;
  box-shadow: 0 2px 12px 0 rgba(16,185,129,0.10);
  padding: 1rem 1.5rem;
  font-size: 1.05rem;
}
.rules-divider {
  margin: 2.5rem 0;
  border-radius: 1rem;
  box-shadow: 0 2px 12px 0 rgba(16,185,129,0.07);
}

/* Heading gradient and shadow */
h1, h2, h3, h4 {
  text-shadow: 0 2px 12px #10b98122, 0 1px 2px #0003;
}
h1 {
  background: linear-gradient(90deg, #10b981 30%, #22d3ee 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  margin-bottom: 1.5rem;
}
h2, h3 {
  margin-bottom: 1rem;
  text-shadow: 0 1px 8px #10b98111;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .faq-gradient-card, .expandable-rule {
    margin-bottom: 1.2rem !important;
    border-radius: 1rem;
    padding: 0.7rem 0.7rem;
  }
  h1 { font-size: 2rem; }
}
    #changelog-modal {
      display: none; /* default hidden */
      align-items: center;
      justify-content: center;
      position: fixed;
      inset: 0;
      z-index: 50;
      /* modal-bg styles */
      background: rgba(30, 41, 59, 0.85);
      backdrop-filter: blur(2px);
    }
    #changelog-modal.flex {
      display: flex !important;
    }
    .modal-content {
      /* ...existing code... */
      max-width: 600px;
      background: #232526;
      border-radius: 1rem;
      box-shadow: 0 8px 32px rgba(0,0,0,0.35);
      padding: 2rem;
      color: #fff;
      font-family: 'Montserrat', sans-serif;
      position: relative;
      max-height: 80vh;
      overflow-y: auto;
      /* Add transition for smooth appearance */
      transition: transform 0.2s, opacity 0.2s;
      opacity: 1;
      transform: scale(1);
    }
    #changelog-modal:not(.flex) .modal-content {
      opacity: 0;
      transform: scale(0.95);
      pointer-events: none;
    }
    /* Improve date button appearance */
    .date-btn {
      display: flex;
      align-items: center;
      gap: 0.7em;
      background: #232526;
      color: #38bdf8;
      font-weight: 700;
      font-size: 1.15rem;
      border-radius: 0.7em;
      padding: 0.7em 1.2em;
      margin-bottom: 1em;
      box-shadow: 0 2px 8px #222;
      cursor: pointer;
      border: 2px solid #334155;
      transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
      justify-content: center; /* Center text/icon horizontally */
      width: 100%; /* Make button full width for centering */
      max-width: 340px; /* Limit max width */
      margin-left: auto;
      margin-right: auto;
    }
    .date-btn:hover, .date-btn:focus {
      background: #38bdf8;
      color: #232526;
      border-color: #38bdf8;
      box-shadow: 0 4px 16px #222;
    }
    /* Center the date buttons container */
    #changelog-dates {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      margin-bottom: 2em;
    }
    .discord-header {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 1.35rem;
      font-weight: 900;
      color: #fff;
      margin-bottom: 0.2em;
      margin-top: 1.2em;
      letter-spacing: 0.5px;
    }
    .discord-header.fivem {
      color: #fbbf24;
    }
    .discord-header.website {
      color: #34d399;
    }
    .discord-logo {
      width: 32px;
      height: 32px;
      border-radius: 8px;
      object-fit: cover;
      box-shadow: 0 2px 8px #222;
      background: #232526;
      border: 2px solid #414345;
    }
    .discord-subtitle {
      font-size: 1.1rem;
      font-weight: 700;
      color: #b3b3b3;
      margin-bottom: 0.5em;
      margin-top: 0.2em;
      letter-spacing: 0.2px;
    }
    .discord-list {
      border-left: 2px solid #444;
      margin-left: 1.2em;
      padding-left: 1.2em;
      margin-bottom: 1em;
    }
    .discord-list > li {
      margin-bottom: 0.4em;
      font-size: 1.05rem;
      line-height: 1.7;
      color: #e5e7eb;
    }
    .discord-list ul {
      margin-top: 0.2em;
      margin-bottom: 0.2em;
      padding-left: 1.2em;
      font-size: 0.98rem;
      color: #b3b3b3;
    }
    .discord-list a {
      color: #38bdf8;
      font-weight: 600;
      text-decoration: underline;
      transition: color 0.15s;
    }
    .discord-list a:hover {
      color: #fbbf24;
    }
    .changelog-card {
      transition: transform 0.15s, box-shadow 0.15s;
    }
    .changelog-card:hover {
      transform: translateY(-4px) scale(1.02);
      box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    }
    .changelog-date {
      font-size: 1.2rem;
      font-weight: 800;
      color: #38bdf8;
      letter-spacing: 1px;
      margin-bottom: 0.5rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      text-shadow: 0 1px 4px #222;
    }
    .changelog-section {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-weight: 700;
      color: #fbbf24;
      margin-top: 1rem;
      margin-bottom: 0.25rem;
      font-size: 1.1rem;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .changelog-section.website {
      color: #34d399;
    }
    .changelog-list {
      padding-left: 1.5rem;
      margin-bottom: 0.5rem;
    }
    .changelog-list > li {
      margin-bottom: 0.3em;
      font-size: 1.05rem;
      line-height: 1.6;
    }
    .changelog-list > li strong {
      color: #fbbf24;
      font-weight: 700;
      background: rgba(251,191,36,0.08);
      padding: 2px 6px;
      border-radius: 4px;
    }
    .changelog-list a {
      color: #38bdf8;
      font-weight: 600;
      text-decoration: underline;
      transition: color 0.15s;
    }
    .changelog-list a:hover {
      color: #fbbf24;
    }
    .changelog-list ul {
      background: rgba(56,189,248,0.05);
      border-radius: 6px;
      padding: 0.5em 1em;
      margin: 0.3em 0;
    }
    .changelog-card {
      font-family: 'Montserrat', sans-serif;
    }
    h1 {
      font-family: 'Montserrat', sans-serif;
      letter-spacing: 1.5px;
      text-shadow: 0 2px 8px #222;
    }
    .modal-bg {
      background: rgba(30, 41, 59, 0.85);
      backdrop-filter: blur(2px);
    }
    .modal-content {
      max-width: 600px;
      background: #232526;
      border-radius: 1rem;
      box-shadow: 0 8px 32px rgba(0,0,0,0.35);
      padding: 2rem;
      color: #fff;
      font-family: 'Montserrat', sans-serif;
      position: relative;
      max-height: 80vh; /* Add this */
      overflow-y: auto; /* Add this */
    }
    .modal-close {
      position: absolute;
      top: 1rem;
      right: 1rem;
      font-size: 1.5rem;
      color: #38bdf8;
      cursor: pointer;
      transition: color 0.2s;
    }
    .modal-close:hover {
      color: #f87171;
    }
    .date-btn {
      display: flex;
      align-items: center;
      gap: 0.7em;
      background: #232526;
      color: #38bdf8;
      font-weight: 700;
      font-size: 1.15rem;
      border-radius: 0.7em;
      padding: 0.7em 1.2em;
      margin-bottom: 1em;
      box-shadow: 0 2px 8px #222;
      cursor: pointer;
      border: 2px solid #334155;
      transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
      justify-content: center; /* Center text/icon horizontally */
      width: 100%; /* Make button full width for centering */
      max-width: 340px; /* Limit max width */
      margin-left: auto;
      margin-right: auto;
    }
    .date-btn:hover, .date-btn:focus {
      background: #38bdf8;
      color: #232526;
      border-color: #38bdf8;
      box-shadow: 0 4px 16px #222;
    }
    /* Center the date buttons container */
    #changelog-dates {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      margin-bottom: 2em;
    }

    h1, h2, h3, h4 {
        font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
        font-weight: 800;
        letter-spacing: -0.5px;
        margin-bottom: 0.5em;
      }
      h1 {
        font-size: 2.7rem;
        line-height: 1.1;
        margin-bottom: 1rem;
      }
      h2 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
      }
      h3 {
        font-size: 1.3rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
      }
      h4 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
      }
      @media (max-width: 640px) {
        h1 { font-size: 2rem; }
        h2 { font-size: 1.3rem; }
        h3 { font-size: 1.1rem; }
      }
      /* Improved Layout & Spacing */
      .section-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 3rem 1.5rem;
      }
      .section-title {
        font-size: 2.5rem;
        font-weight: 900;
        letter-spacing: -1px;
        margin-bottom: 1.5rem;
        text-align: left;
        color: #10b981;
        position: relative;
      }
      .section-title::after {
        content: "";
        display: block;
        height: 4px;
        width: 80px;
        background: linear-gradient(90deg, #10b981, #22d3ee, #0ea5e9);
        border-radius: 2px;
        margin-top: 0.5rem;
        animation: gradient-move 3s linear infinite;
      }
      /* Remove staff avatars group */
      .staff-avatars, .staff-avatar { display: none !important; }
      section.py-16.bg-dark {
        background: linear-gradient(120deg, #181c24 60%, #1e232b 100%);
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
      }
      .faq-gradient-card {
        border-radius: 1.25rem;
        border-left-width: 5px;
        box-shadow: 0 4px 24px 0 rgba(16,185,129,0.07);
        margin-bottom: 1.5rem;
        transition: box-shadow 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 320px;
      }
      .faq-gradient-card:hover {
        box-shadow: 0 8px 32px 0 rgba(16,185,129,0.13);
      }
      .bg-dark-light {
        background: #1e293b;
      }
      .bg-dark-light,
      .bg-dark-light\/50 {
        border-radius: 1.25rem;
        box-shadow: 0 2px 12px 0 rgba(0,0,0,0.10);
        width: 100%;
        max-width: 2xl;
        margin: 0 auto;
        padding: 2rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
      }
      .faq-gradient-card .bg-dark-light,
      .faq-gradient-card .bg-dark-light\/50 {
        background: rgba(30,41,59,0.97);
      }
      body::before {
        content: "";
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        z-index: 0;
        pointer-events: none;
        opacity: 0.08;
        background: url('https://www.transparenttextures.com/patterns/cubes.png');
        mix-blend-mode: lighten;
      }
      .rules-divider {
        margin: 2rem 0;
        display: flex;
        align-items: center;
      }
      .rules-divider .line {
        flex-grow: 1;
        border-top: 1px solid #374151;
      }
      .rules-divider .icon {
        margin: 0 1rem;
        color: #6b7280;
      }
      @media (max-width: 768px) {
        .faq-gradient-card {
          min-height: 0;
        }
        .bg-dark-light, .bg-dark-light\/50 {
          padding: 1rem;
        }
      }
      /* Fade-in for page */
      body {
        opacity: 0;
        transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1);
      }
      body.loaded {
        opacity: 1;
      }
      /* Loading overlay style (matches style.css) */
      #loading {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.95);
        color: #10b981;
        font-size: 1.5rem;
        z-index: 2000;
        display: flex;
        align-items: center;
        justify-content: center;
        letter-spacing: 0.05em;
        font-weight: 600;
        transition: opacity 0.3s;
      }
      /* Header improvements */
      .glass-header {
        background: linear-gradient(120deg, #181c24 60%, #1e232b 100%);
        box-shadow: 0 8px 32px 0 rgba(16,185,129,0.15);
        border-radius: 0 0 2.5rem 2.5rem;
        border-bottom: 2px solid #10b98133;
        position: relative;
        overflow: hidden;
        min-height: 340px;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .glass-header .container {
        z-index: 2;
        position: relative;
      }
      .glass-header::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(120deg, #10b98133 0%, #0ea5e933 100%);
        opacity: 0.35;
        z-index: 1;
      }
      .glass-header img {
        opacity: 0.18;
        filter: blur(6px);
      }
      /* Sidebar improvements */
      .quick-nav {
        position: sticky;
        top: 120px;
        left: 0;
        background: #1e293bcc;
        border-radius: 1rem;
        box-shadow: 0 2px 12px #10b98122;
        padding: 2rem 1.5rem;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        min-width: 200px;
        margin-right: 2rem;
        height: fit-content;
      }
      .quick-nav a {
        color: #cbd5e1;
        font-weight: 700;
        font-size: 1.1rem;
        border-left: 4px solid transparent;
        padding-left: 1rem;
        transition: color 0.2s, border-color 0.2s;
      }
      .quick-nav a.active, .quick-nav a:hover {
        color: #10b981;
        border-left: 4px solid #10b981;
        background: #232b3b44;
        border-radius: 0.5rem;
      }
      @media (max-width: 1024px) {
        .quick-nav {
          display: none !important;
        }
      }
      /* Card grid improvements */
      .card-grid {
        display: grid;
        gap: 2rem;
        grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
      }
      .card {
        background: linear-gradient(120deg, #1e293b 80%, #10b98122 100%);
        border-radius: 1.5rem;
        box-shadow: 0 2px 12px #10b98122;
        padding: 2rem 1.5rem;
        transition: box-shadow 0.2s, transform 0.2s;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 0;
        border-left: 5px solid #10b981;
      }
      .card:hover {
        box-shadow: 0 6px 24px #10b98155;
        transform: translateY(-4px) scale(1.03);
      }
      .card .icon {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
      }
      .card .role {
        font-weight: 700;
        font-size: 1.2rem;
        color: #10b981;
        margin-bottom: 0.25rem;
      }
      .card .desc {
        color: #cbd5e1;
        font-size: 1rem;
      }
      /* Responsive tweaks */
      @media (max-width: 900px) {
        .section-title { font-size: 2rem; }
        .card-grid { gap: 1rem; }
        .card { padding: 1.2rem 1rem; }
      }
      @media (max-width: 640px) {
        .section-title { font-size: 1.3rem; }
        .card-grid { grid-template-columns: 1fr; }
      }
      /* Timeline for hierarchy */
      .hierarchy-timeline {
        display: flex;
        gap: 2.5rem;
        padding-bottom: 1rem;
        margin-bottom: 2rem;
        flex-wrap: wrap; /* Added for wrapping */
        justify-content: center; /* Optional: center items if wrapping */
      }
      .hierarchy-step {
        min-width: 220px;
        background: linear-gradient(120deg, #1e293b 80%, #10b98122 100%);
        border-radius: 1.5rem;
        border-left: 5px solid #10b981;
        box-shadow: 0 2px 12px #10b98122;
        padding: 1.5rem 1rem 1rem 1.5rem;
        position: relative;
        transition: box-shadow 0.2s, transform 0.2s;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 0;
      }
      .hierarchy-step:hover {
        box-shadow: 0 6px 24px #10b98155;
        transform: translateY(-4px) scale(1.03);
      }
      .hierarchy-step .icon {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
      }
      .hierarchy-step .role {
        font-weight: 700;
        font-size: 1.2rem;
        color: #10b981;
        margin-bottom: 0.25rem;
      }
      .hierarchy-step .desc {
        color: #cbd5e1;
        font-size: 0.95rem;
      }
      @media (max-width: 900px) {
        .hierarchy-timeline {
          gap: 1.2rem;
        }
        .hierarchy-step {
          min-width: 180px;
          padding: 1rem 0.7rem 0.7rem 1rem;
        }
      }
      @media (max-width: 640px) {
        .hierarchy-timeline {
          flex-direction: column;
          gap: 1rem;
          align-items: stretch;
        }
        .hierarchy-step {
          min-width: 0;
          width: 100%;
          align-items: flex-start;
        }
      }
      /* Quick nav sidebar */
      @media (min-width: 1024px) {
        .quick-nav {
          position: fixed;
          top: 120px;
          left: 32px;
          z-index: 30;
          background: #1e293bcc;
          border-radius: 1rem;
          box-shadow: 0 2px 12px #10b98122;
          padding: 2rem 1.5rem;
          display: flex;
          flex-direction: column;
          gap: 1.5rem;
        }
        .quick-nav a {
          color: #cbd5e1;
          font-weight: 700;
          font-size: 1.1rem;
          border-left: 4px solid transparent;
          padding-left: 1rem;
          transition: color 0.2s, border-color 0.2s;
        }
        .quick-nav a.active, .quick-nav a:hover {
          color: #10b981;
          border-left: 4px solid #10b981;
          background: #232b3b44;
          border-radius: 0.5rem;
        }
      }
      /* Standardize divider */
      .divider {
        display: flex;
        align-items: center;
        margin: 2.5rem 0;
      }
      .divider .line {
        flex-grow: 1;
        border-top: 1px solid #374151;
      }
      .divider .icon {
        margin: 0 1rem;
        color: #6b7280;
      }
      /* Table improvements */
      .table-responsive {
        overflow-x: unset; /* Remove horizontal scroll */
        border-radius: 1rem;
        box-shadow: 0 4px 32px 0 rgba(16,185,129,0.10);
        margin-bottom: 1.5rem;
      }
      table {
        border-radius: 1rem;
        overflow: visible; /* Remove inner scroll */
        min-width: 600px;
        background: #1e293b;
        box-shadow: 0 2px 12px 0 rgba(16,185,129,0.07);
        transition: box-shadow 0.2s;
      }
      thead th {
        position: sticky;
        top: 0;
        z-index: 2;
        background: #0f172a;
        color: #10b981;
        font-weight: 700;
        border-bottom: 2px solid #10b98133;
        transition: background 0.2s;
      }
      tbody tr {
        transition: background 0.15s, box-shadow 0.15s;
      }
      tbody tr:nth-child(even) {
        background: #232b3b;
      }
      tbody tr:hover {
        background: #10b98122;
        box-shadow: 0 2px 8px #10b98122;
      }
      td, th {
        padding: 0.75rem 0.5rem;
        vertical-align: middle;
      }
      /* No results row */
      .no-results-row td {
        text-align: center;
        color: #888;
        font-style: italic;
        background: #232b3b !important;
      }
          .date-btn {
      display: inline-block;
      margin: 0.25em 0.5em 0.25em 0;
      padding: 0.5em 1.2em;
      border-radius: 9999px;
      background: #232526;
      color: #fff;
      font-weight: 500;
      box-shadow: 0 2px 8px #2222;
      transition: background 0.2s, color 0.2s, box-shadow 0.2s;
      text-decoration: none;
      border: 1px solid #444;
    }
    .date-btn:hover {
      background: #3b82f6;
      color: #fff;
      box-shadow: 0 4px 16px #2224;
      border-color: #3b82f6;
    }
    .modal-bg {
      background: rgba(30, 32, 34, 0.7);
      backdrop-filter: blur(6px);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s;
    }
    .modal-content {
      background: #232526;
      border-radius: 1.2em;
      box-shadow: 0 8px 32px #000a;
      padding: 2em 2em 1.5em 2em;
      max-width: 600px;
      width: 95%;
      animation: modalIn 0.25s;
      position: relative;
    }
    @keyframes modalIn {
      from { opacity: 0; transform: translateY(30px) scale(0.98);}
      to { opacity: 1; transform: translateY(0) scale(1);}
    }
    .modal-close {
      position: absolute;
      top: 1em;
      right: 1.2em;
      font-size: 2em;
      color: #888;
      cursor: pointer;
      transition: color 0.2s, transform 0.2s;
      z-index: 10;
    }
    .modal-close:hover {
      color: #e53e3e;
      transform: scale(1.2);
    }
    #modal-body {
      color: #e5e7eb;
      font-size: 1.05em;
    }
    .discord-header {
      font-size: 1.2em;
      font-weight: 600;
      margin: 1.5em 0 0.5em 0;
      display: flex;
      align-items: center;
      gap: 0.5em;
      color: #3b82f6;
    }
    .discord-logo {
      width: 32px;
      height: 32px;
      border-radius: 8px;
      margin-right: 0.5em;
      box-shadow: 0 2px 8px #2222;
      background: #fff;
    }
    .discord-subtitle {
      font-size: 1em;
      font-weight: 500;
      color: #a3e635;
      margin-bottom: 0.5em;
      margin-top: 0.5em;
    }
    .discord-list {
      margin-bottom: 1.5em;
      padding-left: 1.2em;
    }
    .discord-list > li {
      margin-bottom: 0.7em;
      line-height: 1.6;
      background: none;
      border-radius: 0.5em;
      padding: 0.2em 0.2em 0.2em 0;
    }
    .discord-list ul > li {
      color: #60a5fa;
      font-size: 0.98em;
      margin-bottom: 0.3em;
      margin-left: 0.5em;
    }
    .discord-list ul ul > li {
      color: #fbbf24;
      font-size: 0.95em;
      margin-left: 1em;
    }
    #modal-body img {
      margin: 0.7em 0;
      border-radius: 0.7em;
      box-shadow: 0 2px 12px #2226;
      border: 1px solid #444;
      background: #18181b;
      display: block;
    }
    .modal-content .mb-2 {
      border-bottom: 1px solid #444;
      padding-bottom: 0.5em;
      margin-bottom: 1em;
      color: #fff;
      letter-spacing: 0.02em;
    }
    /* Divider between changelog entries */
    #changelog-dates {
      margin-bottom: 2em;
      border-bottom: 1px solid #444;
      padding-bottom: 1em;
    }
    /* Responsive */
    @media (max-width: 600px) {
      .modal-content {
        padding: 1em 0.5em 1em 0.5em;
      }
      .discord-header {
        font-size: 1em;
      }
      .modal-close {
        font-size: 1.5em;
        top: 0.7em;
        right: 0.7em;
      }
    }
    /* Gallery Filter Buttons Fix */
.filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 56px;
  gap: 0.5em;
  margin: 0.25em 0.5em 0.25em 0;
  padding: 0.6em 1.4em;
  border-radius: 0.7em;
  background: #232526;
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: 0 2px 8px #2222;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  border: 2px solid #334155;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.filter-btn .fa, .filter-btn img {
  margin-right: 0.5em;
  font-size: 1.35em;
  height: 1.7em;
  width: 1.7em;
  display: inline-block;
  vertical-align: middle;
}
.filter-btn img {
  object-fit: contain;
  border-radius: 0.3em;
  background: #fff1;
  box-shadow: 0 1px 4px #0002;
  transition: box-shadow 0.2s;
}
.filter-btn.active img,
.filter-btn:focus img,
.filter-btn:hover img {
  box-shadow: 0 0 8px #10b98188;
  background: #fff3;
}
.filter-btn.active,
.filter-btn:focus,
.filter-btn:hover {
  box-shadow: 0 0 16px 0 #10b98188, 0 2px 16px 0 #22d3ee44;
  animation: filterGlow 1.2s infinite alternate;
}
@keyframes filterGlow {
  0% { box-shadow: 0 0 8px #10b98144; }
  100% { box-shadow: 0 0 16px #10b98188, 0 2px 16px #22d3ee44; }
}

/* Card fade-in effect */
.gallery-card {
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  animation: cardFadeIn 0.7s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes cardFadeIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.gallery-card:hover {
  transform: scale(1.07) rotate(-2deg);
}

/* Modal navigation arrows */
.gallery-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.2rem;
  color: #38bdf8;
  background: #232526cc;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 11;
  transition: background 0.2s, color 0.2s;
}
.gallery-modal-nav:hover {
  background: #10b981;
  color: #fff;
}
.gallery-modal-nav.prev { left: 1rem; }
.gallery-modal-nav.next { right: 1rem; }