/* Retro Terminal Betűtípus Importálása */
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

html {
    height: 100%;
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    background-color: #080d21;
    animation: bgShift 15s ease-in-out infinite;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}
body {
    background-color: #050814; /* Megakadályozza az átlátszóságot a footer alatt */
    color: #ffffff;
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh; /* Dinamikus magasság modern mobil böngészőkhöz (iOS/Android) */
    display: flex;
    flex-direction: column;
    position: relative;
    -webkit-font-smoothing: antialiased; /* Szebb betűk iOS-en */
}
/* Globális Egyedi Scroll-bar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border: 2px solid var(--bg);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}



/* Maintenance wrapper a középre igazításhoz */
.maintenance-view {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

@keyframes bgShift {
    0% { background-color: #080d21; }
    50% { background-color: #1a0821; }
    100% { background-color: #080d21; }
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 210, 255, 0.05) 0%, transparent 70%);
    z-index: -1;
}

/* Hiányzó konténer animáció pótlása */
@keyframes containerAppear {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(40px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* --- Discord Egyedi Widget Stílus --- */
.discord-custom-widget {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 16px;
    padding: 15px;
    margin-top: 15px;
    transition: 0.3s ease;
    backdrop-filter: blur(10px);
}

.discord-custom-widget:hover {
    border-color: #5865F2;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.15);
}

.discord-member-item {
    display: flex;
    flex-direction: column; /* Avatar és név egymás alatt */
    align-items: center; /* Középre igazítás */
    gap: 4px; /* Kis távolság az avatar és a név között */
}

.discord-online-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #4ade80;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.online-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 10px #4ade80;
}
.discord-member-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.2s;
}

.discord-member-username {
    font-size: 0.65rem; /* Kisebb betűméret a neveknek */
    color: var(--text);
    white-space: nowrap; /* Megakadályozza a tördelést */
    overflow: hidden; /* Elrejti a túlcsorduló szöveget */
    text-overflow: ellipsis; /* Három ponttal jelzi a rövidítést */
    max-width: 100%; /* Biztosítja, hogy a grid oszlopán belül maradjon */
    line-height: 1.2; /* Javítja az olvashatóságot */
}

.discord-join-btn {
    display: block;
    background: #5865F2;
    color: #fff;
    text-align: center;
    padding: 8px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: 0.3s;
}

.discord-join-btn:hover {
    background: #4752c4;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.4);
}

.container {
    text-align: center;
    z-index: 5;
    padding: 40px;
    max-width: 600px;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: containerAppear 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%; /* Kisebb padding mobilra */
    z-index: 1000;
    background: rgba(8, 13, 33, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: env(safe-area-inset-top, 20px); /* iPhone notch kezelése */
}

/* Hamburger menü alapértelmezetté tétele mindenhol */
.nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(8, 13, 33, 0.98);
    background: rgba(5, 5, 15, 0.85); /* Sötétebb (kisebb RGB értékek) és áttetszőbb (0.98 -> 0.85) */
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--border);
    z-index: 999;
    list-style: none;
    display: flex;
}

.navbar.mobile-open .nav-links {
    right: 0;
}

.hamburger.active-always {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: 0.3s;
}

/* Hamburger animáció nyitott állapotban */
.hamburger.mobile-open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.mobile-open span:nth-child(2) {
    opacity: 0;
}

.hamburger.mobile-open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-links a {
    text-decoration: none;
    color: #a0a0a0;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover { color: #00d2ff; }

/* --- Kezdőlap (Home Page) Specifikus Stílusok --- */
.home-hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8%;
    text-align: center;
}

.home-hero-content {
    max-width: 800px;
    z-index: 10;
}

.home-hero h1 {
    font-size: clamp(2rem, 8vw, 3.5rem); /* Dinamikus betűméret */
    font-weight: 900;
    margin: 20px 0;
    line-height: 1.1;
}

.home-hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

/* --- Kezdőlap Betöltési Animációk --- */
.home-entrance {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-hero.loaded .home-entrance,
.home-about-section.loaded .home-entrance {
    opacity: 1;
    transform: translateY(0);
}

/* Lépcsőzetes késleltetés az elemeknek */
.home-hero-content > *:nth-child(1) { transition-delay: 0.1s; }
.home-hero-content > *:nth-child(2) { transition-delay: 0.2s; }
.home-hero-content > *:nth-child(3) { transition-delay: 0.3s; }
.home-hero-actions { transition-delay: 0.4s; }

.home-about-card:nth-child(1) { transition-delay: 0.1s; }
.home-about-card:nth-child(2) { transition-delay: 0.2s; }
.home-about-card:nth-child(3) { transition-delay: 0.3s; }

/* --- About Section --- */

.home-about-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 5%;
}

@keyframes maintenanceContainerAppear {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(40px);
        filter: blur(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

.logo {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 15px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: linear-gradient(to bottom, #ffffff 30%, #a2a2a2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-box-reflect: below -25px linear-gradient(transparent 60%, rgba(255, 255, 255, 0.05));
    transform: perspective(1000px) rotateX(10deg) rotateY(-5deg);
    animation: float 5s ease-in-out infinite, pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0% { filter: drop-shadow(0 0 18px rgba(0, 210, 255, 0.22)); }
    50% { filter: drop-shadow(0 0 28px rgba(0, 210, 255, 0.35)); }
    100% { filter: drop-shadow(0 0 18px rgba(0, 210, 255, 0.22)); }
}

@keyframes float {
    0%, 100% { transform: perspective(1000px) rotateX(10deg) rotateY(-5deg) translateY(0); }
    50% { transform: perspective(1000px) rotateX(10deg) rotateY(-5deg) translateY(-12px); }
}

.logo span {
    color: #00d2ff;
    -webkit-text-fill-color: #00d2ff;
    padding: 2px 15px;
    border: 2px solid #00d2ff;
    border-radius: 12px;
    font-size: 2.2rem;
    background: rgba(0, 210, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2), inset 0 0 10px rgba(0, 210, 255, 0.1);
    animation: neonFlicker 3s infinite;
}

@keyframes neonFlicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; text-shadow: 0 0 15px rgba(0, 210, 255, 0.6); }
    20%, 24%, 55% { opacity: 0.8; text-shadow: none; }
}

.version-badge {
    background: #00d2ff;
    color: #000;
    background: rgba(0, 210, 255, 0.1);
    color: #00d2ff;
    display: inline-block;
    padding: 4px 14px;
    border-radius: 4px;
    font-weight: 900;
    font-size: 0.85rem;
    margin-bottom: 30px;
    border: 1px solid #00d2ff;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
    text-shadow: 0 0 5px rgba(0, 210, 255, 0.5);
    animation: badgePulse 2s infinite ease-in-out;
}

@keyframes badgePulse {
    0% { transform: scale(1); box-shadow: 0 0 15px rgba(0, 210, 255, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 0 25px rgba(0, 210, 255, 0.6); }
    100% { transform: scale(1); box-shadow: 0 0 15px rgba(0, 210, 255, 0.3); }
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

p {
    color: #a0a0a0;
    line-height: 1.6;
    margin-bottom: 40px;
}

.loader-container {
    margin-bottom: 40px;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 210, 255, 0.1);
    border-top: 3px solid #00d2ff;
    border-radius: 50%;
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px 20px;
    border-radius: 16px;
    min-width: 90px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: perspective(1000px) rotateX(10deg) rotateY(-5deg);
}

.countdown-item:hover {
    transform: perspective(1000px) rotateX(10deg) rotateY(-5deg) translateY(-8px);
    background: rgba(0, 210, 255, 0.05);
    border-color: rgba(0, 210, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.countdown-value {
    font-size: 2.8rem;
    font-weight: 900;
    background: linear-gradient(to bottom, #ffffff 30%, #a2a2a2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.3));
    line-height: 1;
}

.countdown-label {
    font-size: 0.9rem;
    color: #a0a0a0;
}

.links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.discord-btn { 
    background: #5865F2; 
    color: white; 
    animation: pulseDiscord 3s infinite ease-in-out;
}

@keyframes pulseDiscord {
    0% { box-shadow: 0 0 0 0 rgba(88, 101, 242, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(88, 101, 242, 0); }
    100% { box-shadow: 0 0 0 0 rgba(88, 101, 242, 0); }
}

.discord-btn:hover { 
    background: #4752c4; 
    transform: perspective(1000px) rotateX(10deg) rotateY(-5deg) translateY(-3px);
    box-shadow: 0 10px 20px rgba(88, 101, 242, 0.3);
    animation: none;
}

.shop-btn { 
    background: #222; 
    color: white; 
    border: 1px solid #333; 
    animation: pulseShop 3s infinite ease-in-out;
}

@keyframes pulseShop {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.05); }
    70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.shop-btn:hover { 
    background: #333; 
    transform: perspective(1000px) rotateX(10deg) rotateY(-5deg) translateY(-2px); 
    animation: none; 
}


:root {
    --bg: #050814;
    --panel: rgba(8, 13, 33, 0.4);
    --primary: #22d3ee;
    --accent: #8b5cf6;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --border: #1f2937;
    --header-bg: rgba(15, 23, 42, 0.05);
    --glow: rgba(34, 211, 238, 0.3);
    --card-bg: rgba(15, 23, 42, 0.4);
}

/* Világos mód felülírások */
body.light-mode {
    --bg: #f8fafc;
    --panel: rgba(255, 255, 255, 0.8);
    --primary: #0891b2;
    --accent: #7c3aed;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --header-bg: rgba(255, 255, 255, 0.8);
    --glow: rgba(8, 145, 178, 0.2);
    --card-bg: #ffffff;
}

/* Global Reset & Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Header Styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

a { text-decoration: none; color: inherit; transition: 0.3s; }

.logo-nav {
  font-family: 'Orbitron';
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: 12px;
  /* Új stílusok a "ZENTORIX" részhez */
  background: linear-gradient(to bottom, #ffffff 30%, #a2a2a2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.3); /* Finom fehér ragyogás */
  transition: all 0.3s ease;
  cursor: pointer;
}

.nav-server-logo {
  height: 32px;
  filter: drop-shadow(0 0 8px var(--glow));
}

.logo-nav span {
  color: var(--primary);
  -webkit-text-fill-color: var(--primary); /* Biztosítja, hogy az "RP" rész ne legyen átlátszó */
  text-shadow: 0 0 10px var(--primary);
  transition: all 0.3s ease;
}

.logo-nav:hover {
  transform: scale(1.05);
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.logo-nav:hover span {
  text-shadow: 0 0 20px var(--primary);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

nav ul { list-style: none; display: flex; gap: 20px; }
nav a { font-weight: 600; font-size: 0.9rem; text-transform: uppercase; color: var(--muted); }
nav a:hover { color: var(--primary); transform: translateY(-2px); }

/* Button Styles */
.btn {
  display: inline-block;
  padding: 14px 28px; /* Kicsit nagyobb érintési felület mobilra */
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: 0.3s;
  text-align: center;
  text-decoration: none; /* Ensure buttons don't have underline */
}
.btn-primary { background: var(--primary); color: #000; }
.btn-secondary { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(34, 211, 238, 0.3); }

/* Panel/Card Base Styles */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 30px;
  transition: 0.3s;
}
.panel h3 { font-family: 'Orbitron'; color: var(--primary); margin-top: 0; }
.panel:hover { border-color: var(--primary); }

/* Hero Section Styles */
.hero {
  height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(rgba(5, 8, 20, 0.8), rgba(5, 8, 20, 0.8)), url('assets/images/CityBackground.jpg') center/cover;
  padding: 0 5%;
}
.hero h1 { font-family: 'Orbitron'; font-size: clamp(2rem, 8vw, 4rem); color: var(--primary); text-shadow: 0 0 20px var(--primary); margin: 0; }
.hero p { font-size: 1.2rem; color: var(--muted); margin: 20px 0; }

/* Hero Logo (Fancy 3D) */
.logo-main {
    font-size: 4rem;
    font-family: 'Orbitron';
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    background: linear-gradient(to bottom, #ffffff 30%, #a2a2a2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: perspective(1000px) rotateX(10deg) rotateY(-5deg);
    animation: float 5s ease-in-out infinite;
}
.logo-main span {
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
    border: 2px solid var(--primary);
    padding: 2px 15px;
    border-radius: 12px;
    font-size: 2.5rem;
    box-shadow: 0 0 20px var(--glow);
}

@keyframes float {
    0%, 100% { transform: perspective(1000px) rotateX(10deg) rotateY(-5deg) translateY(0); }
    50% { transform: perspective(1000px) rotateX(10deg) rotateY(-5deg) translateY(-15px); }
}

/* --- About Section --- */
.section-title { font-family: 'Orbitron'; text-align: center; font-size: 2.5rem; margin-bottom: 50px; color: var(--primary); }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.about-card {
    text-align: center;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
}
.card-icon { font-size: 3rem; margin-bottom: 20px; }
.about-card h3 { margin-bottom: 15px; }
.about-card:hover { transform: translateY(-10px); background: rgba(34, 211, 238, 0.05); }

/* Main Content Area */
main {
  padding-top: 80px;
  flex: 1 0 auto; /* Kényszeríti a fő tartalmat, hogy kitöltse a maradék helyet, de ne zsugorodjon */
    padding-top: 80px;
    flex: 1 0 auto; /* Kitölti a rendelkezésre álló helyet, lefelé tolva a footert */
    display: flex;
    flex-direction: column;
}

/* Footer Styles */
footer {
    background: rgba(8, 13, 33, 0.9);
    border-top: 1px solid var(--border);
    padding-top: 45px;
    margin-top: auto;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    overflow: hidden;
    /* Safe Area kezelése iOS géphez, fallback 20px */
    padding-bottom: calc(env(safe-area-inset-bottom, 15px) + 30px) !important;
}

/* Gördülékeny görgetés a Discord widgethez mobilon */
.discord-member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(55px, 1fr)); /* Optimális szélesség mobilon */
    gap: 10px;
    max-height: 180px; /* Megemelt magasság a jobb láthatóságért */
    overflow-y: auto;
    margin-bottom: 15px;
    padding: 5px;
    -webkit-overflow-scrolling: touch; /* Sima görgetés iOS-en */
}

/* Egyedi scrollbar stílus a widgeten belül */
.discord-member-grid::-webkit-scrollbar {
    width: 4px;
    height: 32px;
}

/* TikTok Egyedi Gomb Effekt */
.btn-tiktok:hover {
    background: #000 !important;
    color: #fff !important;
    border-color: #ff0050 !important;
    box-shadow: -2px -2px 0px #00f2ea, 2px 2px 0px #ff0050 !important;
}
.discord-member-grid::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* Scanline animáció definíciója */
@keyframes scanline {
    0% { top: -100%; }
    100% { top: 100%; }
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  box-shadow: 0 0 15px var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  margin-top: 20px;
  max-width: 400px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
}

.footer-links h4, .footer-social h4 {
  font-family: 'Orbitron', sans-serif;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: 0.3s;
}

.footer-links ul li a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-social-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-bottom {
  background: rgba(5, 5, 15, 0.5);
  padding: 25px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom-content p {
  margin-bottom: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 15px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }
  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-bottom-content {
    justify-content: center;
    text-align: center;
  }
}

/* ModHub Szűrők stílusa */
.filter-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.filter-group label {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    font-weight: 700;
}
.filter-select {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px;
    border-radius: 8px;
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
}
.filter-select:focus { border-color: var(--primary); }


/* --- Modern Egyedi Fordító --- */
.custom-translator {
    position: relative;
    display: inline-block;
}

.translator-trigger {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1.2rem;
}

.translator-trigger:hover {
    border-color: var(--primary);
    background: rgba(34, 211, 238, 0.1);
}

.translator-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    border-radius: 12px;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.custom-translator:hover .translator-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.translator-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.translator-dropdown a:last-child { border-bottom: none; }

.translator-dropdown a:hover {
    color: var(--primary);
    background: rgba(34, 211, 238, 0.05);
}

/* Szűrő törlése gomb */
.btn-reset {
    width: 100%;
    margin-top: 15px;
    padding: 10px;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
}
 
.btn-reset:hover {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

/* --- documents.php specific styles --- */
.wrap { 
    width: 100%;
    max-width: 1300px; 
    margin: 0 auto; 
    padding: 0 clamp(15px, 5vw, 30px);
    position: relative;
}
.notice-banner {
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid var(--primary);
  margin: 10px auto 20px;
  padding: 20px;
  border-radius: 12px;
  display: flex;
  gap: 15px;
  align-items: center;
}
.notice-icon { font-size: 1.5rem; }
.notice-text strong { color: var(--primary); font-family: 'Orbitron'; }

.rules-container { display: grid; grid-template-columns: 300px 1fr; gap: 30px; margin-top: 20px; }

.sidebar {
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(10px);
  padding: 25px;
  border-radius: 15px;
  border: 1px solid var(--border);
  height: fit-content;
  position: sticky;
  top: 100px;
  z-index: 10;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar h3 { font-family: 'Orbitron'; color: var(--primary); margin-top: 0; margin-bottom: 20px; }
.nav-link {
  display: block;
  padding: 12px 20px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
  margin-bottom: 5px;
  transition: 0.3s;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateX(-30px);
  position: relative;
  overflow: hidden;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 4px;
  height: 60%;
  background: var(--primary);
  box-shadow: 0 0 15px var(--primary);
  border-radius: 0 4px 4px 0;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-link.active::after {
  transform: translateY(-50%) scaleY(1);
}

.nav-link:hover, .nav-link.active { background: rgba(34, 211, 238, 0.08); color: var(--primary); }

/* Staggered animation a linkeknek, amikor a sidebar nyitva van vagy asztali nézetben */ 
/* Az animáció mostantól a .loaded osztályra indul el asztali nézetben is */
.sidebar.loaded .nav-link,
.sidebar.open .nav-link {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Késleltetések (Stagger) */
.nav-link:nth-child(1) { transition-delay: 0.05s; }
.nav-link:nth-child(2) { transition-delay: 0.10s; }
.nav-link:nth-child(3) { transition-delay: 0.15s; }
.nav-link:nth-child(4) { transition-delay: 0.20s; }
.nav-link:nth-child(5) { transition-delay: 0.25s; }
.nav-link:nth-child(6) { transition-delay: 0.30s; }
.nav-link:nth-child(n+7) { transition-delay: 0.35s; }

.rules-section-card {
  /* Betűméret változó használata */
  font-size: var(--reading-font-size, 1rem);
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 15px;
  border: 1px solid var(--border);
  margin-bottom: 30px;
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease, border-color 0.4s ease;
  animation: none; /* Remove base animation */
}
.rules-section-card.active {
  display: block;
  opacity: 1;
  visibility: visible;
  animation: sectionAppear 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards,
             activeNeonPulse 3s infinite ease-in-out;
}

@keyframes activeNeonPulse {
    0% { border-color: var(--border); box-shadow: 0 0 5px rgba(34, 211, 238, 0.1); }
    50% { border-color: var(--primary); box-shadow: 0 0 20px rgba(34, 211, 238, 0.4); }
    100% { border-color: var(--border); box-shadow: 0 0 5px rgba(34, 211, 238, 0.1); }
}

@keyframes sectionAppear { 
    0% { opacity: 0; transform: translateY(20px) scale(0.98); filter: blur(10px); } 
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } 
}

.rules-section-card h2, .rules-section-card h3, .rules-section-card h4 { font-family: 'Orbitron'; color: var(--primary); }
.rules-section-card h3, .rules-section-card h4 { margin-top: 20px; margin-bottom: 10px; }
.rules-section-card h2 { border-bottom: 2px solid var(--border); padding-bottom: 10px; margin-top: 0; }
.rules-section-card ul { padding-left: 20px; }
li { margin-bottom: 8px; }

#backToTop {
  position: fixed; bottom: 30px; right: 30px;
  background: var(--primary); border: none; border-radius: 50%;
  width: 50px; height: 50px; cursor: pointer; display: none;
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.4);
  color: #000; /* Arrow color */
  font-weight: bold;
  font-size: 1.5rem;
  line-height: 1;
  text-align: center;
}
.sidebar-toggle { display: none; width: 100%; padding: 10px; background: var(--primary); border: none; border-radius: 8px; font-weight: bold; margin-bottom: 15px; cursor: pointer; }

@media (max-width: 992px) {
  .notice-banner { margin-bottom: 10px; }
  .rules-container { 
    grid-template-columns: 1fr; 
    margin-top: 10px; 
    padding-bottom: 80px;
    gap: 15px; /* Kisebb hézag a mobil oszlopok között */
  }
  .sidebar { position: static; }
  .sidebar-toggle { display: block; }
  .sidebar nav { display: none; }
  .sidebar.open nav { display: block; }
}

/* --- Szabályzat Specifikus Stílusok --- */
.rules-hero {
    padding-top: 20px;
}

.sidebar-header {
    margin-bottom: 25px;
}

.search-box {
    margin-top: 15px;
}

.search-box input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.85rem;
    transition: 0.3s;
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--glow);
    outline: none;
}

.rules-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.rules-nav .nav-link span {
    font-size: 1.1rem;
}

/* Olvasási Mód Stílusok */
.btn-reading-mode {
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(34, 211, 238, 0.05);
    border: 1px solid rgba(34, 211, 238, 0.2);
    color: var(--primary);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Orbitron';
    font-size: 0.75rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-reading-mode:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 15px var(--glow);
}

.btn-print-view {
    background: rgba(139, 92, 246, 0.05) !important;
    border: 1px solid rgba(139, 92, 246, 0.2) !important;
    color: var(--accent) !important;
    margin-top: 5px;
}

.btn-print-view:hover {
    background: var(--accent) !important;
    color: #fff !important;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4) !important;
}

body.all-view .rules-section-card {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin-bottom: 50px;
    animation: none !important;
}

body.reading-mode .sidebar {
    display: none !important;
}

body.reading-mode .rules-container {
    grid-template-columns: 1fr;
    max-width: 900px;
    margin: 20px auto;
}

body.reading-mode .rules-hero { display: none; }
body.reading-mode .rules-main { flex: none; }
body.reading-mode footer { 
    margin-top: auto; 
    border-top: none; /* Eltüntetjük az alapértelmezett szegélyt */
    position: relative;
}
body.reading-mode footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 900px; /* Igazodunk az olvasási mód tartalmának szélességéhez */
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    box-shadow: 0 0 15px var(--glow);
}

/* Folyamatjelző csík az Olvasási Mód tetejére */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 2000;
    display: none;
}
body.reading-mode .reading-progress-container { display: block; }
.reading-progress-bar { height: 100%; width: 0%; background: var(--primary); box-shadow: 0 0 10px var(--primary); transition: width 0.1s; }

/* Lebegő Funkció Kezelőfelület */
.reading-mode-ui {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(15px);
    padding: 12px 25px;
    border-radius: 50px;
    border: 1px solid var(--primary);
    box-shadow: 0 10px 40px rgba(0,0,0,0.6), 0 0 20px var(--glow);
    display: flex;
    align-items: center;
    gap: 15px;
}

body.reading-mode .reading-mode-ui {
    bottom: 30px;
}

.font-controls {
    display: flex;
    gap: 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 15px;
}

.nav-controls {
    display: flex;
    gap: 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 15px;
}

.btn-reading-top {
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: scale(0);
    margin-left: 5px;
}

.btn-reading-top.show {
    opacity: 1;
    transform: scale(1);
}

/* Süti állapotjelző */
.cookie-status-indicator {
    font-size: 0.75rem;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--border);
    white-space: nowrap;
    display: inline-block; /* Alapértelmezetten látható */
}

/* Süti újranyitó gomb a footerben */
.btn-cookie-reopen {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s;
}

.btn-cookie-reopen:hover {
    color: var(--primary);
}

.section-counter {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 900;
    min-width: 65px;
    text-align: center;
    text-shadow: 0 0 10px var(--glow);
}

/* Sárga villanás animáció az utolsó szekciónál */
@keyframes counterFlashYellow {
    0%, 100% { color: var(--primary); transform: scale(1); text-shadow: 0 0 10px var(--glow); }
    50% { color: #fbbf24; transform: scale(1.3); text-shadow: 0 0 20px rgba(251, 191, 36, 0.8); }
}

.flash-yellow {
    animation: counterFlashYellow 0.8s ease-in-out;
}

/* Globális Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    margin: 0 auto;
    left: 50%;
    width: 95%;
    max-width: 500px;
    background: rgba(8, 13, 33, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid var(--primary);
    border-radius: 20px;
    padding: 25px;
    z-index: 9999;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 15px rgba(34, 211, 238, 0.2);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(20px);
}

body.reading-mode .cookie-banner { display: none !important; }

.cookie-banner.show { 
    opacity: 1; 
    pointer-events: auto; 
    transform: translateX(-50%) translateY(0); 
    animation: bannerPulse 4s infinite ease-in-out;
}

@keyframes bannerPulse {
    0%, 100% { border-color: var(--primary); box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 15px rgba(34, 211, 238, 0.2); }
    50% { border-color: var(--accent); box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 25px rgba(139, 92, 246, 0.4); }
}

.cookie-banner h4 { font-family: 'Orbitron'; color: var(--primary); margin-bottom: 10px; font-size: 1.1rem; }
.cookie-banner p { font-size: 0.85rem; color: var(--muted); margin-bottom: 20px; }
.cookie-actions { display: flex; gap: 12px; }
.cookie-actions .btn {
    flex: 1;
    font-size: 0.8rem;
    padding: 10px;
}

/* Süti Modal Stílusok */
.cookie-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
}

.cookie-modal-overlay.show { display: flex; }

.cookie-modal {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 20px;
    width: 95%;
    max-width: 550px;
    padding: 30px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5), 0 0 20px var(--glow);
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Használjuk az új animációt */
    position: relative;
    overflow: hidden;
}

.modal-header h3 { 
    font-family: 'Orbitron'; 
    color: var(--primary); 
    margin-bottom: 25px; 
    border-bottom: 1px solid var(--border); 
    padding-bottom: 15px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--glow);
}

.modal-footer {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.option-info strong { display: block; color: var(--text); margin-bottom: 5px; }
.option-info p { font-size: 0.8rem; color: var(--muted); margin-bottom: 0; }

/* Kapcsoló (Toggle Switch) Stílus */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    flex-shrink: 0;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 34px;
    border: 1px solid var(--border);
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px; width: 16px;
    left: 4px; bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
    box-shadow: 0 0 10px var(--glow);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.switch.disabled .slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-arrow {
    border-radius: 8px !important;
    background: rgba(34, 211, 238, 0.1) !important;
    border: 1px solid var(--primary) !important;
}

.nav-arrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    display: inline-block;
}

.nav-arrow.prev::before { transform: rotate(45deg); margin-left: 2px; }
.nav-arrow.next::before { transform: rotate(-135deg); margin-right: 2px; }

.font-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}
.font-btn:hover { background: var(--primary); color: #000; }

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}

