/* =========================================
   P4G — Average ASA Enjoyers
   Dark Survival Aesthetic
   ========================================= */

:root {
  --black:       #0a0a0a;
  --dark:        #111111;
  --dark-mid:    #1a1a1a;
  --panel:       #141414;
  --border:      #2a2a2a;
  --green:       #4ade80;
  --green-dim:   #2d6b42;
  --amber:       #f59e0b;
  --amber-dim:   #92400e;
  --red:         #ef4444;
--text:        #f0f4f1;
--text-muted:  #9aaa9e;
--text-dim:    #6a7a6e;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Barlow', sans-serif;
  --font-cond:    'Barlow Condensed', sans-serif;
}

body.light {
  --black:       #ffffff;
  --dark:        #f5f5f5;
  --dark-mid:    #ebebeb;
  --panel:       #f9f9f9;
  --border:      #e0e0e0;
  --green:       #b91c1c;
  --green-dim:   #991b1b;
  --amber:       #c2410c;
  --amber-dim:   #fed7aa;
  --red:         #dc2626;
  --text:        #111111;
  --text-muted:  #444444;
  --text-dim:    #888888;
}

.theme-toggle {
  background: transparent;
  border: none;
  color: var(--text-dim);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  transition: color 0.2s;
  flex-shrink: 0;
  opacity: 0.6;
  font-size: 1rem;
}
.theme-toggle:hover { color: var(--green); opacity: 1; }

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

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

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--green-dim); border-radius: 3px; }

/* =========================================
   HEADER
   ========================================= */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-mark {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--green);
  letter-spacing: 0.1em;
  line-height: 1;
}

.logo-sub {
  font-family: var(--font-cond);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  line-height: 1.3;
  border-left: 1px solid var(--border);
  padding-left: 0.6rem;
}

nav ul {
  display: flex;
  gap: 0.2rem;
  list-style: none;
  align-items: center;
}

nav ul li a {
  font-family: var(--font-cond);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
}

nav ul li a:hover { color: var(--green); background: rgba(74,222,128,0.07); }

nav ul li.nav-cta a {
  background: var(--green);
  color: var(--black);
  padding: 0.4rem 1rem;
}
nav ul li.nav-cta a:hover { background: var(--green-dim); filter: brightness(1.3); color: var(--black); }

.nav-auth {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-cond);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.nav-auth a { color: var(--green); transition: opacity 0.2s; }
.nav-auth a:hover { opacity: 0.7; }
.nav-auth .separator { color: var(--border); }

/* =========================================
   HERO
   ========================================= */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 70px;
  background:
    linear-gradient(to bottom, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.7) 60%, var(--black) 100%);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(74,222,128,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(245,158,11,0.04) 0%, transparent 50%);
  pointer-events: none;
}

/* Noise grain overlay */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding-top: 0;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-cond);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid var(--amber-dim);
  padding: 0.3rem 0.8rem;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s ease both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 14rem);
  line-height: 0.9;
  color: var(--text);
  letter-spacing: 0.05em;
  text-shadow: 0 0 80px rgba(74,222,128,0.15);
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero-sub {
  font-family: var(--font-cond);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--green);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.6s 0.3s ease both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.4s ease both;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
  animation: fadeUp 1s 0.8s ease both;
}
.hero-scroll span {
  font-family: var(--font-cond);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-dim), transparent);
  animation: scrollPulse 1.5s ease infinite;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--green);
  color: var(--black);
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.8rem 1.8rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.btn-primary:hover {
  background: var(--green-dim);
  filter: brightness(1.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74,222,128,0.25);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text);
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.8rem 1.8rem;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.btn-outline:hover { border-color: var(--green); color: var(--green); }

/* =========================================
   SECTION SHARED
   ========================================= */
section { padding: 6rem 0; }

.section-header {
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-cond);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.05em;
  color: var(--text);
  line-height: 1;
}

/* =========================================
   NEWS
   ========================================= */
#news { background: var(--dark); }

.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
}

.news-card {
  background: var(--panel);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.news-card:hover { border-color: var(--green-dim); transform: translateY(-3px); }

.news-card--featured {
  grid-row: 1 / 3;
}

.news-card__img {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: var(--dark-mid);
  position: relative;
}
.news-card--featured .news-card__img { height: 280px; }

.news-card__body { padding: 1.5rem; }

.news-badge {
  display: inline-block;
  font-family: var(--font-cond);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--amber-dim);
  color: var(--amber);
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.8rem;
}
.news-badge--update { background: rgba(74,222,128,0.15); color: var(--green); }
.news-badge--tip { background: rgba(99,102,241,0.15); color: #818cf8; }

.news-card__body h3 {
  font-family: var(--font-cond);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.news-card--featured .news-card__body h3 { font-size: 1.4rem; }

.news-card__body p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }

.news-date {
  font-family: var(--font-cond);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}
.news-date i { margin-right: 0.3rem; }

/* =========================================
   SERVERS
   ========================================= */
#servers { background: var(--black); }

.servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.server-card {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 1.8rem;
  position: relative;
  transition: border-color 0.3s;
}
.server-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}
.server-card--online::before { background: var(--green); }
.server-card--maintenance::before { background: var(--amber); }
.server-card--offline::before { background: var(--red); }

