@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Nunito:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #1a1a1a;
  --primary-light: #2a2a2a;
  --accent: #c9a227;
  --accent-dark: #a8871c;
  --red: #8b1a1a;
  --red-light: #a52525;
  --dark: #111111;
  --light: #f8f8f8;
  --white: #ffffff;
  --gray-100: #f5f5f5;
  --gray-200: #e8e8e8;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  --text: #1a1a1a;
  --text-muted: #737373;
  --border: #e5e5e5;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: all 0.2s ease;
}

[data-theme="dark"] {
  --primary: #f5f5f5;
  --primary-light: #e5e5e5;
  --accent: #d4af37;
  --accent-dark: #b8960f;
  --dark: #ffffff;
  --light: #1a1a1a;
  --white: #1e1e1e;
  --gray-100: #2a2a2a;
  --gray-200: #333333;
  --gray-300: #444444;
  --gray-400: #666666;
  --gray-500: #888888;
  --gray-600: #aaaaaa;
  --gray-700: #cccccc;
  --gray-800: #e0e0e0;
  --gray-900: #f0f0f0;
  --text: #f5f5f5;
  --text-muted: #999999;
  --border: #404040;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow: 0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.5), 0 4px 6px rgba(0,0,0,0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--white);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.display-title {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
}

img {
  max-width: 100%;
  height: auto;
}

/* ==================== HEADER ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

[data-theme="dark"] .header {
  background: rgba(30,30,30,0.95);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

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

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
  color: var(--text);
}

.theme-toggle:hover {
  background: var(--gray-100);
  border-color: var(--gray-300);
}

[data-theme="dark"] .theme-toggle {
  background: var(--gray-800);
  border-color: var(--gray-700);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #c62828;
}

.logo-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius);
  transition: var(--transition);
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: var(--gray-100);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  padding: 8px;
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-content a {
  display: block;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--gray-600);
  border-radius: 6px;
  margin: 0;
}

.nav-dropdown-content a:hover {
  background: var(--gray-100);
  color: var(--text);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* ==================== HERO ==================== */
.hero {
  padding: 160px 24px 100px;
  text-align: center;
  background: linear-gradient(180deg, rgba(26,26,46,0.92) 0%, rgba(22,33,62,0.88) 50%, rgba(15,52,96,0.85) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--white);
}

.hero p {
  color: rgba(255,255,255,0.9);
}

.hero-badge {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  backdrop-filter: blur(4px);
}

[data-theme="dark"] .hero {
  background: linear-gradient(180deg, rgba(15,15,25,0.95) 0%, rgba(20,25,40,0.92) 50%, rgba(10,15,30,0.88) 100%);
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-600);
  margin-bottom: 24px;
}

.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

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

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--gray-800);
  color: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--gray-100);
  border-color: var(--gray-300);
  color: var(--text);
}

.btn-accent {
  background: var(--red);
  color: var(--white);
}

.btn-accent:hover {
  background: var(--red-light);
  color: var(--white);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
}

/* ==================== SECTIONS ==================== */
.section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-alt {
  background: var(--gray-100);
  position: relative;
}

.section-alt > * {
  position: relative;
  z-index: 1;
}

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

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ==================== CARDS ==================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-image {
  height: 180px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-cover {
  width: 100%;
  max-height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}

.news-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 24px;
}

.card-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--gray-400);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ==================== SERVER LIST ==================== */
.server-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.server-item {
  display: grid;
  grid-template-columns: 50px 1fr 120px 100px 120px;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--transition);
}

.server-item:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow);
}

.server-status {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.server-status.online {
  background: #dcfce7;
  color: #16a34a;
  border: 2px solid #16a34a;
}

.server-status.offline {
  background: #fee2e2;
  color: #dc2626;
  border: 2px solid #dc2626;
}

.server-info h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.server-info p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.server-players {
  text-align: center;
}

.server-players .count {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.server-players .label {
  font-size: 0.7rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.server-game {
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* Server Stats */
.server-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.server-stats .stat-item {
  text-align: center;
}

.server-stats .stat-value {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 1;
}

.server-stats .stat-label {
  font-size: 0.8rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Server Loading */
.server-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 16px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.server-loading p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Server Error */
.server-error {
  text-align: center;
  padding: 60px 20px;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-lg);
}

.server-error p {
  color: #991b1b;
  margin-bottom: 16px;
}

/* Server Empty */
.server-empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
}

.server-empty p {
  color: var(--text-muted);
}

/* ==================== ABOUT ==================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  border: 1px solid var(--border);
}

.about-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 30px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--gray-100);
  border-radius: var(--radius);
}

.about-feature-icon {
  width: 40px;
  height: 40px;
  background: var(--white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.about-feature-text {
  font-size: 0.9rem;
  font-weight: 500;
}

/* ==================== PARTNERS ==================== */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.partner-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: var(--transition);
}

.partner-card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-md);
}