.section-icon {
    font-size: 2.2rem;
}

.rule-box {
    padding: 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--primary);
    margin-bottom: 30px;
}

.rule-box.warning {
    background: rgba(239, 68, 68, 0.1);
    border-left-color: #ef4444;
}
/* Keresési szekció kezelése */
#search-results { display: none; }
#search-results.active { display: block; }

.rule-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 25px 0;
    min-height: auto;
}

@media (max-width: 600px) {
    .rule-grid {
        grid-template-columns: 1fr; /* Egy oszlop mobilra */
    }
}

@media (max-width: 768px) {
    .rule-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }
}

.rule-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: 0.3s;
    cursor: pointer;
}

.rule-item:hover {
    border-color: var(--primary);
    background: rgba(34, 211, 238, 0.03);
}

.ck-rights {
    margin-top: 40px;
    padding: 25px;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 15px;
}

.ck-rights h4 {
    color: var(--accent);
    margin-top: 0;
}

/* --- hall-of-fame.php specific styles --- */
.hof-page-title {
  text-align: center;
  padding: 50px 0;
  font-size: 3em;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  text-shadow: 0 0 15px var(--primary);
  font-family: 'Orbitron', sans-serif;
}
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.tab-button {
  padding: 12px 25px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 50px;
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
  transition: 0.3s;
}
.tab-button.active {
  background: var(--primary);
  color: var(--bg);
  border: none;
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.4);
}
#searchBar {
  display: block;
  margin: 0 auto 30px;
  padding: 10px 20px;
  border-radius: 50px;
  border: none;
  width: 50%;
  max-width: 400px;
  font-size: 1em;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
}
.hof-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  padding: 0 50px 50px;
  max-width: 1200px;
  margin: 0 auto;
}
.hof-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--panel);
  border-radius: 15px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  padding: 15px;
  position: relative;
}
.hof-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(34, 211, 238, 0.3);
  border-color: var(--primary);
}
.hof-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--primary);
  box-shadow: 0 0 15px var(--primary);
  flex-shrink: 0;
  transition: all 0.3s;
}
.hof-card:hover img {
  box-shadow: 0 0 25px var(--accent);
  transform: scale(1.05);
}
.hof-card-content h3 { margin: 0; font-size: 1.5em; color: var(--primary); font-weight: 600; }
.hof-card-content h4 { margin: 5px 0 10px; font-size: 1em; color: var(--muted); font-weight: 500; }
.hof-card-content p { font-size: 0.95em; line-height: 1.5em; color: var(--text); }
.hof-card-content .date { margin-top: 10px; font-size: 0.85em; color: var(--muted); }
.badge {
  display: inline-block;
  margin-right: 5px;
  margin-top: 5px;
  background: var(--accent);
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.2);
}
.badge.christmas {
  background: linear-gradient(135deg, #d60000, #0da848);
  color: #fff;
  border: 2px solid #fff;
}
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); justify-content: center; align-items: center; z-index: 999; }
.modal-content { background: var(--panel); padding: 30px; border-radius: 15px; max-width: 500px; width: 90%; position: relative; text-align: center; border: 1px solid var(--border); }
.modal-content img { width: 100%; height: auto; border-radius: 10px; margin-bottom: 15px; }
.close-modal { position: absolute; top: 10px; right: 15px; font-size: 1.5em; color: var(--text); cursor: pointer; }