.server-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-cond);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.dot--green { background: var(--green); box-shadow: 0 0 6px var(--green); animation: pulse 2s infinite; }
.dot--orange { background: var(--amber); box-shadow: 0 0 6px var(--amber); }
.dot--red { background: var(--red); }

.server-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 1.2rem;
}

.server-info { margin-bottom: 1.2rem; }
.server-info__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.server-info__row span {
  color: var(--text-dim);
  font-family: var(--font-cond);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.server-info__row code {
  font-size: 0.8rem;
  color: var(--green);
  background: rgba(74,222,128,0.07);
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
}
.server-card--maintenance .server-info__row code { color: var(--text-muted); }

.server-mods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.mod-tag {
  font-family: var(--font-cond);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 0.2rem 0.5rem;
}

/* =========================================
   SERVER TABS
   ========================================= */
.server-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.server-tab {
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  color: var(--text-muted);
  font-family: var(--font-cond);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.7rem 1.4rem;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  position: relative;
  bottom: -1px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.server-tab:hover { color: var(--text); }

.server-tab.active {
  color: var(--green);
  background: var(--panel);
  border-color: var(--border);
  border-bottom-color: var(--panel);
}

.server-tab-content {
  display: none;
}
.server-tab-content.active {
  display: block;
  animation: fadeUp 0.25s ease both;
}

/* dot--red (was missing) */
.dot--red { background: var(--red); box-shadow: 0 0 6px var(--red); }

/* =========================================
   SERVER TABS
   ========================================= */
#tutorials { background: var(--dark); }

.tuto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.tuto-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 1.8rem;
  transition: border-color 0.3s, transform 0.3s;
  cursor: pointer;
}
.tuto-card:hover { border-color: var(--green-dim); transform: translateY(-4px); }
.tuto-card:hover .tuto-link { color: var(--green); }

.tuto-icon {
  font-size: 1.8rem;
  color: var(--green);
  margin-bottom: 1rem;
  opacity: 0.8;
}

.tuto-card h4 {
  font-family: var(--font-cond);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.tuto-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.tuto-link {
  font-family: var(--font-cond);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* =========================================
   GALLERY
   ========================================= */
#gallery { background: var(--black); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 220px 220px;
  gap: 0.8rem;
}

.gallery-item {
  background-size: cover;
  background-position: center;
  background-color: var(--dark-mid);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.gallery-item--tall { grid-row: span 2; }
.gallery-item--wide { grid-column: span 2; }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.7);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay span {
  font-family: var(--font-cond);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}

/* =========================================
   CONTACT
   ========================================= */
#contact { background: var(--dark); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-form select {
  width: 100%;
  background: var(--dark-mid);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.8rem 1rem;
  outline: none;
  transition: border-color 0.2s;
  cursor: pointer;
}
.contact-form select:focus { border-color: var(--green-dim); }
.contact-form select option { background: var(--dark-mid); }

.contact-links { display: flex; flex-direction: column; gap: 0.8rem; }

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-cond);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}
.contact-link:hover { border-color: var(--green-dim); color: var(--green); }
.contact-link i { color: var(--green); width: 20px; text-align: center; font-size: 1rem; }

.contact-form-wrap { background: var(--panel); border: 1px solid var(--border); padding: 2rem; }

.contact-form .form-group { margin-bottom: 1rem; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--dark-mid);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.8rem 1rem;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--green-dim); }

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-dim); }

.logged-as {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.logged-as strong { color: var(--green); }

/* =========================================
   ARTICLE PAGE
   ========================================= */
.article-hero {
  padding: 120px 0 4rem;
  background: var(--dark);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border);
}

.article-hero__inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.article-hero__inner h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.03em;
  color: var(--text);
  margin: 1rem 0;
  line-height: 1.1;
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-cond);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}
.article-meta i { margin-right: 0.3rem; color: var(--green); }

.article-body {
  padding: 4rem 2rem;
  max-width: 800px;
}

.article-content {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
}
.article-content h2, .article-content h3 {
  font-family: var(--font-cond);
  color: var(--text);
  margin: 2rem 0 1rem;
}
.article-content p { margin-bottom: 1rem; }
.article-content ul, .article-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.article-content li { margin-bottom: 0.3rem; }
.article-content img { max-width: 100%; height: auto; display: block; margin: 1.5rem auto; object-fit: contain; }
.article-content a { color: var(--green); }
.article-content strong { color: var(--text); }

.article-footer { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }

/* =========================================
   ARTICLE PAGE
   ========================================= */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 2rem 4rem;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(74,222,128,0.04) 0%, transparent 60%),
    var(--black);
}