.partner-icon {
  font-size: 2.5rem;
  margin-bottom: 14px;
}

.partner-card h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.partner-card p {
  font-size: 0.8rem;
  color: var(--gray-400);
}

/* ==================== CONTACT ==================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

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

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  background: var(--gray-100);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.1);
}

.form-group textarea {
  height: 140px;
  resize: vertical;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  background: var(--gray-100);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.contact-info-text p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==================== TERMS ==================== */
.terms-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.terms-content h3 {
  font-size: 1.2rem;
  margin: 32px 0 12px;
  color: var(--text);
}

.terms-content p,
.terms-content ul {
  color: var(--gray-600);
  margin-bottom: 14px;
}

.terms-content ul {
  padding-left: 24px;
}

.terms-content ul li {
  margin-bottom: 8px;
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* ==================== DISCLAIMER ==================== */
.disclaimer {
  background: var(--gray-100);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 40px 0;
  text-align: center;
}

.disclaimer p {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.7;
}

.disclaimer strong {
  color: var(--text);
}

/* ==================== FOOTER ==================== */
.footer {
  background: linear-gradient(180deg, var(--gray-900) 0%, #0a0a0a 100%);
  color: var(--white);
  padding: 60px 24px 30px;
  position: relative;
  overflow: hidden;
}

.footer > * {
  position: relative;
  z-index: 1;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--gray-400);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  background: var(--gray-800);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--dark);
}

.footer-links h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--gray-300);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--gray-800);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.footer-legal {
  max-width: 1200px;
  margin: 20px auto 0;
  font-size: 0.7rem !important;
  color: var(--gray-600) !important;
  text-align: center;
  line-height: 1.7;
}

/* ==================== PAGE HEADER ==================== */
.page-header {
  padding: 140px 24px 60px;
  text-align: center;
  background: linear-gradient(180deg, rgba(26,26,46,0.88) 0%, rgba(22,33,62,0.85) 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-header > * {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
  color: var(--white);
}

.page-header p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

[data-theme="dark"] .page-header {
  background: linear-gradient(180deg, rgba(15,15,25,0.92) 0%, rgba(20,25,40,0.88) 100%);
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--gray-400);
}

.breadcrumb a {
  color: var(--gray-500);
}

.breadcrumb span {
  color: var(--text);
}

/* ==================== NEWS DETAIL ==================== */
.news-detail {
  max-width: 800px;
  margin: 0 auto;
}

.news-detail-header {
  margin-bottom: 30px;
}

.news-detail-header .card-tag {
  margin-bottom: 16px;
}

.news-detail-header h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.news-detail-meta {
  display: flex;
  gap: 20px;
  color: var(--gray-400);
  font-size: 0.9rem;
}

.news-detail-content {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.news-detail-content p {
  color: var(--gray-600);
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.8;
}

/* ==================== STATS ==================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 4px;
}

/* ==================== FILTER BUTTONS ==================== */
.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-500);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--gray-300);
  color: var(--text);
}

.filter-btn.active {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}

/* ==================== BACK TO TOP ==================== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

/* ==================== LOADING ==================== */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s;
}

.loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ==================== NOTIFICATION ==================== */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 14px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  z-index: 9999;
  transform: translateX(120%);
  transition: transform 0.3s;
  box-shadow: var(--shadow-lg);
}

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

.notification.success {
  border-left: 4px solid #16a34a;
}

.notification.error {
  border-left: 4px solid #dc2626;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .server-item {
    grid-template-columns: 50px 1fr 100px;
  }
  
  .server-game {
    display: none;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section-header h2 {
    font-size: 1.6rem;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .server-item {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .server-status {
    margin: 0 auto;
  }
  
  .server-stats {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }
  
  .server-stats .stat-value {
    font-size: 2rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .about-features {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .terms-content {
    padding: 24px;
  }
  
  .header-container {
    height: 60px;
  }
  
  .hero {
    padding: 120px 20px 60px;
  }
  
  .page-header {
    padding: 120px 20px 40px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
  }
  
  .section {
    padding: 50px 16px;
  }
  
  .filter-buttons {
    gap: 6px;
  }
  
  .filter-btn {
    padding: 6px 14px;
    font-size: 0.8rem;
  }
}

/* ========== OTIMIZAÇÕES PAGE ========== */

.opt-section {
  max-width: 900px;
  margin: 0 auto 64px;
  padding: 0 24px;
}
.opt-section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  color: var(--text);
  margin-bottom: 12px;
  position: relative;
  padding-left: 20px;
}
.opt-section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 80%;
  background: var(--accent);
  border-radius: 3px;
}
.opt-section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
  line-height: 1.7;
}
.opt-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  transition: box-shadow 0.3s ease;
}
.opt-card:hover {
  box-shadow: var(--shadow-md);
}
.opt-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.opt-card h3 .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(201,162,39,0.1);
  color: var(--accent);
  border-radius: 10px;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.opt-card p,