/* --- rpcars.php specific styles --- */
.search-filter-container { display:flex; max-width:600px; margin:40px auto 20px; border-radius:12px; overflow:hidden; border: 1px solid var(--border); }
@media (max-width: 768px) {
    .search-filter-container {
        flex-direction: column;
        border-radius: 15px;
        max-width: 100%;
    }
    .search-filter-container input {
        border-bottom: 1px solid var(--border);
        padding: 18px;
    }
    .search-filter-container button {
        width: 100%;
        border-radius: 0;
        padding: 18px;
    }
}
.search-filter-container input { flex:1; padding:14px 20px; font-size:16px; border:none; outline:none; background: var(--panel); color:var(--text); }
.search-filter-container button { padding:14px 25px; border-radius:0 12px 12px 0; border:none; background: var(--primary); color:var(--bg); font-weight:bold; cursor:pointer; transition:0.3s; }
.search-filter-container button:hover { background: var(--accent); color: var(--text); }
.filter-popup { position: fixed; top:80px; left:50%; transform:translateX(-50%); background:var(--panel); color:var(--text); padding:20px; border-radius:12px; box-shadow:0 10px 30px rgba(0,0,0,0.7); display:none; z-index:2000; max-width:600px; border: 1px solid var(--border); }
.filter-popup .filter-section { margin-bottom:15px; }
.filter-popup h3 { margin-bottom:10px; font-size:16px; border-bottom:1px solid var(--border); padding-bottom:5px; color: var(--primary); }
.filter-popup .filter-btn { margin:5px; padding:8px 12px; border:none; border-radius:8px; background: var(--border); color:var(--text); font-weight:600; cursor:pointer; transition:0.3s; }
.filter-popup .filter-btn.active { background:var(--primary); color:var(--bg); }
#clearFilters { margin-top:10px; width:100%; background:#e74c3c; color:#fff; padding:10px; border:none; border-radius:8px; cursor:pointer; }
.card-grid { flex:1; display:grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap:20px; overflow-y:auto; padding-right:10px; align-content:start; max-width: 1200px; margin: 0 auto; }