.auth-box {
  width: 100%;
  max-width: 500px;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 2.5rem;
}

.auth-box h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.auth-box .auth-sub {
  font-family: var(--font-cond);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 2rem;
}

.auth-form .form-group { margin-bottom: 1rem; }

.auth-form input {
  width: 100%;
  background: var(--dark-mid);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.9rem 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.auth-form input[type="checkbox"] {
  width: auto;
}
.auth-form input:focus { border-color: var(--green-dim); }
.auth-form input::placeholder { color: var(--text-dim); }

.auth-links {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.auth-links a { color: var(--green); }
.auth-links a:hover { text-decoration: underline; }

.auth-message {
  padding: 0.8rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  font-family: var(--font-cond);
  letter-spacing: 0.05em;
}
.auth-message--error { background: rgba(239,68,68,0.1); border-left: 3px solid var(--red); color: #fca5a5; }
.auth-message--success { background: rgba(74,222,128,0.1); border-left: 3px solid var(--green); color: var(--green); }

/* =========================================
   FOOTER
   ========================================= */
#footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo-mark { display: block; font-size: 2.5rem; margin-bottom: 0.3rem; }
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); max-width: 280px; margin-top: 0.8rem; line-height: 1.7; }

.footer-col h4 {
  font-family: var(--font-cond);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--green); }

.footer-social { display: flex; gap: 0.8rem; margin-top: 1rem; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: border-color 0.2s, color 0.2s;
}
.footer-social a:hover { border-color: var(--green); color: var(--green); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--font-cond);
  letter-spacing: 0.05em;
}

/* =========================================
   BACK TO TOP
   ========================================= */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 42px; height: 42px;
  background: var(--green);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 999;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }

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

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 4px var(--green); }
  50%       { box-shadow: 0 0 10px var(--green), 0 0 20px rgba(74,222,128,0.3); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  50%       { opacity: 0.3; transform: scaleY(0.5); }
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-card--featured { grid-row: auto; }
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, 180px); }
  .gallery-item--wide { grid-column: span 2; }
  .gallery-item--tall { grid-row: span 1; }
}

@media (max-width: 600px) {
  nav { display: none; }
  .hero-title { font-size: 5rem; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: repeat(5, 200px); }
  .gallery-item--wide { grid-column: span 1; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

.servers-carousel {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  overflow: hidden;
  flex: 1;
}

.servers-carousel .server-card {
  flex: 0 0 calc(33.333% - 1rem);
  min-width: 280px;
  flex-direction: column;
}

.server-search {
  position: relative;
  margin-bottom: 1.5rem;
  max-width: 400px;
  display: flex;
  align-items: center;
}

.carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.carousel-btn--prev,
.carousel-btn--next {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.carousel-btn {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}
.carousel-btn:hover { border-color: var(--green); color: var(--green); }
.carousel-btn:disabled { opacity: 0.3; cursor: default; border-color: var(--border); color: var(--text-dim); }

.server-search i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 0.85rem;
  z-index: 1;
}

.server-search input {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.7rem 1rem 0.7rem 2.5rem;
  outline: none;
  transition: border-color 0.2s;
}
.server-search input:focus { border-color: var(--green-dim); }
.server-search input::placeholder { color: var(--text-dim); }

.tuto-tab-content { display: none !important; }
.tuto-tab-content.active { display: block !important; animation: fadeUp 0.25s ease both; }

.view-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.view-toggle.active, .view-toggle:hover { border-color: var(--green); color: var(--green); }

.servers-grid-view { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }

@keyframes glowPulse {
  0%, 100% { 
    box-shadow: 0 0 15px rgba(74,222,128,0.3), 0 0 30px rgba(74,222,128,0.1);
    border-color: var(--green-dim);
  }
  50% { 
    box-shadow: 0 0 30px rgba(74,222,128,0.6), 0 0 60px rgba(74,222,128,0.2);
    border-color: var(--green);
  }
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--dark);
  border: 1px solid var(--border);
  min-width: 180px;
  z-index: 200;
  display: none;
  flex-direction: column;
  padding-top: 0.5rem;
  margin-top: -0.5rem;
}
.nav-dropdown-menu a {
  font-family: var(--font-cond);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, background 0.2s;
  display: block;
}
.nav-dropdown-menu a:last-child { border-bottom: none; }
.nav-dropdown-menu a:hover { color: var(--green); background: rgba(74,222,128,0.05); }
.nav-dropdown:hover .nav-dropdown-menu { display: flex; }

.nav-hamburger {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.4rem;
}

@media (max-width: 900px) {
  .nav-hamburger { display: block; }
  
  nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--dark);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    display: none;
    flex-direction: column;
    z-index: 999;
  }
  
  nav.open { display: flex; }
  
  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  nav ul li a {
    display: block;
    padding: 0.6rem 1rem;
  }
}