.opt-card li {
  color: var(--gray-600);
  line-height: 1.8;
}
.opt-card ul,
.opt-card ol {
  padding-left: 24px;
  margin: 12px 0;
}
.opt-card li {
  margin-bottom: 8px;
}
.opt-card code {
  background: var(--gray-100);
  color: var(--accent-dark);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}
.opt-card strong {
  color: var(--text);
  font-weight: 700;
}
.opt-tip {
  background: rgba(201,162,39,0.1);
  border: 1px solid rgba(201,162,39,0.3);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 20px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.opt-tip .tip-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.opt-tip p {
  color: var(--gray-700);
  margin: 0;
  line-height: 1.7;
}
.opt-warning {
  background: rgba(139,26,26,0.1);
  border: 1px solid rgba(139,26,26,0.3);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 20px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.opt-warning .warn-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.opt-warning p {
  color: var(--red);
  margin: 0;
  line-height: 1.7;
}
.opt-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 20px;
  background: var(--gray-100);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 12px;
}
.opt-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.opt-step-content h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.opt-step-content p {
  color: var(--gray-600);
  margin: 0;
  line-height: 1.6;
}
.config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.config-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: all 0.3s ease;
}
.config-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.config-card .config-icon {
  width: 56px;
  height: 56px;
  background: rgba(201,162,39,0.1);
  color: var(--accent);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.config-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.config-card .config-subtitle {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-bottom: 20px;
}
.config-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}
.config-card ul li {
  font-size: 0.9rem;
  color: var(--gray-600);
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-between;
}
.config-card ul li:last-child {
  border-bottom: none;
}
.config-card ul li span {
  font-weight: 600;
  color: var(--text);
}
.mod-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}
.mod-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
}
.mod-list li:last-child {
  border-bottom: none;
}
.mod-list li .mod-icon {
  width: 36px;
  height: 36px;
  background: rgba(201,162,39,0.1);
  color: var(--accent);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}
.mod-list li .mod-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.mod-list li .mod-info p {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin: 0;
}
.opt-disclaimer {
  max-width: 900px;
  margin: 0 auto 64px;
  padding: 0 24px;
}
.opt-disclaimer-box {
  background: var(--gray-100);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.opt-disclaimer-box .disc-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.opt-disclaimer-box p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.7;
}
.opt-disclaimer-box p strong {
  color: var(--text);
}
.toc {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: -40px auto 48px;
  max-width: 800px;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-md);
}
.toc h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 20px;
}
.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.toc-grid a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--gray-100);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}
.toc-grid a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.toc-grid a .toc-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .opt-section {
    padding: 0 16px;
  }
  .opt-section-title {
    font-size: 2rem;
  }
  .opt-card {
    padding: 24px;
  }
  .config-grid {
    grid-template-columns: 1fr;
  }
  .toc {
    margin: -30px 16px 40px;
    padding: 24px;
  }
  .toc-grid {
    grid-template-columns: 1fr;
  }
  .page-header h1 {
    font-size: 2.8rem;
  }
  .page-header p {
    font-size: 1rem;
  }
}

/* ==================== NAV DOWNLOAD LINK ==================== */
.nav-download {
  background: var(--red) !important;
  color: var(--white) !important;
  border-radius: var(--radius);
  padding: 6px 16px !important;
  font-weight: 700 !important;
  margin: 0 4px;
}

.nav-download:hover {
  background: var(--red-light) !important;
  color: var(--white) !important;
}

/* ==================== DOWNLOAD MODAL ==================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: modalFadeIn 0.2s ease;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-header h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  color: var(--gray-400);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: var(--transition);
}

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

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-body h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}

.license-terms {
  background: var(--gray-100);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  max-height: 45vh;
  overflow-y: auto;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--gray-700);
  white-space: pre-wrap;
  margin-bottom: 20px;
}

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

.license-terms::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 3px;
}

.license-terms::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 3px;
}

.terms-accept {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
  background: var(--gray-100);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.terms-accept input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.terms-accept label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  line-height: 1.4;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

#downloadBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========== NEWS VIEWS ========== */

.news-views {
  color: var(--gray-500);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ========== SHARE BUTTONS ========== */

.share-section {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.share-label {
  color: var(--gray-500);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.share-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--gray-500);
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.share-btn svg {
  display: block;
}

.share-facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
  color: #fff;
}

.share-twitter:hover {
  background: #000;
  border-color: #000;
  color: #fff;
}

.share-whatsapp:hover {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}

.share-telegram:hover {
  background: #0088cc;
  border-color: #0088cc;
  color: #fff;
}

.share-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