/* Scrollbar styles */
.card-grid::-webkit-scrollbar { width: 12px; }
.card-grid::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.1); border-radius: 10px; }
.card-grid::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--primary), var(--accent)); border-radius: 10px; border: 3px solid rgba(0, 0, 0, 0.3); }
.card-grid::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--accent), var(--primary)); }
.card-grid { scrollbar-width: thin; scrollbar-color: var(--primary) rgba(255, 255, 255, 0.1); }

.car-card {
  width: 100%;
  max-width: 300px;
  height: 380px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.car-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(34, 211, 238, 0.3);
  border-color: var(--primary);
}
.card-image { width: 100%; height: 200px; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-header {
  position: relative;
  width: 100%;
  padding: 10px 15px;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  color: var(--text);
  border-radius: 12px 12px 0 0;
}
.card-header .header-left { flex: 0 0 auto; text-align: left; white-space: nowrap; }
.card-header .header-divider { flex: 1; margin: 0 5px; border-bottom: 1px dotted rgba(255,255,255,0.5); }
.card-header .header-right { flex: 0 0 auto; text-align: right; white-space: nowrap; margin-right: 45px; }
.card-footer { display:flex; justify-content:center; gap:5px; flex-wrap:wrap; background: rgba(0,0,0,0.5); color:var(--text); padding:8px; font-weight:600; text-transform:uppercase; }
.card-image::after { content:''; position:absolute; top:0; left:0; width:100%; height:100%; background: linear-gradient(to top, rgba(0,0,0,0.4), transparent); pointer-events:none; border-radius:16px; }
.type-badge, .frakcio-badge, .speed-badge, .steering-badge, .brand-badge { padding:2px 6px; border-radius:6px; font-size:12px; font-weight:700; color: #ffffffff; }
.hidden { display:none !important; }

.snow-container { position: fixed; top: 0; left: 0; width: 100%; pointer-events: none; overflow: hidden; z-index: 50; height: calc(100vh - 60px); }
.snowflake { position: absolute; color: #fff; user-select: none; pointer-events: none; }

/* --- admin-tgf.php specific styles --- */
.tgf-container { max-width: 1000px; margin: 0 auto; padding: 50px 20px; }
.tgf-form-box {
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  padding: clamp(20px, 5vw, 40px);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  max-height: none; /* Mobilon ne legyen belső görgetés, ha nem muszáj */
  overflow-y: visible;
}
.tgf-form-box h2 { font-family: 'Orbitron'; color: var(--primary); margin-bottom: 20px; text-align: center; }
.tgf-form-box .tgf-step { display: none; flex-direction: column; gap: 20px; width: 100%; }
.tgf-form-box .tgf-step.active { display: flex; }
.tgf-form-box .tgf-cards { display:flex; gap:25px; justify-content:center; flex-wrap:wrap; }
.tgf-form-box .tgf-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: var(--card);
  border-radius:15px;
  width: 230px;
  text-align:center;
  cursor:pointer;
  transition:0.3s;
  padding:20px;
  box-shadow:0 8px 20px rgba(0,0,0,0.2);
  border:1px solid var(--border);
}
.tgf-form-box .tgf-card:hover {
  transform: translateY(-8px);
  box-shadow:0 15px 35px rgba(34, 211, 238, 0.3);
  border-color: var(--primary);
}
.tgf-form-box .tgf-card img { width:100%; border-radius:10px; }
.tgf-form-box .tgf-card h2 { margin:12px 0 8px 0; font-size:20px; color: var(--primary); }
.tgf-form-box .tgf-card p { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 12px 0; color: var(--text); }
.tgf-form-box .tgf-card-footer { margin-top:auto; font-weight:bold; color: var(--muted); }
.tgf-form-box .tgf-field { position: relative; display:flex; flex-direction: column; gap:8px; width: 100%; }
.tgf-form-box .tgf-field label { color: var(--text); font-weight: 600; }
.tgf-form-box .tgf-field input, .tgf-form-box .tgf-field textarea {
  padding:14px;
  border-radius:10px;
  border:1px solid var(--border);
  font-size:16px;
  background: var(--bg);
  color:var(--text);
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}
.tgf-form-box .tgf-field input:focus, .tgf-form-box .tgf-field textarea:focus {
  border-color:var(--primary);
  box-shadow:0 0 12px rgba(34, 211, 238, 0.5);
  outline:none;
}
.tgf-form-box .tgf-tooltip-icon {
  display: inline-flex; justify-content: center; align-items: center; width: 20px; height: 20px;
  background: var(--primary); color: var(--bg); font-weight: bold; border-radius: 50%; cursor: pointer;
  position: relative; font-size: 14px;
}
.tgf-form-box .tgf-tooltip-text {
  position: absolute; bottom: 130%; left: 50%; transform: translateX(-50%);
  background: var(--panel); color: var(--text); padding: 6px 12px; border-radius: 8px;
  font-size: 13px; white-space: nowrap; z-index: 5; pointer-events: none; opacity: 0;
  transition: opacity 0.3s ease, bottom 0.3s ease; min-width: 100px; text-align: center;
  border: 1px solid var(--border);
}
.tgf-form-box .tgf-tooltip-icon:hover .tgf-tooltip-text { opacity: 1; bottom: 140%; }
.tgf-form-box .tgf-hash {
  display: inline-flex; justify-content: center; align-items: center; padding: 4px 10px;
  background: var(--accent); color: var(--text); border-radius: 20px; font-weight: bold;
  font-size: 13px; cursor: pointer; position: relative; white-space: nowrap; transition: all 0.2s ease;
}
.tgf-form-box .tgf-hash:hover { background: var(--primary); transform: scale(1.1); color: var(--bg); }
.tgf-form-box .tgf-hash::after {
  content: attr(data-tooltip); position: absolute; bottom: 150%; left: 50%; transform: translateX(-50%);
  background: var(--panel); color: var(--text); padding: 6px 12px; border-radius: 6px;
  font-size: 12px; white-space: normal; max-width: 200px; text-align: center; opacity: 0;
  pointer-events: none; transition: opacity 0.3s ease, transform 0.2s ease; z-index: 10;
  border: 1px solid var(--border);
}
.tgf-form-box .tgf-hash:hover::after { opacity: 1; transform: translateX(-50%) translateY(-4px); }
.tgf-form-box button {
  padding:14px 30px; border:none; border-radius:10px; background:var(--primary); color:var(--bg);
  cursor:pointer; transition: all 0.3s ease; box-shadow:0 0 12px rgba(34, 211, 238, 0.5); font-weight: bold;
}
.tgf-form-box button:hover {
  background:var(--accent); box-shadow:0 0 25px rgba(138, 92, 246, 0); color: var(--text);
  background:var(--accent); box-shadow:0 0 25px rgba(139, 92, 246, 0.5); color: var(--text);
}
.success { color:var(--primary); font-weight:bold; text-align:center; margin-bottom:20px; }
.tgf-form-box-inverse {
  background: var(--panel); border: 1px solid var(--border); padding: 40px; border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5); color: var(--text); margin-top: 30px;
}
.tgf-form-box-inverse h2 {
  font-family: 'Orbitron', sans-serif; font-size: 2rem; font-weight: 700; text-align: center; margin: 0 0 20px 0;
  background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; text-shadow: 0 0 10px rgba(34, 211, 238, 0.3);
}
.tgf-form-box-inverse .tgf-cards-container { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.tgf-form-box-inverse .tgf-card {
  background: var(--card); border-radius:15px; width: 230px; text-align:center; cursor:pointer;
  transition:0.3s; padding:20px; box-shadow:0 8px 20px rgba(0,0,0,0.2); border:1px solid var(--border);
}
.tgf-form-box-inverse .tgf-card:hover {
  transform: translateY(-8px); box-shadow:0 15px 35px rgba(34, 211, 238, 0.3); border-color: var(--primary);
}
.tgf-form-box-inverse .tgf-card h2 { font-size:20px; color: var(--primary); }
.tgf-form-box-inverse .tgf-card p { color:var(--text); }
.karacsonyi-text {
  font-size: 1rem; font-weight: 700; color: var(--primary); padding-bottom: 6px; display: inline-block;
  border-bottom: 3px solid var(--accent); position: relative;
}
/* --- ModHub Badges & Mod Cards --- */
.mod-badges-wrapper {
    display: flex;
    align-items: center;
    gap: 15px; /* A kért 15px távolság */
    margin-bottom: 10px;
}

.mod-version-badge {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 45px; /* Fix width helyett min-width a rugalmasságért */
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 2px 5px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0;
    margin-bottom: 0;
    vertical-align: middle;
}

.mod-status-badge {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 0;
    margin-left: 0; /* A gap tároló kezeli a távolságot */
    vertical-align: middle;
}

.video-container {
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--primary);
    position: relative;
    background-size: cover;
    background-position: center;
    aspect-ratio: 16 / 9;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    transition: background 0.3s;
}

.video-container:hover::before {
    background: rgba(0, 0, 0, 0.2);
}

.video-container .play-button {
    font-size: 4rem;
    z-index: 2;
    filter: drop-shadow(0 0 15px var(--glow));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-container:hover .play-button {
    transform: scale(1.2);
}

.mod-price-badge {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    background: rgba(34, 211, 238, 0.1);
    color: var(--primary);
    border: 1px solid rgba(34, 211, 238, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Állapot színek */
.status-ready { 
    background: rgba(34, 197, 94, 0.15); 
    color: #4ade80; 
    border: 1px solid rgba(34, 197, 94, 0.3); 
}

.status-beta { 
    background: rgba(234, 179, 8, 0.15); 
    color: #facc15; 
    border: 1px solid rgba(234, 179, 8, 0.3); 
}

.status-updated { 
    background: rgba(34, 211, 238, 0.15); 
    color: #22d3ee; 
    border: 1px solid rgba(34, 211, 238, 0.3); 
}

.mod-new-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(45deg, #f43f5e, #fb7185);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.4);
    animation: newBadgePulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
    pointer-events: none;
    letter-spacing: 1px;
    will-change: transform;
}

@keyframes newBadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); box-shadow: 0 0 20px rgba(244, 63, 94, 0.6); }
}

.status-dev { 
    background: rgba(239, 68, 68, 0.15); 
    color: #f87171; 
    border: 1px solid rgba(239, 68, 68, 0.3); 
}

/* Kártya lebegés effekt (ModHub és Szabályzat kártyákhoz is) */
.rule-item { 
    background: rgba(15, 23, 42, 0.6); /* Sötétebb, de áttetsző alap */
    backdrop-filter: blur(12px) saturate(180%); /* Erősebb elmosás és telítettebb színek mögötte */
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08); 
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3); /* Mélyebb árnyék */
    padding: 25px; 
    border-radius: 12px; /* Eredeti border-radius */
    position: relative; 
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s ease, border-color 0.5s ease, background 0.5s ease;
    z-index: 1;
    overflow: hidden; /* Szükséges a forgó keret maszkolásához */
    --item-glow: var(--accent); /* Alapértelmezett izzás színe */
    min-height: 280px; /* Rugalmas magasság a reszponzivitás érdekében */
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* BTK Kategória Badge Stílus */
.category-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: inline-block;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--item-glow);
    color: var(--item-glow);
}

