/* ============================================================
   #Romania — IRC Community Gallery
   Paletă inspirată din radioromania.live (dark + neon cyan/green/magenta)
   ============================================================ */

:root {
  --bg: #050810;
  --bg-2: #070b14;
  --card: rgba(255, 255, 255, 0.04);
  --card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #e8eef7;
  --muted: #8ea0b8;

  --cyan: #22d3ee;
  --green: #39ff88;
  --magenta: #ff2ea6;
  --purple: #a855f7;
  --blue: #3b82f6;
  --amber: #fbbf24;

  --grad-main: linear-gradient(135deg, #22d3ee, #39ff88);
  --grad-warm: linear-gradient(135deg, #ff2ea6, #a855f7);

  --radius: 18px;
  --shadow-glow: 0 0 40px rgba(34, 211, 238, 0.15);
  --shadow-glow-warm: 0 0 40px rgba(255, 46, 166, 0.15);
}

/* ---------- Reset & base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--cyan); text-decoration: none; }
a:hover { filter: brightness(1.15); }

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1a2438; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #22d3ee; }

::selection { background: rgba(34, 211, 238, 0.35); }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(5, 8, 16, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
  background: rgba(5, 8, 16, 0.9);
  padding: 10px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: "Space Grotesk", monospace;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.brand-hash {
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.8);
}

.brand-sub {
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-family: "Inter", sans-serif;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -6px; left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-main);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.3rem;
  padding: 6px 12px;
  border-radius: 10px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 60px;
  background: url("../assets/hero.png") center/cover no-repeat;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,8,16,0.75) 0%, rgba(5,8,16,0.35) 40%, rgba(5,8,16,0.95) 100%),
    radial-gradient(ellipse at 20% 30%, rgba(34, 211, 238, 0.18), transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(255, 46, 166, 0.14), transparent 55%);
}

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

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.08);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: "Space Grotesk", monospace;
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 22px;
}

.grad-text {
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 620px;
  color: #c3cfdf;
  font-size: 1.08rem;
  margin-bottom: 34px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--grad-main);
  color: #04121c;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.35);
}

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

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

/* IRC ticker in hero */
.hero-ticker {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-ticker span {
  font-family: "Space Grotesk", monospace;
  font-size: 0.82rem;
  color: #9fb3c8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.hero-ticker span:nth-child(3n+1) { border-color: rgba(34, 211, 238, 0.35); color: #67e8f9; }
.hero-ticker span:nth-child(3n+2) { border-color: rgba(57, 255, 136, 0.3); color: #6bffb0; }
.hero-ticker span:nth-child(3n)   { border-color: rgba(255, 46, 166, 0.3); color: #f9a8d4; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }

/* ancorele nu trebuie să ajungă sub navbarul sticky */
section[id], .contact-card[id] { scroll-margin-top: 110px; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-kicker {
  color: var(--cyan);
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: "Space Grotesk", monospace;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 14px;
}

.section-sub { color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: var(--shadow-glow);
}

.card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.4s ease;
}

.card:hover img {
  transform: scale(1.06);
  filter: saturate(1.15);
}

.card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 16px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(transparent, rgba(4, 7, 14, 0.92));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.card:hover figcaption { opacity: 1; transform: translateY(0); }

.card .nick {
  font-family: "Space Grotesk", monospace;
  font-size: 1rem;
  color: var(--text);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* note under galerie, cu divider */
.gallery-note {
  margin-top: 72px;
  padding-top: 44px;
  position: relative;
  text-align: center;
  color: var(--muted);
}

.gallery-note::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(340px, 60%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.55), transparent);
}

.card.wide { grid-column: span 2; }
.card.wide img { aspect-ratio: 2.08 / 1; }

/* Caption gradient variants for cards 3n cycle */
.card:nth-child(3n+2):hover { border-color: rgba(57, 255, 136, 0.45); box-shadow: 0 0 40px rgba(57, 255, 136, 0.13); }
.card:nth-child(3n):hover    { border-color: rgba(255, 46, 166, 0.45); box-shadow: 0 0 40px color-mix(in srgb, var(--magenta) 15%, transparent); }

/* ---------- Quote cards ---------- */
.quote-section {
  background:
    radial-gradient(ellipse at 15% 20%, rgba(34, 211, 238, 0.06), transparent 50%),
    radial-gradient(ellipse at 85% 80%, rgba(255, 46, 166, 0.05), transparent 50%);
}

.quotes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  max-width: 900px;
  margin-inline: auto;
}

.quote-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.quote-card:hover {
  transform: translateY(-4px);
  border-color: rgba(57, 255, 136, 0.4);
}

/* header cu data logului */
.q-date {
  font-family: "Space Grotesk", monospace;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.irc-line {
  font-family: "Space Grotesk", monospace;
  font-size: 0.88rem;
  line-height: 1.55;
  display: flex;
  gap: 8px;
}

.q-time {
  color: #55677e;
  white-space: nowrap;
  font-size: 0.78rem;
  padding-top: 2px;
  user-select: none;
}

.q-nick { white-space: nowrap; }

.q-text { color: #c3cfdf; overflow-wrap: anywhere; }

/* culori per nick (ca în mIRC) */
.q-nick[data-nick="danbx"]    { color: #7dd3fc; }
.q-nick[data-nick="`life"]    { color: #f9a8d4; }
.q-nick[data-nick="Paradox`"] { color: #c4b5fd; }
.q-nick[data-nick="Nina-"]    { color: #6bffb0; }
.q-nick[data-nick="Gorgeous"] { color: #fbbf24; }
.q-nick[data-nick="Medaa"]    { color: #a78bfa; }
.q-nick[data-nick="haos"]     { color: #fb923c; }
.q-nick[data-nick="julien"]   { color: #34d399; }
.q-nick[data-nick="cabron"]   { color: #22d3ee; }
.q-nick[data-nick="chosen-"]  { color: #f472b6; }
.q-nick[data-nick="easy1"]    { color: #fde047; }
.q-nick[data-nick="Nicu_"]    { color: #60a5fa; }
.q-nick[data-nick="Lexa^"]    { color: #f87171; }
.q-nick[data-nick="|`"]       { color: #cbd5e1; }
.q-nick[data-nick="Dios"]     { color: #8fa3b8; }
.q-nick[data-nick="Altfel"]   { color: #fcd34d; }

/* text citat în log (mai estompat) */
.q-quote { color: #5c6c81; }

/* mesaje de la bot */
.irc-sys { color: #7e8fa4 !important; font-style: italic; }

/* remark de la autor la finalul unei perle */
.q-punch {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px dashed rgba(57, 255, 136, 0.35);
  border-radius: 12px;
  background: rgba(57, 255, 136, 0.06);
  color: #a9f5c8;
  font-size: 0.86rem;
  font-style: italic;
  text-align: center;
}

/* ---------- Book: perle pe 2 pagini ---------- */
.book {
  position: relative;
  max-width: 900px;
  margin-inline: auto;
}

/* "coada" de carte */
.book::after {
  content: "";
  position: absolute;
  top: 30px;
  bottom: 30px;
  left: -10px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--cyan), var(--magenta));
  opacity: 0.3;
  pointer-events: none;
}

.book-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 24px;
}

.book-btn {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--cyan);
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, opacity 0.2s ease;
}

.book-btn:hover:not(:disabled) {
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.35);
  transform: translateY(-2px);
}

.book-btn:disabled { opacity: 0.3; cursor: default; }

.book-count {
  font-family: "Space Grotesk", monospace;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.book-count b { color: var(--cyan); }

.book-pages {
  position: relative;
  perspective: 2200px;
  perspective-origin: left center;
  transition: height 0.55s cubic-bezier(0.45, 0.05, 0.25, 1);
}

.book-page { display: none; }

/* pagina vizibilă: stă în flux și dictează înălțimea cărții */
.book-page.is-active { display: block; position: relative; z-index: 1; }

/* foaia care se ridică: absolută, se rotește în jurul cotorului (stânga) */
.book-page.is-flipping {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2;
  transform-origin: left center;
  transform-style: preserve-3d;
  background: var(--bg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
  animation: bookFlipOut 0.62s cubic-bezier(0.45, 0.05, 0.25, 1) forwards;
}

.book-pages.flip-back .book-page.is-flipping { animation-name: bookFlipOutBack; }

/* fața foii se ascunde când dă peste 90° ca să nu se vadă textul în oglindă */
.book-page.is-flipping * { backface-visibility: hidden; -webkit-backface-visibility: hidden; }

/* verso-ul foii */
.book-page.is-flipping::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0%, transparent 18%, transparent 82%, rgba(255, 255, 255, 0.02) 100%),
    linear-gradient(180deg, #080d18 0%, #050810 55%, #070c16 100%);
}

/* umbra cotorului care cade pe foaia nouă */
.book-page.is-entering::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.25) 14%, rgba(0, 0, 0, 0) 34%);
  animation: bookUnderShade 0.62s ease-out forwards;
}

@keyframes bookFlipOut {
  0%   { transform: rotateY(0deg) translateZ(26px); box-shadow: 0 0 0 rgba(0, 0, 0, 0); }
  35%  { box-shadow: -26px 0 46px rgba(0, 0, 0, 0.55); }
  100% { transform: rotateY(-177deg) translateZ(0); box-shadow: -70px 0 90px rgba(0, 0, 0, 0); }
}

@keyframes bookFlipOutBack {
  0%   { transform: rotateY(0deg) translateZ(26px); box-shadow: 0 0 0 rgba(0, 0, 0, 0); }
  35%  { box-shadow: 26px 0 46px rgba(0, 0, 0, 0.55); }
  100% { transform: rotateY(177deg) translateZ(0); box-shadow: 70px 0 90px rgba(0, 0, 0, 0); }
}

@keyframes bookUnderShade {
  0%   { opacity: 1; }
  60%  { opacity: 0.35; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .book-pages { transition: none; }
  .book-page.is-flipping { animation: none; display: none; }
  .book-page.is-entering::after { animation: none; display: none; }
}

/* separator "..." între fragmente */
.q-more {
  text-align: center;
  color: var(--muted);
  letter-spacing: 4px;
  padding: 8px 0;
  opacity: 0.7;
  user-select: none;
}

/* acțiuni IRC (/me) */
.irc-action { color: var(--magenta) !important; font-style: italic; }

/* ---------- Regulament intern ---------- */
.rules-section {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(57, 255, 136, 0.05), transparent 55%),
    radial-gradient(ellipse at 20% 100%, rgba(34, 211, 238, 0.05), transparent 50%);
}

.rules-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}

.rules-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px 34px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.10), rgba(255, 46, 166, 0.06));
  border-bottom: 1px solid var(--border);
}

.rules-stamp {
  font-family: "Space Grotesk", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--cyan);
  padding: 5px 12px;
  border-radius: 999px;
}

.rules-chan {
  font-family: "Space Grotesk", monospace;
  color: var(--green);
  font-size: 0.9rem;
}

.rules-date {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 1px;
}

.rules-body { padding: 34px; }

.rules-body p {
  color: #c3cfdf;
  line-height: 1.75;
  margin-bottom: 18px;
}

.rules-body p:last-child { margin-bottom: 0; }

.dept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
}

.dept {
  position: relative;
  background: rgba(4, 7, 14, 0.45);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 20px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.dept:hover {
  border-color: rgba(34, 211, 238, 0.4);
  transform: translateY(-3px);
}

.dept-num {
  display: block;
  font-family: "Space Grotesk", monospace;
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--cyan);
  margin-bottom: 10px;
}

.dept-name {
  font-family: "Space Grotesk", monospace;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}

.dept-lead {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.dept-list {
  list-style: none;
  margin-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.09);
  padding-top: 12px;
}

.dept-list li {
  color: var(--muted);
  font-size: 0.86rem;
  padding: 4px 0 4px 16px;
  position: relative;
}

.dept-list li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--green);
}

.rules-foot {
  padding: 22px 34px;
  border-top: 1px dashed var(--border);
  text-align: center;
  color: var(--green);
  font-style: italic;
}

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  text-align: center;
}

.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 20px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.stat:hover { border-color: rgba(34, 211, 238, 0.4); transform: translateY(-4px); }

.stat-num {
  font-family: "Space Grotesk", monospace;
  font-size: 2.4rem;
  font-weight: 700;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 6px;
}

/* ---------- Contact ---------- */
.contact-section {
  background:
    radial-gradient(ellipse at 85% 15%, rgba(57, 255, 136, 0.05), transparent 50%),
    radial-gradient(ellipse at 10% 85%, rgba(34, 211, 238, 0.05), transparent 50%);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-card:hover {
  border-color: rgba(34, 211, 238, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.12);
}

.contact-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  margin-bottom: 14px;
  font-family: "Space Grotesk", monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--bg);
  background: var(--grad-main);
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.28);
}

.contact-name {
  font-family: "Space Grotesk", monospace;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.contact-line {
  display: block;
  font-size: 0.88rem;
  color: var(--text);
  padding: 5px 0;
  transition: color 0.2s ease;
  overflow-wrap: anywhere;
}

.contact-line:hover { color: var(--cyan); }

.wa-ico {
  width: 15px;
  height: 15px;
  fill: #25d366;
  vertical-align: -2px;
  margin-right: 8px;
  transition: transform 0.2s ease;
}

.contact-line.wa:hover { color: var(--text); }
.contact-line.wa:hover .wa-ico { transform: scale(1.2); }

.contact-line.mail {
  font-family: "Space Grotesk", monospace;
  font-size: 0.82rem;
  color: var(--muted);
}

.contact-line.mail:hover { color: var(--green); }

.contact-more {
  margin-top: 64px;
  padding-top: 40px;
  position: relative;
  text-align: center;
  color: var(--muted);
}

.contact-more::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(340px, 60%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.55), transparent);
}

/* ---------- Join ---------- */
.join-section { padding-top: 20px; }

/* card de access (numar de telefon) */
.access-card {
  max-width: 720px;
  margin: 0 auto 26px;
  background: var(--card);
  border: 1px solid rgba(57, 255, 136, 0.22);
  border-radius: 24px;
  padding: 26px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 20px;
  text-align: center;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.access-card:hover {
  border-color: rgba(57, 255, 136, 0.45);
  box-shadow: 0 0 40px rgba(57, 255, 136, 0.1);
}

.access-ico { font-size: 1.5rem; line-height: 1; }

.access-text {
  color: #c3cfdf;
  line-height: 1.6;
  font-size: 0.95rem;
}

.access-tel {
  font-family: "Space Grotesk", monospace;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.access-tel:hover { color: var(--text); text-decoration: underline; }

.access-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

.access-chip {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.access-chip:hover { transform: translateY(-2px); }

.access-chip.sms:hover {
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(34, 211, 238, 0.08);
}

.access-chip.wa:hover {
  color: #25d366;
  border-color: rgba(37, 211, 102, 0.5);
  background: rgba(37, 211, 102, 0.08);
}

.access-chip.tg:hover {
  color: #2aabee;
  border-color: rgba(42, 171, 238, 0.5);
  background: rgba(42, 171, 238, 0.08);
}

.access-chip.sig:hover {
  color: #3a76f0;
  border-color: rgba(58, 118, 240, 0.5);
  background: rgba(58, 118, 240, 0.08);
}

.join-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
  box-shadow: var(--shadow-glow);
}

.join-title {
  font-family: "Space Grotesk", monospace;
  font-size: 2rem;
  margin-bottom: 14px;
}

.join-sub { color: var(--muted); margin-bottom: 30px; }

.irc-box {
  background: rgba(4, 7, 14, 0.6);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 26px;
  margin-bottom: 30px;
  font-family: "Space Grotesk", monospace;
  text-align: left;
}

.irc-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.irc-row:last-child { border-bottom: none; }

.irc-key { color: var(--muted); }
.irc-val { color: var(--green); }

.join-card .hero-cta { justify-content: center; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 44px 0;
  background: rgba(255, 255, 255, 0.02);
}

.footer-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-brand {
  font-family: "Space Grotesk", monospace;
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-links a { color: var(--muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--cyan); }

.footer-copy { color: #64748b; font-size: 0.85rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(3, 5, 10, 0.94);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox.open { opacity: 1; pointer-events: auto; }

.lb-figure {
  max-width: min(920px, 90vw);
  text-align: center;
}

.lb-figure img {
  max-height: 78vh;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 14px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  box-shadow: 0 0 60px rgba(34, 211, 238, 0.15);
}

.lb-figure figcaption {
  margin-top: 16px;
  color: #c3cfdf;
  font-family: "Space Grotesk", monospace;
  font-size: 1rem;
}

.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.6rem;
  width: 52px; height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  background: rgba(34, 211, 238, 0.2);
  transform: scale(1.08);
}

.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }

.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.08); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card img { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .dept-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .card.wide { grid-column: span 2; }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(5, 8, 16, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 18px 6%;
    gap: 16px;
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .gallery { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .access-card { padding: 22px 20px; }
  .rules-head, .rules-body, .rules-foot { padding-left: 22px; padding-right: 22px; }
  .card.wide { grid-column: span 1; }
  .card.wide img { aspect-ratio: 1 / 1; }
  .stats-grid { grid-template: 1fr 1fr / 1fr 1fr; }
  .hero { background-attachment: scroll; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}