/* BTK Kategória Színek */
.rule-item.cat-traffic { --item-glow: #22d3ee; } /* Közlekedési: Kék */
.rule-item.cat-docs { --item-glow: #facc15; }    /* Okmányok: Sárga */
.rule-item.cat-criminal { --item-glow: #ef4444; } /* Bűnügyi: Piros */
.rule-item.cat-illegal { --item-glow: #a855f7; }  /* Illegál: Lila */
.rule-item.cat-officer { --item-glow: #3b82f6; }  /* Rendvédelem: Sötétkék */
.rule-item.cat-org { --item-glow: #f97316; }      /* Szervezeti: Narancs */

/* Neon Lila úszó keret effekt */
.rule-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, transparent, var(--item-glow), transparent 25%);
    animation: rotateNeonBorder 6s linear infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

/* Belső maszk a kártyának, hogy csak a vékony szél látsszon */
.rule-item::after {
    content: '';
    position: absolute;
    inset: 1px; /* Itt állíthatod a keret vastagságát (1px = vékony) */
    background: inherit;
    border-radius: inherit;
    z-index: -1;
}

@keyframes rotateNeonBorder {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.rule-item:hover::before {
    opacity: 1;
}

.rule-item:hover { 
    transform: translateY(-6px); /* Kiemeltebb lebegés */
    border-color: var(--item-glow);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--item-glow);
    /* A box-shadow, border-color és background a specifikus mod osztályokban lesz felülírva */
}

.rule-item p {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Maximum 3 soros leírás */
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}

/* Specifikus kártya hátterek és hover effektek az animációkhoz igazítva */
/* Z-ANTICHEAT és Z-MDT (Cyan/Blue téma) */
.z-anticheat-mod.rule-item,
.z-mdt-mod.rule-item {
    background: rgba(15, 30, 50, 0.6); /* Enyhén kékesebb alap */
}

.z-anticheat-mod.rule-item:hover,
.z-mdt-mod.rule-item:hover {
    background: rgba(15, 30, 50, 0.85); /* Enyhén kékesebb hoverre */
    border-color: rgba(34, 211, 238, 0.4); /* Kék keret kiemelése */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(34, 211, 238, 0.3), inset 0 0 15px rgba(34, 211, 238, 0.2); /* Kék neon fénnyel és belső ragyogással */
}

/* Z-OKMANYIRODA (Cyan/Blue téma) */
.z-okmanyiroda-mod.rule-item {
    background: rgba(15, 30, 50, 0.6); /* Enyhén kékesebb alap */
}

.z-okmanyiroda-mod.rule-item:hover {
    background: rgba(15, 30, 50, 0.85); /* Enyhén kékesebb hoverre */
    border-color: rgba(34, 211, 238, 0.4); /* Kék keret kiemelése */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(34, 211, 238, 0.3), inset 0 0 15px rgba(34, 211, 238, 0.2); /* Kék neon fénnyel és belső ragyogással */
}

/* Z-POLICERADAR (Piros téma) */
.z-policeradar-mod.rule-item {
    background: rgba(40, 20, 20, 0.6); /* Enyhén pirosabb alap */
}
.z-policeradar-mod.rule-item:hover {
    background: rgba(40, 20, 20, 0.85); /* Enyhén pirosabb hoverre */
    border-color: rgba(239, 68, 68, 0.4); /* Piros keret kiemelése */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(239, 68, 68, 0.3), inset 0 0 15px rgba(239, 68, 68, 0.2); /* Piros neon fénnyel és belső ragyogással */
}

/* Alap konténer az effekteknek */
.mod-bg-effect {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.15; /* Finom, nem zavaró alap láthatóság */
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.rule-item:hover .mod-bg-effect {
    opacity: 0.6; /* Kicsit erősebb láthatóság hovernél */
    animation: rgbCycle 4s linear infinite; /* RGB színváltás indítása */
}

/* 1. ANTICHEAT: Radar Effekt */
.radar-sweep {
    background: 
        radial-gradient(circle, transparent 40%, rgba(34, 211, 238, 0.1) 41%, transparent 42%),
        radial-gradient(circle, transparent 60%, rgba(34, 211, 238, 0.1) 61%, transparent 62%);
}

.radar-sweep::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: conic-gradient(from 0deg, rgba(34, 211, 238, 0.4) 0deg, transparent 90deg);
    animation: radarRotation 4s linear infinite;
}

@keyframes radarRotation {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 2. MDT: Tablet / Digitális Grid Effekt */
.tablet-grid {
    background-image: 
        linear-gradient(rgba(34, 211, 238, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

.tablet-grid::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: tabletScan 3s ease-in-out infinite;
    box-shadow: 0 0 15px var(--primary);
}

@keyframes tabletScan {
    0% { top: 0%; opacity: 0; }
    10%, 90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* 3. POLICE RADAR: Traffipax Effekt */
.speed-scan {
    background: linear-gradient(rgba(239, 68, 68, 0.05) 50%, transparent 50%);
    background-size: 100% 4px;
}

.speed-scan::before {
    content: '';
    position: absolute;
    left: 10%; top: 50%; width: 5px; height: 5px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 20px 2px #ef4444;
    animation: laserPoint 2s infinite alternate;
}

.speed-scan::after {
    content: '';
    position: absolute;
    inset: 0;
    background: white;
    opacity: 0;
    animation: cameraFlash 8s infinite;
}

@keyframes laserPoint {
    from { left: 10%; transform: scale(1); }
    to { left: 90%; transform: scale(1.5); }
}

@keyframes cameraFlash {
    0%, 96% { opacity: 0; }
    97% { opacity: 0.3; }
    100% { opacity: 0; }
}

/* Mod Modal Specifikus stílusok */
.mod-modal {
    max-width: 450px;
    border: 1px solid var(--primary);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(8, 13, 33, 0.98) 100%);
}

.mod-modal .modal-body {
    position: relative;
    background-image: 
        radial-gradient(circle at 2px 2px, rgba(34, 211, 238, 0.05) 1px, transparent 0);
    background-size: 20px 20px; /* Finom tech-rács háttér */
}

.mod-modal .modal-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: headerScan 2s infinite linear;
}

@keyframes headerScan {
    0% { transform: scaleX(0); opacity: 0; }
    50% { transform: scaleX(1); opacity: 1; }
    100% { transform: scaleX(0); opacity: 0; }
}

.features-list {
    list-style: none;
    padding: 0 !important;
}

.features-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.features-list li:hover {
    color: var(--text);
    background: rgba(34, 211, 238, 0.03);
}

.features-list li::before {
    content: '▹';
    color: var(--primary);
    margin-right: 10px;
    text-shadow: 0 0 8px var(--primary);
    font-weight: bold;
}
.rule-item h4 {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    margin-bottom: 12px;
    color: var(--primary);
}

/* --- changelog.php specific styles --- */
.changelog-hero{
    max-width:1200px;
    margin:60px auto;
    padding:0 20px;
}
.changelog-hero h1{
    font-family:Orbitron;
    font-size:clamp(1.8rem,5vw,3rem);
    color: var(--primary);
}
.changelog-hero p{
    color:var(--muted);
    margin:15px 0 25px;
    max-width:600px;
}
.changelog-hero a{
    display:inline-block;
    padding:12px 22px;
    border-radius:10px;
    font-weight:600;
    text-decoration:none;
    margin-right:12px;
}
.section{
    max-width:1200px;
    margin:60px auto;
    padding:0 20px;
}
.frakcio-category{
    margin-bottom:35px;
    background:var(--panel);
    border:1px solid var(--border);
    border-radius:14px;
    overflow:hidden;
}
.frakcio-header{
    padding:16px 20px;
    font-family:Orbitron;
    cursor:pointer;
    display:flex;
    justify-content:space-between;
    align-items:center;
    color: var(--primary);
}
.frakcio-header span{opacity:.7}
.frakcio-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
    gap:18px;
    padding:20px;
    max-height:0;
    overflow:hidden;
    opacity:0;
    transition:
        max-height .35s ease,
        opacity .25s ease;
}
.frakcio-category.active .frakcio-grid{
    max-height:3000px; /* elég nagy, nem vág */
    opacity:1;
}
.frakcio-card{
    background:var(--card);
    border:1px solid var(--border);
    border-radius:14px;
    padding:18px 14px;
    text-align:center;
    transition:.3s;
}
.frakcio-card:hover{
    transform:translateY(-4px);
    border-color:var(--primary);
}
.frakcio-card img{
    display:block;
    max-width:100%;
    max-height:48px;
    margin:0 auto 12px;
    object-fit:contain;
}
.progress-wrap{
    width:96px;
    height:96px;
    margin:10px auto 0;
    position:relative;
}
.progress-wrap svg{
    width:100%;
    height:100%;
    overflow:visible;
}
.progress-wrap circle{
    fill:none;
    stroke-width:8;
}
.progress-bg{stroke:var(--border)}
.progress-bar{
    stroke:var(--primary);
    stroke-linecap:round;
    transform:rotate(-90deg);
    transform-origin:50% 50%;
    transition:stroke-dashoffset 1.2s ease;
}
.progress-text{
    margin-top:8px;
    font-size:.85rem;
    color:var(--muted);
}

/* --- popup/index.php specific styles --- */
.zentorix-popup { position: relative; z-index: 9999; font-family: 'Inter', sans-serif; }
.zentorix-popup .background { position: fixed; inset: 0; background: radial-gradient(circle at top, var(--panel), var(--bg)); overflow: hidden; z-index: 1; }
.zentorix-popup .particle { position: absolute; width: 2px; height: 2px; background: rgba(34, 211, 238, 0.8); animation: zentorixFloat linear infinite; }
@keyframes zentorixFloat { from { transform: translateY(100vh); opacity: 0; } to { transform: translateY(-10vh); opacity: 1; } }

.zentorix-popup .popup-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.7); display: flex; align-items: center; justify-content: center; z-index: 2; }
.zentorix-popup .popup { background: var(--panel); color: var(--text); max-width: 520px; width: 92%; padding: 26px; border-radius: 16px; text-align: center; box-shadow: 0 0 45px rgba(34, 211, 238, 0.45); animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); border: 1px solid var(--border); }

/* ESX Logo Stílusok */
.esx-banner-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-right: 20px;
    transition: 0.3s ease;
}

.esx-banner-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--glow);
    animation: esxPulse 2.5s infinite ease-in-out;
}

.esx-banner-badge:hover .esx-badge-divider {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.esx-badge-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 4px;
    transition: all 0.3s ease;
}

.esx-logo-banner {
    height: 25px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.esx-text-container {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.esx-compatible-tag {
    font-size: 0.55rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    font-weight: 600;
}

.esx-legacy-tag {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}

@keyframes esxPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

.esx-mod-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    height: 22px;
    z-index: 5;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
    pointer-events: none;
}

.zentorix-popup h1 { margin: 0; font-size: 26px; font-family: 'Orbitron', sans-serif; color: var(--primary); }
.zentorix-popup h2 { margin: 5px 0 15px; color: var(--accent); letter-spacing: 2px; font-family: 'Orbitron', sans-serif; }
.zentorix-popup p { font-size: 14px; line-height: 1.5; color: var(--muted); }

.zentorix-popup .buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 15px; }
.zentorix-popup .btn { padding: 10px 18px; border-radius: 8px; cursor: pointer; text-decoration: none; font-weight: bold; transition: .2s; }
.zentorix-popup .btn-main { background: var(--primary); color: var(--bg); }
.zentorix-popup .btn-main:hover { background: var(--accent); color: var(--text); }
.zentorix-popup .btn-close { background: var(--border); color: var(--text); }
.zentorix-popup .btn-close:hover { background: var(--muted); color: var(--bg); }

.zentorix-popup .discord-box { background: var(--bg); border-radius: 10px; padding: 12px; margin-top: 12px; font-size: 13px; max-height: 220px; overflow-y: auto; border: 1px solid var(--border); }
.zentorix-popup .member { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); transition: 0.2s; }
.zentorix-popup .member:hover { background: rgba(34, 211, 238, 0.1); }
.zentorix-popup .member:last-child { border-bottom: none; }
.zentorix-popup .member img { width: 30px; height: 30px; border-radius: 50%; }
.zentorix-popup .member span { font-size: 13px; color: var(--text); }

.rank-owner { background: #1e90ff; color: #fff; padding: 2px 6px; border-radius: 8px; font-size: 11px; margin-left: auto; }
.rank-admin { background: #ff3c3c; color: #fff; padding: 2px 6px; border-radius: 8px; font-size: 11px; margin-left: auto; }
.rank-moderator { background: #ffa500; color: #fff; padding: 2px 6px; border-radius: 8px; font-size: 11px; margin-left: auto; }
.rank-controller { background: #32cd32; color: #fff; padding: 2px 6px; border-radius: 8px; font-size: 11px; margin-left: auto; }
.rank-fmanager { background: #55410aff; color: #fff; padding: 2px 6px; border-radius: 8px; font-size: 11px; margin-left: auto; }
.rank-stafftag { background: #cc00ff; color: #fff; padding: 2px 6px; border-radius: 8px; font-size: 11px; margin-left: auto; }

body.zentorix-popup-open { overflow: hidden; }

@media (max-width: 768px) {
  /* Általános Mobil Optimalizálás */
  header {
    flex-direction: column;
    gap: 15px;
    padding: 15px 5%;
    text-align: center;
  }
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  .hero {
    height: auto;
    padding: 100px 5%;
  }
  .home-hero h1 { font-size: 2.2rem; }
  .logo, .logo-main { font-size: 2.5rem; }
  .logo span, .logo-main span { font-size: 1.8rem; }
  .about-grid { grid-template-columns: 1fr; }
  .container, .panel { padding: 25px 15px; }
  .status-container { gap: 30px; }
  .server-status-bar { padding: 20px 0; }
  footer { padding: 30px 20px; }

  .hof-container { padding: 0 20px 40px; }
  .search-filter-container { margin: 20px auto; }
  .card-grid { padding: 0 10px; }
  .tgf-form-box, .tgf-form-box-inverse { width: 95%; padding: 20px; max-height: none; }
  .tgf-form-box-inverse { margin-left: auto; margin-right: auto; }
  .tgf-form-box .tgf-cards, .tgf-form-box-inverse .tgf-cards-container { flex-direction: column; align-items: center; }
  .tgf-form-box .tgf-card, .tgf-form-box-inverse .tgf-card { width: 100%; max-width: 300px; }
}

@media (max-width: 480px) {
  .home-hero h1 { font-size: 1.8rem; }
  .home-hero-actions {
    flex-direction: column;
    gap: 12px;
  }
  .countdown { gap: 10px; }
  .countdown-item {
    min-width: 75px;
    padding: 10px;
  }
  .countdown-value { font-size: 1.6rem; }
  .links { flex-direction: column; }

  .hof-page-title { font-size: 2.2em; }
  #searchBar { width: 70%; }
  .zentorix-popup .popup { padding: 15px; }
  .zentorix-popup h1 { font-size: 22px; }
  .zentorix-popup h2 { font-size: 18px; }
  .zentorix-popup p { font-size: 12px; }
  .zentorix-popup .btn { padding: 8px 12px; font-size: 12px; }
}

@media (max-width: 768px) {
    .server-status-bar {
        padding: 20px 0; /* Kisebb padding mobil nézetben */
        margin: 20px 0; /* Kisebb margin mobil nézetben */
    }
    .status-container {
        flex-direction: column; /* Elemek egymás alá rendezése */
        gap: 20px; /* Kisebb távolság az elemek között */
        padding: 0 15px; /* Oldalsó padding a wrap-en belül */
    }
    .status-item {
        width: 100%; /* Minden elem teljes szélességű legyen */
        justify-content: center; /* Tartalom középre igazítása */
        text-align: center; /* Szöveg középre igazítása */
    }
    .server-name-truncate {
        max-width: 100%; /* A szerver név ne lógjon ki */
    }
}

/* --- Új Egyedi Háttéreffektek --- */

/* 4. HQ RADIO: Equalizer */
.equalizer-bars {
    background: linear-gradient(to top, rgba(34, 211, 238, 0.05) 0%, transparent 100%);
}
.equalizer-bars::after {
    content: '';
    position: absolute;
    bottom: 0; left: 10%; width: 80%; height: 40%;
    background: repeating-linear-gradient(90deg, var(--primary) 0, var(--primary) 4px, transparent 4px, transparent 12px);
    mask-image: linear-gradient(to top, black, transparent);
    -webkit-mask-image: linear-gradient(to top, black, transparent);
    animation: eqPulse 1.2s infinite ease-in-out;
}
@keyframes eqPulse {
    0%, 100% { transform: scaleY(0.6); opacity: 0.3; }
    50% { transform: scaleY(1.2); opacity: 0.6; }
}

/* 5. DRUGS: Smoke Effect */
.drugs-smoke {
    background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.1), transparent 70%);
}
.drugs-smoke::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 70%, rgba(139, 92, 246, 0.2) 0%, transparent 40%),
                radial-gradient(circle at 70% 30%, rgba(34, 211, 238, 0.1) 0%, transparent 40%);
    filter: blur(20px);
    animation: smokeFloat 6s infinite alternate;
}
@keyframes smokeFloat {
    from { transform: translate(-10%, -10%) rotate(0deg); }
    to { transform: translate(10%, 10%) rotate(15deg); }
}

/* 6. JROB: Laser Grid */
.rob-lasers {
    background-image: linear-gradient(rgba(239, 68, 68, 0.1) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(239, 68, 68, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
}
.rob-lasers::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 1px;
    background: #ef4444;
    box-shadow: 0 0 10px #ef4444;
    animation: laserScanDown 4s infinite linear;
}
@keyframes laserScanDown {
    0% { top: 0; opacity: 0; }
    10%, 90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* 7. SAFEZONE: Shield */
.shield-effect::after {
    content: '';
    position: absolute;
    inset: 10%;
    border: 2px dashed rgba(34, 211, 238, 0.2);
    border-radius: 50%;
    animation: rotateNeonBorder 10s linear infinite;
}

/* 8. DAILY REWARDS: Coins */
.rewards-coins::after {
    content: '★';
    position: absolute;
    top: 20%; left: 80%;
    color: #fbbf24;
    font-size: 2rem;
    filter: blur(2px);
    opacity: 0.2;
    animation: coinFloat 3s infinite ease-in-out;
}
@keyframes coinFloat {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* 9. ZKK / DMW: Traffic Flow */
.traffic-flow {
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.02) 10px, rgba(255,255,255,0.02) 20px);
}
.traffic-flow::after {
    content: '';
    position: absolute;
    left: -20%; top: 40%; width: 40px; height: 2px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    animation: trafficPass 2s infinite linear;
}
@keyframes trafficPass {
    from { left: -20%; }
    to { left: 120%; }
}

/* 10. HUNTING: Scope */
.scope-view::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%; width: 60px; height: 60px;
    border: 1px solid rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    border-radius: 50%;
}
.scope-view::before {
    content: '';
    position: absolute;
    top: 50%; left: 20%; width: 60%; height: 1px;
    background: rgba(255,255,255,0.1);
}

/* 11. DOCUMENT SCAN: ID */
.document-scan::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 50%, rgba(34, 211, 238, 0.1) 50%),
                linear-gradient(90deg, transparent 50%, rgba(34, 211, 238, 0.1) 50%);
    background-size: 100% 4px, 4px 100%;
    opacity: 0.3;
    animation: hologramFlicker 0.1s infinite;
}
.document-scan::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary), 0 0 30px var(--primary);
    animation: tabletScan 3s infinite ease-in-out;
    z-index: 2;
}
@keyframes hologramFlicker {
    0% { opacity: 0.2; }
    50% { opacity: 0.3; }
    100% { opacity: 0.25; }
}

/* --- Interaktív Extra Animációk --- */

/* ZENTORIX HUD Glitch effekt hoverre */
.z-hud-mod:hover h4 {
    animation: textGlitch 0.2s linear infinite;
    text-shadow: 2px 0 #ff00c1, -2px 0 #00fff9;
    color: #fff;
}
/* --- Lapozó (Pagination) Stílusok --- */
.pagination-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    padding: 20px 0;
}

.page-btn {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    color: var(--muted);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    transition: all 0.3s ease;
}

.page-btn:hover, .page-btn.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--glow);
}

@keyframes textGlitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 1px); }
    40% { transform: translate(-2px, -1px); }
    60% { transform: translate(2px, 1px); }
    80% { transform: translate(2px, -1px); }
    100% { transform: translate(0); }
}

/* Globális RGB Háttérciklus */
@keyframes rgbCycle {
    from { filter: hue-rotate(0deg); }
    to { filter: hue-rotate(360deg); }
}

/* Keresési Kiemelés & Számláló */
.highlight {
    background: rgba(34, 211, 238, 0.25);
    color: #fff;
    padding: 0 2px;
    border-radius: 4px;
    text-shadow: 0 0 8px var(--primary);
}

.search-count {
    font-size: 0.9rem;
    color: var(--muted);
    margin-left: 15px;
    font-weight: 400;
}

/* --- Dinamikus Server Status Bar --- */
.server-status-bar {
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.05), transparent);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
    margin: 40px 0;
}

/* Statisztika frissítés közbeni vizuális visszajelzés */
@keyframes barFetching {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
.server-status-bar.data-fetching {
    animation: barFetching 1s infinite ease-in-out;
    will-change: opacity;
    transform: translateZ(0);
}

/* Aktivitás (Lájkok) szívdobbanás animáció */
@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.15); }
    70% { transform: scale(1); }
}

#server-upvotes {
    display: inline-block;
    animation: heartbeat 2.5s infinite ease-in-out;
    transform-origin: center;
}

.status-container {
    display: flex;
    justify-content: center;
    gap: clamp(20px, 5vw, 80px); /* Dinamikus távolság */
    align-items: center;
    flex-wrap: wrap;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-basis: auto;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
}

.status-dot.online { background: #4ade80; box-shadow: 0 0 15px #4ade80; }
.status-dot.offline { background: #ef4444; box-shadow: 0 0 15px #ef4444; }

.status-dot.online::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid #4ade80;
    animation: statusPulse 2s infinite;
}

.server-name-truncate {
    max-width: 250px;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
    cursor: pointer;
}

/* --- Egyedi Neon Tooltip --- */
.custom-tooltip {
    position: relative;
}

.custom-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(8, 13, 33, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary);
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 20px var(--glow);
    z-index: 1000;
    pointer-events: none;
    letter-spacing: 0.5px;
}

.custom-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.status-join-btn {
    background: var(--primary);
    color: #000;
    padding: 8px 20px;
    border-radius: 6px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 0.8rem;
    text-decoration: none;
    letter-spacing: 1px;
    transition: 0.3s;
    box-shadow: 0 0 15px var(--glow);
}

.status-join-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--primary);
    background: #fff;
}

/* Modális ablakok optimalizálása mobilra */
.cookie-modal {
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px;
}

.modal-body {
    padding: 10px 0;
}

.status-refresh-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--primary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    font-size: 1rem;
}

.status-refresh-btn:hover {
    background: rgba(34, 211, 238, 0.1);
    border-color: var(--primary);
    transform: rotate(180deg);
    box-shadow: 0 0 15px var(--glow);
}

@keyframes statusPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

.status-label { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 2px; }
.status-value { font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 1.4rem; color: #fff; }
.status-label { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 2px; }
.status-value { font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 1.4rem; color: #fff; }
.status-value.highlight { color: var(--primary); text-shadow: 0 0 15px var(--glow); }

/* Videó interakció javítása */
.video-container.is-playing::before, 
.video-container.is-playing .play-button { display: none; }
.video-container iframe { position: relative; z-index: 10; }

/* --- FAQ Accordion Specifikus Stílusok --- */
.faq-accordion .rules-section-card {
    display: block !important; /* Felülírjuk az alapértelmezett display:none-t */
    opacity: 1 !important;
    visibility: visible !important;
    margin-bottom: 15px;
    padding: 0;
    overflow: hidden;
    animation: none;
}

.faq-accordion .section-header {
    padding: 25px 30px;
    cursor: pointer;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-accordion .section-header:hover {
    background: rgba(34, 211, 238, 0.03);
}

.faq-accordion .section-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 30px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid transparent;
}

.faq-accordion .rules-section-card.active .section-content {
    max-height: 1000px;
    padding: 20px 30px 35px;
    opacity: 1;
    border-top: 1px solid var(--border);
}

/* Chevron (nyíl) stílusok */
.faq-accordion .chevron {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--muted); /* Alapértelmezetten lefelé mutat */
    transition: transform 0.3s ease, border-top-color 0.3s ease;
}

.faq-accordion .rules-section-card.active .chevron {
    transform: rotate(180deg); /* Felfelé fordítja, amikor aktív */
    border-top-color: var(--primary); /* Színváltás aktív állapotban */
}

@keyframes fadeOut { 0% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
.status-value.highlight { color: var(--primary); text-shadow: 0 0 15px var(--glow); }

/* --- Toast Értesítések --- */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 11000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-message {
    background: rgba(8, 13, 33, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    box-shadow: 0 0 20px var(--glow);
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    animation: toastSlideIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes toastSlideIn {
    0% { transform: translateX(120%); opacity: 0; }
    70% { transform: translateX(-10%); opacity: 1; }
    100% { transform: translateX(0); opacity: 1; }
}

/* --- Hiba üzenet stílusa --- */
.toast-message.toast-error {
    border-color: #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.toast-message.toast-error .toast-progress {
    background: #ef4444;
    box-shadow: 0 0 10px #ef4444;
}

.toast-fade-out {
    animation: toastSlideOut 0.4s ease forwards !important;
}

@keyframes toastSlideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(120%); opacity: 0; }
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    animation: toastProgress 3s linear forwards;
}

@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}

/* --- Sikeres Beküldés Animáció --- */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 13, 33, 0.95); /* Sötét, áttetsző háttér */
    backdrop-filter: blur(10px);
    z-index: 99999; /* Minden felett legyen */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.success-overlay.show {
    opacity: 1;
    visibility: visible;
}

.success-content {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--primary);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 0 40px var(--glow);
    transform: scale(0.8);
    opacity: 0;
    animation: successModalAppear 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes successModalAppear {
    0% {
        transform: scale(0.8);
        opacity: 0;
        filter: blur(10px);
    }
    100% {
        transform: scale(1);
        opacity: 1;
        filter: blur(0);
    }
}

.checkmark-circle {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: checkmarkBounce 0.8s ease-out;
}

/* --- Frakció Pályázás Oldal Stílusok --- */
.faction-apply-btn {
    background: #4ade80 !important;
    color: #000 !important;
    border-color: #4ade80 !important;
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.4) !important;
    margin-left: auto; /* Jobbra igazítás */
}

.faction-apply-btn:hover {
    background: #22c55e !important;
    box-shadow: 0 0 25px rgba(74, 222, 128, 0.6) !important;
}

.faction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.faction-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.faction-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.faction-card.applyable:hover {
    border-color: #4ade80;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(74, 222, 128, 0.5);
}

.faction-card.owned:hover {
    border-color: var(--accent);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(139, 92, 246, 0.5);
}

.faction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.faction-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    color: var(--text);
    margin: 0;
}

.faction-status {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.applyable-badge {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.owned-badge {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.faction-body p {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 20px;
}

.apply-now-btn {
    width: 100%;
    padding: 10px 15px;
    font-size: 0.9rem;
}

/* --- Frakció Pályázás Oldal Stílusok --- */
.faction-apply-btn {
    background: #4ade80 !important;
    color: #000 !important;
    border-color: #4ade80 !important;
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.4) !important;
    margin-left: auto; /* Jobbra igazítás */
}

.faction-apply-btn:hover {
    background: #22c55e !important;
    box-shadow: 0 0 25px rgba(74, 222, 128, 0.6) !important;
}

.faction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.faction-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.faction-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.faction-card.applyable:hover {
    border-color: #4ade80;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(74, 222, 128, 0.5);
}

.faction-card.owned:hover {
    border-color: var(--accent);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(139, 92, 246, 0.5);
}

.faction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.faction-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    color: var(--text);
    margin: 0;
}

.faction-status {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.applyable-badge {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.owned-badge {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.faction-body p {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 20px;
}

.apply-now-btn {
    width: 100%;
    padding: 10px 15px;
    font-size: 0.9rem;
}

/* --- UB Kérelem Specifikus Stílusok --- */
.ub-red-theme {
    --primary: #ef4444 !important;
    --glow: rgba(239, 68, 68, 0.3);
}

.ub-red-theme .notice-banner {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: #ef4444 !important;
}

.ub-red-theme .notice-icon, 
.ub-red-theme .notice-text strong {
    color: #ef4444 !important;
}

.ub-red-theme h2 {
    color: #ef4444;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.ub-red-theme label {
    color: #fca5a5;
}

.ub-red-theme .tgf-form-box {
    border-color: #ef4444;
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.2);
    background: rgba(15, 23, 42, 0.7);
}

.ub-red-theme .tgf-field input:focus, 
.ub-red-theme .tgf-field textarea:focus {
    border-color: #ef4444;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
}

.ub-red-theme .btn-primary {
    background: #ef4444;
    color: #fff;
    border: none;
}

.ub-red-theme .btn-primary:hover {
    background: #dc2626;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

@keyframes checkmarkBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-30px); }
    60% { transform: translateY(-15px); }
}

/*** --- Loadingscreen --- */
.global-page-loader {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, #0a0f1f 0%, #050814 70%);
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;

    /* Áttűnés beállítása */
    transition: opacity 1s ease, visibility 1s;
}

/* Osztály a loader elrejtéséhez */
.global-page-loader.loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes bgMove {
    0% { transform: translate(0,0); }
    50% { transform: translate(-10%, -10%); }
    100% { transform: translate(0,0); }
}

/* LILA glitch overlay */
.global-page-loader::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(168, 85, 247, 0.03) 0px,
        rgba(168, 85, 247, 0.03) 1px,
        transparent 1px,
        transparent 3px
    );
    animation: glitchOverlay 2s infinite;
    pointer-events: none;
}

@keyframes glitchOverlay {
    0% { opacity: 0.2; transform: translateX(0); }
    50% { opacity: 0.4; transform: translateX(2px); }
    100% { opacity: 0.2; transform: translateX(0); }
}

.loader-inner {
    position: relative;
    padding: clamp(20px, 5vw, 40px);
    border-radius: 30px;
    background: rgba(8, 13, 33, 0.9);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(34, 211, 238, 0.4);
    box-shadow:
        0 0 40px rgba(34, 211, 238, 0.2),
        inset 0 0 25px rgba(34, 211, 238, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}


/* Új lézer szkenner effekt a loaderen belül */
.loader-inner::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(34, 211, 238, 0.2), transparent);
    animation: scanline 3s linear infinite;
    pointer-events: none;
}

@keyframes borderGlow {
    0% { filter: blur(10px) hue-rotate(0deg); }
    100% { filter: blur(10px) hue-rotate(360deg); }
}
/* Gradient + alap szöveg */
.loader-typing-ascii {
    font-family: 'Consolas', 'Mondaco', 'Lucida Console', monospace;
    font-weight: bold;
    font-size: clamp(6px, 1.2vw, 16px);
    line-height: 1.05;
    letter-spacing: 0;
    text-align: left;
    background: linear-gradient(90deg, #22d3ee 0%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    animation: loaderBaseGlitch 0.5s infinite;
    text-shadow:
        0 0 8px rgba(34, 211, 238, 0.4),
        0 0 12px rgba(255, 140, 0, 0.3);
}

.loader-typing-ascii::before {
    content: attr(data);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #5558f7; /* Lilás szín */
    -webkit-text-fill-color: #557bf7;
    z-index: -1;
    opacity: 0.6;
    z-index: 2; /* A szöveg fölé helyezzük */
    opacity: 0.4; /* Kicsit lejjebb vettem az opacitást, hogy az eredeti színek is átüssenek */
    mix-blend-mode: overlay; /* Jobban keveredik a kék/narancs színekkel */
    animation: glitchPurple 0.2s infinite;
    pointer-events: none;
}

@keyframes glitchPurple {
    0% { transform: translate(0); filter: hue-rotate(0deg); }
    25% { transform: translate(2px, 1px); }
    50% { transform: translate(-2px, -1px); opacity: 0.4; }
    75% { transform: translate(-1px, 2px); }
    100% { transform: translate(0); filter: hue-rotate(45deg); }
}

@keyframes loaderBaseGlitch {
    0%, 100% { transform: translate(0); }
    50% { transform: translate(1px, -1px); }
}

/* --- Frakció Pályázati Form UI Dizájn --- */
#factionApplyModal .cookie-modal {
    max-width: 750px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(8, 13, 33, 1) 100%);
    border: 1px solid var(--primary);
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.2);
}

#factionApplyModal .modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 25px;
}

#factionApplyModal .full-width {
    grid-column: span 2;
}

#factionApplyModal .tgf-field label {
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    margin-bottom: 8px;
    display: block;
    text-shadow: 0 0 5px var(--glow);
}

#factionApplyModal input,
#factionApplyModal select,
#factionApplyModal textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    padding: 12px 15px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    outline: none;
    font-family: 'Inter', sans-serif;
}

#factionApplyModal input:focus,
#factionApplyModal select:focus,
#factionApplyModal textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--glow);
    background: rgba(34, 211, 238, 0.05);
}

#factionApplyModal .leadership-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

#factionApplyModal .leadership-grid input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(34, 211, 238, 0.2);
    font-size: 0.8rem;
    padding: 10px;
}

#factionApplyModal textarea {
    resize: vertical;
    min-height: 120px;
}

@media (max-width: 768px) {
    #factionApplyModal .modal-body {
        grid-template-columns: 1fr;
    }
    #factionApplyModal .full-width {
        grid-column: span 1;
    }
    #factionApplyModal .leadership-grid {
        grid-template-columns: 1fr;
    }
}

/* Premium Sub Badges */
.premium-badge {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    vertical-align: middle;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.premium-pebble { background: #4b5563; color: #f3f4f6; border-color: #6b7280; box-shadow: 0 0 10px rgba(107, 114, 128, 0.3); }
.premium-argentum { background: #94a3b8; color: #f8fafc; border-color: #cbd5e1; box-shadow: 0 0 10px rgba(148, 163, 184, 0.4); }
.premium-aurum { background: #d97706; color: #fff; border-color: #fbbf24; box-shadow: 0 0 15px rgba(217, 119, 6, 0.5); }
.premium-platinum { 
    background: #0ea5e9; 
    color: #fff; 
    border-color: #38bdf8; 
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.6);
    animation: premiumPulse 2s infinite ease-in-out;
}

@keyframes premiumPulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.05); filter: brightness(1.25); }
}