@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap");

/* VitalRP — paleta i rytm jak w styl.css (bez zmiany klas w HTML) */

:root {
    --primary: #ff2d95;
    --primary-light: #ff5cb0;
    --primary-dark: #cc1a75;
    --primary-glow: rgba(255, 45, 149, 0.4);
    --primary-rgb: 255, 45, 149;
    --secondary: #bf00ff;
    --secondary-rgb: 191, 0, 255;
    --discord: #5865f2;
    --youtube: #ff0000;
    --tiktok: #25f4ee;
    --tiktok-accent: #fe2c55;
    --bg-dark: #050507;
    --bg-darker: #050505;
    --bg-card: rgba(12, 12, 18, 0.92);
    --bg-card-hover: #111116;
    --bg-section: #08080c;
    --bg-input: #09090d;
    --text: #d0d0d8;
    --text-muted: #6a6a7a;
    --text-bright: #f0f0f5;
    --border: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.12);
    --border-hover: rgba(255, 45, 149, 0.35);
    --radius: 8px;
    --radius-sm: 5px;
    --radius-lg: 16px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 40px rgba(255, 45, 149, 0.22), 0 0 60px rgba(191, 0, 255, 0.08);
    --shadow-card: 0 10px 30px -12px rgba(0, 0, 0, 0.7);
    --font-main: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: "Outfit", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

/* RESET & BASE */

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-dark);
    font-size: 17px;
}

@media (min-width: 1200px) {
    html {
        font-size: 18px;
    }
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

body {
    font-family: var(--font-main);
    background: var(--bg-darker);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--text-bright); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 800px; }
.text-center { text-align: center; }
.text-accent { color: var(--primary-light); }

/* GRID PATTERN BACKGROUND */

#grid-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(var(--primary-rgb), 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--primary-rgb), 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 100%);
}

/* Particles on top of grid */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

#particles .particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 0.4; }
    90% { opacity: 0.4; }
    100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

/* NAVBAR */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.72rem 0;
    transition: padding var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
    background: transparent;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--border);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.navbar-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 1.05rem;
    display: grid;
    grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
    align-items: center;
    gap: 1.4rem;
    min-height: 52px;
}

/* Szyna social po lewej (jak na screenie — białe ikony w ciemnych kwadratach) */
.social-rail {
    position: fixed;
    left: max(0.75rem, env(safe-area-inset-left));
    top: 50%;
    transform: translateY(-50%);
    z-index: 1002;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.social-rail.is-hidden {
    opacity: 0;
    transform: translateY(-50%) translateX(-12px);
    pointer-events: none;
}

.social-rail-link {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(6, 6, 10, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.24rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.social-rail-link:hover {
    color: #fff;
    border-color: color-mix(in srgb, var(--primary) 45%, transparent);
    box-shadow: 0 0 18px rgba(var(--primary-rgb), 0.22);
    transform: translateY(-2px);
}

.social-rail-discord:hover {
    border-color: rgba(88, 101, 242, 0.6);
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.25);
}

.social-rail-youtube:hover {
    border-color: rgba(255, 0, 0, 0.55);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.2);
}

.social-rail-tiktok:hover {
    border-color: rgba(254, 44, 85, 0.55);
    box-shadow: 0 0 20px rgba(254, 44, 85, 0.2);
}

body.has-social-rail {
    padding-left: 0;
}

@media (max-width: 899px) {
    .social-rail {
        top: calc(50% + 1.5rem);
        bottom: auto;
        left: max(0.45rem, env(safe-area-inset-left));
        transform: translateY(-50%);
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
    }

    .social-rail-link {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
}

.navbar-actions {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 0.95rem;
}

.navbar-actions > .btn-connect,
.navbar-actions > .btn-discord,
.navbar-actions > .user-panel {
    min-height: 2.2rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    justify-self: start;
    gap: 0.6rem;
    color: var(--text-bright);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.brand-logo {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.navbar-brand:hover .brand-logo { transform: scale(1.05) rotate(-3deg); }

.navbar-menu {
    display: flex;
    align-items: center;
    justify-self: center;
    gap: 0.55rem;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    padding: 0.38rem 0.72rem;
    min-height: 1.9rem;
    line-height: 1;
    border-radius: 0;
    font-size: 0.72rem;
    font-weight: 700;
    transition: color var(--transition-fast);
    position: relative;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: transparent;
}

.nav-link::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transform: translateX(-50%);
    transition: width var(--transition-fast);
    box-shadow: 0 0 10px var(--primary);
}

.nav-link:hover {
    color: var(--text-bright);
    background: transparent;
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link.active {
    color: var(--primary);
    background: transparent;
}

.nav-link.active::before {
    width: 100%;
}

/* Dropdown „Frakcje” — ten sam rytm co .nav-link */
.nav-dropdown {
    position: relative;
}

.navbar-menu .nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-muted);
    padding: 0.38rem 0.72rem;
    border-radius: 0;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    min-height: 1.9rem;
    line-height: 1;
    transition: color var(--transition-fast);
}

.navbar-menu .nav-dropdown-toggle::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transform: translateX(-50%);
    transition: width var(--transition-fast);
    box-shadow: 0 0 10px var(--primary);
}

.navbar-menu .nav-dropdown:hover .nav-dropdown-toggle,
.navbar-menu .nav-dropdown.open .nav-dropdown-toggle {
    color: var(--text-bright);
}

.navbar-menu .nav-dropdown:hover .nav-dropdown-toggle::before,
.navbar-menu .nav-dropdown.open .nav-dropdown-toggle::before {
    width: 100%;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.1rem);
    left: 0;
    min-width: 220px;
    padding: 0.45rem;
    background: rgba(8, 8, 12, 0.98);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
    z-index: 1100;
}

.nav-dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 0.6rem;
}

.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.75rem;
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.nav-dropdown-item i {
    width: 1.1rem;
    text-align: center;
    color: var(--primary-light);
}

.nav-dropdown-item:hover {
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    color: var(--text-bright);
}

/* Ikony w linkach navbaru wyłączone (zostają ikony w przyciskach Połącz/Zaloguj się) */
.navbar-menu .nav-link i,
.navbar-menu .nav-dropdown-toggle i {
    display: none;
}

@media (max-width: 768px) {
    .navbar-menu .nav-dropdown {
        width: 100%;
    }

    .navbar-menu .nav-dropdown-toggle {
        width: 100%;
        justify-content: flex-start;
    }

    .navbar-menu .nav-dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 0.35rem;
        transform: none;
        box-shadow: none;
        display: none;
    }

    .navbar-menu .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }
}

.nav-faction { font-size: 0.78rem; padding: 0.35rem 0.65rem; }
.nav-panel { color: var(--primary-light) !important; font-weight: 600 !important; }

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

.navbar-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: var(--transition);
}

/* User Panel */
.navbar-user { position: relative; }

.user-panel {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    padding: 0.24rem 0.55rem 0.24rem 0.28rem;
    border-radius: 7px;
    background: rgba(10, 10, 12, 0.62);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    width: max-content;
    max-width: min(280px, 30vw);
}

.user-panel:hover {
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    border-color: var(--border-hover);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 5px;
    border: 1px solid var(--primary);
    object-fit: cover;
    box-shadow: 0 0 0 2px rgba(168, 0, 92, 0.15);
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    min-width: 0;
}
.user-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-bright);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-role {
    font-size: 0.56rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.6rem;
    background: rgba(12, 12, 16, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-width: 200px;
    padding: 0.35rem;
    box-shadow: var(--shadow-card), var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
}

.user-dropdown a { border-radius: var(--radius-sm); }

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

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    transition: var(--transition);
}

.user-dropdown a:hover {
    color: var(--text-bright);
    background: color-mix(in srgb, var(--primary) 10%, transparent);
}

.btn-discord {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #5865F2;
    color: white;
    padding: 0.42rem 0.92rem;
    min-height: 2.2rem;
    min-width: 132px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.72rem;
    transition: var(--transition);
    border: 1px solid rgba(88, 101, 242, 0.35);
    cursor: pointer;
}

.btn-discord:hover {
    background: #4752c4;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

/* BUTTONS */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.92rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.2s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    isolation: isolate;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.btn:hover::after { transform: translateX(120%); }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.78rem; }
.btn-lg { padding: 1rem 2.4rem; font-size: 1rem; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 14px -4px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px -6px var(--primary-glow);
    color: white;
}

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

.btn-outline:hover {
    border-color: var(--border-hover);
    color: var(--text-bright);
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    transform: translateY(-2px);
}

.btn-success { background: #1a8a3e; color: white; }
.btn-success:hover { background: #16753a; color: white; box-shadow: 0 4px 12px rgba(26, 138, 62, 0.3); }
.btn-danger { background: #c92a2a; color: white; }
.btn-danger:hover { background: #b02525; color: white; box-shadow: 0 4px 12px rgba(201, 42, 42, 0.3); }

.btn-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light), var(--primary));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
    filter: blur(8px);
}

.btn-glow:hover::before { opacity: 0.4; }

/* HERO SECTION */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 6rem 1.5rem 4rem;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 30%, rgba(var(--primary-rgb), 0.22) 0%, transparent 45%),
        radial-gradient(circle at 82% 70%, rgba(var(--secondary-rgb), 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 110%, rgba(var(--primary-rgb), 0.14) 0%, transparent 60%),
        linear-gradient(180deg, transparent 60%, rgba(5, 5, 7, 0.92) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 960px;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 1.1rem;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.25);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #a7f3c6;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.pulse-dot { font-size: 0.5rem; animation: pulse 2s infinite; color: #4ade80; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-title {
    font-family: var(--font-display);
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.title-accent {
    font-size: clamp(3.2rem, 9vw, 6.5rem);
    font-weight: 800;
    letter-spacing: 4px;
    background: linear-gradient(135deg, #ffffff 0%, #ffd9eb 35%, var(--primary-light) 70%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    filter: drop-shadow(0 0 35px var(--primary-glow));
}

.title-sub {
    font-size: clamp(1.1rem, 3vw, 1.7rem);
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: 16px;
    margin-top: 0.4rem;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.hero-ip {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.55rem 0.55rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 999px;
    margin-bottom: 2.5rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
}

.hero-ip:hover { border-color: var(--border-hover); background: color-mix(in srgb, var(--primary) 6%, transparent); }
.hero-ip i.fa-server { color: var(--primary-light); }
.hero-ip-copy {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 18%, transparent);
    color: var(--primary-light);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1rem;
    max-width: 720px;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.1rem 1.3rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

.stat-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.22), rgba(var(--secondary-rgb), 0.08));
    border: 1px solid color-mix(in srgb, var(--primary) 28%, transparent);
    border-radius: var(--radius);
    color: var(--primary-light);
    font-size: 1.05rem;
    flex-shrink: 0;
}

.stat-number {
    font-family: var(--font-main);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text-bright);
    line-height: 1;
}

.stat-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 0.3rem;
}

.stat-info { display: flex; flex-direction: column; align-items: flex-start; }

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll a {
    color: var(--text-muted);
    font-size: 1.2rem;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* PAGE HERO (Subpages) */

.page-hero {
    padding: 7rem 2rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 40% 0%, color-mix(in srgb, var(--hero-accent, var(--primary)) 18%, transparent) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 20%, rgba(var(--secondary-rgb), 0.08) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--primary) 8%, transparent) 0%, transparent 70%);
}

.page-hero-content h1 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 0.4rem;
    letter-spacing: 0.5px;
}

.page-hero-content h1 i { color: var(--hero-accent, var(--primary-light)); margin-right: 0.4rem; }
.page-hero-content p { color: var(--text-muted); font-size: 0.95rem; font-weight: 300; }

/* SECTIONS */

.section {
    padding: 5rem 0;
    position: relative;
    z-index: 1;
}

.section-dark { background: var(--bg-section); }

.section-header { text-align: center; margin-bottom: 3.5rem; }

.section-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--primary-light);
    background: rgba(168, 0, 92, 0.08);
    padding: 0.3rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 1rem;
    letter-spacing: -0.3px;
}

.section-line {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    margin: 0 auto;
}

/* ABOUT CARDS */

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

.about-card {
    background: linear-gradient(160deg, var(--bg-card) 0%, var(--bg-section) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.2rem 1.6rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
    opacity: 0;
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.about-card:hover::before { opacity: 1; }

.card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.18), rgba(var(--secondary-rgb), 0.06));
    border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
    border-radius: var(--radius);
    margin: 0 auto 1.2rem;
    font-size: 1.4rem;
    color: var(--primary-light);
    transition: var(--transition);
}

.about-card:hover .card-icon {
    background: color-mix(in srgb, var(--primary) 16%, transparent);
    transform: scale(1.05);
}

.about-card h3 {
    font-family: var(--font-main);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 0.4rem;
}

.about-card p { color: var(--text-muted); font-size: 0.85rem; font-weight: 300; }

/* FACTION CARDS (home page) */

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

.faction-card {
    background: linear-gradient(155deg, var(--bg-card) 0%, var(--bg-section) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.2rem 1.3rem 1.6rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    isolation: isolate;
}

.faction-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(255, 255, 255, 0.02) 100%);
    pointer-events: none;
    z-index: -1;
}

.faction-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    opacity: 0;
    transition: opacity 0.5s ease;
    filter: blur(90px);
    pointer-events: none;
}

.faction-card:hover .faction-card-glow { opacity: 0.12; }

.faction-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.faction-icon {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    transition: var(--transition);
}

.faction-card:hover .faction-icon { transform: scale(1.1); }

.faction-name {
    font-family: var(--font-main);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: 2px;
}

.faction-fullname {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 300;
}

/* APPLICATIONS LIST */

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

/* Home: boxy podań jak na /applications.php (nie zależne od .page-applications) */
.home-applications-section {
    position: relative;
    overflow: hidden;
}

.home-applications-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% -10%, rgba(var(--primary-rgb), 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 30%, rgba(var(--secondary-rgb), 0.04) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 60%, rgba(var(--primary-rgb), 0.03) 0%, transparent 44%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 1) 100%);
    pointer-events: none;
    z-index: 0;
}

.home-applications-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1200px circle at 50% 10%, rgba(255, 255, 255, 0.002), transparent 52%),
        radial-gradient(900px circle at 50% 90%, rgba(0, 0, 0, 1), transparent 52%);
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: overlay;
    opacity: 1;
}

.home-applications-section .container {
    position: relative;
    z-index: 1;
}

.home-applications-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.6rem;
}

@media (min-width: 1200px) {
    .home-applications-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.home-applications-grid .application-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    padding: 0;
    border-radius: var(--radius-xl, 20px);
    background: rgba(8, 8, 8, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    min-height: 100%;
    transform: none;
    transition: transform 0.35s ease, border-color 0.25s ease, box-shadow 0.35s ease;
}

.home-applications-grid .application-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--faction-color, var(--primary)), transparent);
    opacity: 0.85;
    z-index: 2;
    pointer-events: none;
}

.home-applications-grid .application-card:hover::before {
    height: 4px;
    opacity: 1;
}

.home-applications-grid .application-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.65);
}

.home-applications-grid .app-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.35rem 1.35rem 0;
}

.home-applications-grid .app-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 1.45rem;
    color: var(--faction-color, var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-applications-grid .application-card:hover .app-card-icon {
    transform: scale(1.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.home-applications-grid .app-card-body {
    padding: 1.15rem 1.35rem 1rem;
    flex: 1;
}

.home-applications-grid .app-card-body h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-bright);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.45rem;
}

.home-applications-grid .app-card-body p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 0.85rem;
}

.home-applications-grid .app-card-requirements {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.home-applications-grid .app-card-requirements span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.55rem;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.home-applications-grid .app-card-requirements span i {
    color: var(--primary);
    font-size: 0.8rem;
}

.home-applications-grid .app-card-footer {
    padding: 0 1.35rem 1.35rem;
    margin-top: auto;
}

.home-applications-grid .app-card-apply {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: var(--radius-lg);
    background: var(--primary);
    color: var(--bg-darker);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background var(--transition), transform var(--transition-fast), box-shadow var(--transition);
}

.home-applications-grid .application-card:hover .app-card-apply:not(.is-disabled) {
    background: var(--primary-light);
    box-shadow: 0 10px 28px rgba(var(--primary-rgb), 0.35);
}

.home-applications-grid .app-card-apply.is-disabled {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: not-allowed;
}

.home-applications-grid .application-card.is-disabled {
    opacity: 0.72;
    filter: grayscale(0.25);
}

.home-applications-grid .application-card.is-disabled:hover {
    transform: none;
    box-shadow: none;
}

.application-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.3rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    color: var(--text);
}

.app-card-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--card-color);
    transition: var(--transition);
}

.application-card:hover .app-card-bg { width: 5px; }
.application-card:hover { transform: translateX(4px); border-color: var(--border-hover); color: var(--text-bright); }

.app-card-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--card-color, var(--primary)) 12%, transparent);
    border-radius: 10px;
    font-size: 1.2rem;
    color: var(--card-color);
    flex-shrink: 0;
    border: 1px solid color-mix(in srgb, var(--card-color, var(--primary)) 22%, transparent);
}

.app-card-content h3 { font-family: var(--font-main); font-size: 1.05rem; font-weight: 600; color: var(--text-bright); }
.app-card-content p { font-size: 0.75rem; color: var(--text-muted); font-weight: 300; }
.app-card-arrow { margin-left: auto; color: var(--text-muted); transition: var(--transition); }
.application-card:hover .app-card-arrow { color: var(--primary-light); transform: translateX(4px); }

/* FORM CARD & INPUTS */

.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.form-header {
    padding: 1.8rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid var(--primary-dark);
}

.form-icon { font-size: 2.2rem; margin-bottom: 0.6rem; }

.form-header h2 {
    font-family: var(--font-main);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-bright);
}

.form-header p { color: var(--text-muted); font-size: 0.82rem; }
.application-form { padding: 1.8rem; }

/* Form category (OOC / IC) */
.form-category {
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.form-category-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1rem;
    background: rgba(168, 0, 92, 0.08);
    border-bottom: 1px solid rgba(168, 0, 92, 0.12);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-light);
}

.form-category-header i {
    font-size: 0.8rem;
}

.form-category-header small {
    font-weight: 400;
    opacity: 0.6;
    letter-spacing: 0.5px;
}

.form-category .form-group {
    padding: 0 1.2rem;
}

.form-category .form-group:first-of-type {
    padding-top: 1.2rem;
}

.form-category .form-group:last-child {
    padding-bottom: 0.5rem;
}

/* Category labels in panel review */
.pac-category-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    margin: 0.6rem 0 0.3rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-light);
    border-bottom: 1px solid rgba(168, 0, 92, 0.1);
}

.pac-category-label i {
    font-size: 0.7rem;
}

.form-group { margin-bottom: 1.3rem; }

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.82rem;
    color: var(--text-bright);
    margin-bottom: 0.4rem;
}

.required { color: var(--primary-light); }

.form-input {
    width: 100%;
    padding: 0.65rem 0.9rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-main);
    font-size: 0.85rem;
    transition: var(--transition);
    resize: vertical;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(168, 0, 92, 0.12);
}

.form-input::placeholder { color: var(--text-muted); opacity: 0.5; }

/* Criminal Type Radio Cards */
.criminal-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.radio-card { cursor: pointer; }
.radio-card input { display: none; }

.radio-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1.3rem 0.8rem;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    text-align: center;
}

.radio-card-content i { font-size: 1.3rem; color: var(--text-muted); transition: var(--transition); }
.radio-card-content span { font-weight: 500; font-size: 0.82rem; }

.radio-card input:checked + .radio-card-content {
    border-color: var(--primary);
    background: rgba(168, 0, 92, 0.08);
    box-shadow: 0 0 15px rgba(168, 0, 92, 0.1);
}

.radio-card input:checked + .radio-card-content i { color: var(--primary-light); }
.radio-card:hover .radio-card-content { border-color: rgba(168, 0, 92, 0.3); }

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    margin-top: 1rem;
}

/* CUSTOM SELECT */

.custom-select {
    position: relative;
    user-select: none;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 0.9rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-main);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    min-height: 40px;
}

.custom-select-trigger:hover { border-color: rgba(255, 255, 255, 0.1); }

.custom-select.open .custom-select-trigger {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(168, 0, 92, 0.12);
}

.custom-select-trigger .arrow {
    font-size: 0.6rem;
    color: var(--text-muted);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.custom-select.open .custom-select-trigger .arrow { transform: rotate(180deg); }

.custom-select-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 100;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-4px);
    transition: max-height 0.25s ease, opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.custom-select.open .custom-select-options {
    max-height: 260px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    overflow-y: auto;
}

.custom-select-option {
    padding: 0.55rem 0.9rem;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.custom-select-option:hover {
    background: rgba(168, 0, 92, 0.08);
    color: var(--text-bright);
}

.custom-select-option.selected {
    color: var(--primary-light);
    background: rgba(168, 0, 92, 0.06);
    font-weight: 500;
}

.custom-select-option .option-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0;
    flex-shrink: 0;
}

.custom-select-option.selected .option-dot { opacity: 1; }

/* Hidden native select (for form submission) */
.custom-select select { display: none; }

/* ALERTS & BADGES */

.alert {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
}

.alert-success {
    background: rgba(26, 138, 62, 0.08);
    border: 1px solid rgba(26, 138, 62, 0.2);
    color: #4ade80;
}

.alert-success i { font-size: 1.2rem; }
.alert h3 { margin-bottom: 0.2rem; color: var(--text-bright); }

.badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.badge-warning { background: rgba(255, 193, 7, 0.12); color: #ffc107; }
.badge-success { background: rgba(40, 167, 69, 0.12); color: #4ade80; }
.badge-danger { background: rgba(220, 53, 69, 0.12); color: #f87171; }

/* MY APPLICATIONS */

.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-state i { font-size: 2.5rem; color: var(--text-muted); margin-bottom: 1rem; display: block; }
.empty-state h3 { color: var(--text-bright); margin-bottom: 0.4rem; }
.empty-state p { color: var(--text-muted); margin-bottom: 1.5rem; font-weight: 300; }

.apps-list { display: flex; flex-direction: column; gap: 0.8rem; }

.app-row {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.3rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    transition: var(--transition);
}

.app-row:hover { border-color: var(--border-hover); }

.app-row-info { flex: 1; }
.app-row-info h3 { font-family: var(--font-main); font-size: 1.05rem; color: var(--text-bright); }
.app-row-info h3 i { color: var(--primary-light); margin-right: 0.3rem; }
.app-date { font-size: 0.75rem; color: var(--text-muted); }

.app-row-note {
    width: 100%;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* FACTION LAYOUT & SUBPAGES */

.faction-layout {
    display: flex;
    min-height: calc(100vh - 200px);
    position: relative;
    z-index: 1;
}

.faction-sidebar {
    width: 240px;
    background: transparent;
    border-right: 1px solid var(--border);
    padding: 1.2rem 0;
    flex-shrink: 0;
    min-height: calc(100vh - 80px);
    position: relative;
    transition: width 0.3s ease, padding 0.3s ease;
}

.faction-sidebar.collapsed {
    width: 58px;
    padding: 1.2rem 0;
}

.faction-sidebar.collapsed .faction-sidebar-header,
.faction-sidebar.collapsed .nav-label,
.faction-sidebar.collapsed .nav-badge {
    display: none;
}

.faction-sidebar.collapsed .faction-nav-link {
    justify-content: center;
    padding: 0.7rem;
    font-size: 1rem;
}

.faction-sidebar.collapsed .faction-nav-link i {
    margin: 0;
}

/* Sidebar toggle button */
.sidebar-toggle {
    position: absolute;
    top: 12px;
    right: -13px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-dark);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    transition: var(--transition);
    z-index: 10;
}

.sidebar-toggle:hover {
    color: var(--text-bright);
    border-color: var(--primary);
    background: var(--bg-card);
}

.faction-sidebar.collapsed .sidebar-toggle i {
    transform: rotate(180deg);
}

.faction-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 0.6rem; }

.faction-nav-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0.9rem;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.faction-nav-link:hover { color: var(--text-bright); background: rgba(255, 255, 255, 0.02); }

.faction-nav-link.active {
    color: var(--text-bright);
    background: rgba(168, 0, 92, 0.1);
}

.faction-nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 55%;
    background: var(--primary);
}

.nav-badge {
    margin-left: auto;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    padding: 0.1rem 0.45rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.faction-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

/* Faction panel header */
.faction-panel h2 {
    font-family: var(--font-main);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    letter-spacing: 1px;
}

.faction-panel h2 i { color: var(--primary-light); margin-right: 0.4rem; }

/* Dashboard Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.dash-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.dash-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-dark), transparent);
    opacity: 0;
    transition: var(--transition);
}

.dash-card:hover { border-color: var(--border-hover); }
.dash-card:hover::after { opacity: 1; }

.dash-card-icon { font-size: 1.6rem; }
.dash-card-label { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.dash-card-value { font-family: var(--font-main); font-size: 1.15rem; font-weight: 700; color: var(--text-bright); }
.dash-card-info { display: flex; flex-direction: column; }

.dash-welcome {
    background: rgba(168, 0, 92, 0.03);
    border: 1px solid rgba(168, 0, 92, 0.1);
    border-radius: var(--radius);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.dash-welcome::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: var(--primary);
}

.dash-welcome h3 { color: var(--text-bright); margin-bottom: 0.4rem; font-size: 1rem; }
.dash-welcome p { color: var(--text-muted); font-size: 0.85rem; font-weight: 300; }

/* Compendium */
.compendium-notice {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem;
    background: rgba(255, 193, 7, 0.05);
    border: 1px solid rgba(255, 193, 7, 0.15);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    color: #ffc107;
    font-size: 0.82rem;
}

.compendium-placeholder h3 {
    font-family: var(--font-main);
    color: var(--text-bright);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.compendium-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.compendium-list li {
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.compendium-list li i { color: var(--primary-light); font-size: 0.7rem; transition: var(--transition); }
.compendium-list li:hover { border-color: var(--border-hover); color: var(--text-bright); transform: translateX(4px); }
.compendium-list li:hover i { transform: translateX(2px); }

/* BADGES */

.badges-add-form {
    margin-bottom: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
}

.badges-add-row {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.badges-add-row .form-input { flex: 1; min-width: 0; }
.badges-add-unit { flex: 0 0 110px !important; }
.badges-add-row .btn { white-space: nowrap; flex-shrink: 0; }

/* Table */
.badges-table-wrap {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.badges-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.badges-table thead {
    background: rgba(168, 0, 92, 0.08);
}

.badges-table th {
    padding: 0.7rem 1rem;
    text-align: center;
    color: var(--primary-light);
    font-weight: 700;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 1px solid rgba(168, 0, 92, 0.12);
}

.badges-table td {
    padding: 0.6rem 1rem;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.badges-table tbody tr { transition: var(--transition); }
.badges-table tbody tr:hover { background: rgba(168, 0, 92, 0.04); }
.badges-table tbody tr:last-child td { border-bottom: none; }

/* Unit tag */
.badge-unit-tag {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    color: var(--tag-color, var(--primary-light));
    background: color-mix(in srgb, var(--tag-color, var(--primary)) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--tag-color, var(--primary)) 22%, transparent);
    line-height: 1.4;
}

.badges-col-number {
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: 0.5px;
}

.badges-col-rank {
    font-weight: 600;
    color: var(--text-bright);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.78rem;
}

.badges-col-actions {
    display: flex;
    gap: 0.35rem;
    justify-content: center;
    align-items: center;
}

.btn-icon {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    transition: var(--transition);
}

.btn-icon-edit:hover {
    color: #ffc107;
    border-color: rgba(255, 193, 7, 0.3);
    background: rgba(255, 193, 7, 0.08);
}

.btn-icon-delete:hover {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.3);
    background: rgba(248, 113, 113, 0.08);
}

.badges-count {
    margin-top: 0.8rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
}

.badges-count strong { color: var(--primary-light); }

/* Training tags in table */
.badges-col-trainings {
    white-space: normal;
}

.badge-training-tag {
    display: inline-block;
    padding: 0.12rem 0.45rem;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 3px;
    color: var(--tag-color, #999);
    background: color-mix(in srgb, var(--tag-color, #999) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--tag-color, #999) 22%, transparent);
    margin: 1px 2px;
    line-height: 1.5;
}

/* Training checkboxes (add form + modal) */
.badges-add-trainings {
    margin-top: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.badges-trainings-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-right: 0.3rem;
}

.modal-trainings {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.training-checkbox {
    cursor: pointer;
    user-select: none;
}

.training-checkbox input { display: none; }

.training-checkbox-box {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 3px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    transition: var(--transition);
    line-height: 1.5;
}

.training-checkbox input:checked + .training-checkbox-box {
    color: var(--tc-color, var(--primary-light));
    background: color-mix(in srgb, var(--tc-color, var(--primary)) 12%, transparent);
    border-color: color-mix(in srgb, var(--tc-color, var(--primary)) 30%, transparent);
}

.training-checkbox-box:hover {
    border-color: var(--tc-color, var(--border-hover));
    color: var(--tc-color, var(--text-bright));
}

/* MODAL */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 90%;
    max-width: 480px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), var(--shadow-glow);
    animation: modalSlideUp 0.25s ease;
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: rgba(168, 0, 92, 0.04);
}

.modal-header h3 {
    font-size: 1rem;
    color: var(--text-bright);
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.modal-close:hover {
    color: var(--text-bright);
    background: rgba(255, 255, 255, 0.05);
}

.modal-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-body .form-group label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
}

/* COMPENDIUM - editable sections */

.compendium-sections { display: flex; flex-direction: column; gap: 0.8rem; }

.comp-section {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.comp-section:hover { border-color: var(--border-hover); }

.comp-section-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 1rem;
    background: rgba(168, 0, 92, 0.08);
    border-bottom: 1px solid rgba(168, 0, 92, 0.12);
    transition: var(--transition);
    position: relative;
}

.comp-section-header i {
    color: var(--primary-light);
    font-size: 0.8rem;
}

.comp-section-header h3 {
    font-family: var(--font-main);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--primary-light);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.comp-section-body {
    padding: 1rem 1.2rem;
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 300;
    line-height: 1.7;
}

.comp-edit-btn {
    margin-left: auto;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.72rem;
    transition: var(--transition);
    border: 1px solid transparent;
    opacity: 0;
}

.comp-section:hover .comp-edit-btn {
    opacity: 1;
}

.comp-edit-btn:hover {
    color: var(--primary-light);
    border-color: var(--border-hover);
    background: rgba(168, 0, 92, 0.08);
}

.comp-editing-badge {
    margin-left: auto;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ffc107;
    background: rgba(255, 193, 7, 0.08);
    border: 1px solid rgba(255, 193, 7, 0.2);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
}

.comp-section-editing {
    border-color: rgba(255, 193, 7, 0.25);
}

.comp-section-editing .comp-section-header {
    background: rgba(255, 193, 7, 0.06);
    border-bottom-color: rgba(255, 193, 7, 0.12);
}

.comp-edit-form {
    padding: 0 1.2rem 1.2rem 1.2rem;
}

.comp-textarea {
    width: 100%;
    min-height: 200px;
    resize: vertical;
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.comp-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.comp-empty {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.82rem;
}

.comp-meta {
    margin-top: 0.8rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--border);
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.comp-meta i {
    color: var(--primary-light);
    opacity: 0.6;
    margin-right: 0.2rem;
}

@media (max-width: 700px) {
    .badges-add-row {
        flex-direction: column;
    }
    .badges-add-row .btn { width: 100%; }
    .badges-add-unit { flex: 1 1 100% !important; }

    .badges-table-wrap { overflow-x: auto; }
    .badges-table { min-width: 500px; }

    .comp-edit-btn { opacity: 1; }
}

/* Hierarchy Categories */

.hierarchy-category {
    margin-bottom: 1.5rem;
}

.hierarchy-category:last-child {
    margin-bottom: 0;
}

.hierarchy-category-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    background: color-mix(in srgb, var(--cat-color, var(--primary)) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--cat-color, var(--primary)) 18%, transparent);
    border-radius: var(--radius);
    margin-bottom: 0.6rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--cat-color, var(--primary-light));
}

.hierarchy-category-header i {
    font-size: 0.8rem;
}

/* Ranks */
.management-section h3 {
    font-family: var(--font-main);
    color: var(--text-bright);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.ranks-list { display: flex; flex-direction: column; gap: 0.5rem; }

.rank-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.rank-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: rgba(168, 0, 92, 0.04);
    transition: var(--transition);
}

.rank-item:hover::before { width: 100%; }
.rank-item:hover { border-color: var(--border-hover); }

.rank-badge {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 0.75rem;
    position: relative;
}

.rank-name { font-weight: 600; color: var(--text-bright); font-size: 0.9rem; }
.rank-id { font-size: 0.7rem; color: var(--text-muted); font-family: monospace; }
.rank-info { display: flex; flex-direction: column; }

/* Application Review Cards (faction page) */
.application-review-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.8rem;
    overflow: hidden;
}

.arc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.1rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border);
}

.arc-user strong { color: var(--text-bright); }
.arc-date { font-size: 0.75rem; color: var(--text-muted); margin-left: 0.4rem; }
.arc-body { padding: 1.1rem; }
.arc-field { margin-bottom: 0.8rem; }
.arc-field label { font-weight: 600; color: var(--primary-light); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; }
.arc-field p { color: var(--text); font-size: 0.85rem; margin-top: 0.2rem; }
.arc-actions { padding: 0.8rem 1.1rem; border-top: 1px solid var(--border); }
.arc-buttons { display: flex; gap: 0.4rem; margin-top: 0.6rem; }

/* FACTION SUBPAGE */

/* Hero badge */
.faction-hero-badge {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid;
    border-radius: var(--radius);
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

/* Sidebar header */
.faction-sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.2rem 1rem 1rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.fsb-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.fsb-info { display: flex; flex-direction: column; }
.fsb-name { font-family: var(--font-main); font-weight: 700; font-size: 0.95rem; color: var(--text-bright); letter-spacing: 1px; }
.fsb-role { font-size: 0.68rem; color: var(--text-muted); }

/* Panel desc */
.faction-panel-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    margin-top: -1rem;
}

/* Quick Links */
.dash-quick-links { margin-top: 1.5rem; }
.dash-quick-links h3 {
    font-family: var(--font-main);
    color: var(--text-bright);
    font-size: 1rem;
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.8rem;
}

.quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 1.3rem 1rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    text-align: center;
    transition: var(--transition);
}

.quick-link-card i {
    font-size: 1.3rem;
    color: var(--primary-light);
    margin-bottom: 0.3rem;
    transition: var(--transition);
}

.quick-link-card span { font-weight: 600; font-size: 0.88rem; color: var(--text-bright); }
.quick-link-card small { font-size: 0.7rem; color: var(--text-muted); font-weight: 300; }

.quick-link-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    color: var(--text-bright);
}

.quick-link-card:hover i { transform: scale(1.15); }

/* Rank Position Number */
.rank-position {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.rank-top .rank-position { color: #ffd700; background: rgba(255, 215, 0, 0.08); }

.rank-mgmt-badge {
    margin-left: auto;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-light);
    padding: 0.15rem 0.5rem;
    border: 1px solid rgba(168, 0, 92, 0.2);
    border-radius: var(--radius-sm);
}

.rank-top { border-color: rgba(255, 215, 0, 0.15) !important; }

/* Management Grid */
.management-grid { display: grid; }
.mgmt-section h3 {
    font-family: var(--font-main);
    color: var(--text-bright);
    font-size: 1.05rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ADMIN PANEL - PODANIA */

.panel-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.panel-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition);
}

.panel-stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

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

.psc-info { display: flex; flex-direction: column; }

.psc-number {
    font-family: var(--font-main);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-bright);
    line-height: 1;
}

.psc-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Panel Filters */
.panel-filters {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.3rem;
    margin-bottom: 1.5rem;
}

.filters-form {
    display: flex;
    align-items: flex-end;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.filter-group { display: flex; flex-direction: column; gap: 0.35rem; flex: 1; min-width: 180px; }

.filter-group label {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-group label i { color: var(--primary-light); margin-right: 0.3rem; }

.filter-count { flex: 0 0 auto; min-width: auto; justify-content: flex-end; }

.results-count {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
    padding: 0.65rem 0;
}

/* Panel App Cards */
.panel-applications { display: flex; flex-direction: column; gap: 0.8rem; }

.panel-app-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.panel-app-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--pcard-color, var(--primary));
    transition: var(--transition);
}

.panel-app-card:hover { border-color: var(--border-hover); }
.panel-app-card:hover::before { width: 4px; }

.pac-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.3rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border);
}

.pac-faction { display: flex; align-items: center; gap: 0.7rem; }

.pac-faction-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 1rem;
    flex-shrink: 0;
}

.pac-faction-name {
    display: block;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-bright);
    letter-spacing: 1px;
}

.pac-faction-full { display: block; font-size: 0.7rem; color: var(--text-muted); font-weight: 300; }
.pac-meta { display: flex; align-items: center; gap: 0.6rem; }

.pac-id {
    font-family: monospace;
    font-size: 0.72rem;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.3);
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-sm);
}

.pac-applicant {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1.3rem;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.pac-applicant-info { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; }
.pac-applicant-info strong { color: var(--text-bright); }
.pac-discord-id { font-size: 0.7rem; color: var(--text-muted); font-family: monospace; }
.pac-date { font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.3rem; }
.pac-date-full { font-size: 0.65rem; opacity: 0.5; }

/* Expandable details */
.pac-details { border-top: 1px solid var(--border); }

.pac-summary {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.3rem;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    list-style: none;
    user-select: none;
}

.pac-summary::-webkit-details-marker { display: none; }
.pac-summary:hover { color: var(--text-bright); background: rgba(255, 255, 255, 0.015); }
.pac-summary i { font-size: 0.65rem; transition: transform 0.2s ease; }
.pac-details[open] .pac-summary i { transform: rotate(90deg); }
.pac-fields-count { font-size: 0.7rem; color: var(--text-muted); opacity: 0.4; margin-left: auto; }

.pac-body {
    padding: 0 1.3rem 1rem;
    animation: slideDown 0.25s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.pac-field {
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.pac-field:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.pac-field label {
    display: block;
    font-weight: 600;
    font-size: 0.7rem;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.pac-field-value { color: var(--text); font-size: 0.85rem; line-height: 1.6; white-space: pre-wrap; }

.pac-review {
    padding: 0.7rem 1.3rem;
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid var(--border);
}

.pac-review-info {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.2rem;
}

.pac-review-info i { color: var(--primary-light); }
.pac-review-info strong { color: var(--text-bright); }
.pac-review-date { margin-left: auto; font-size: 0.7rem; }

.pac-review-note {
    font-size: 0.82rem;
    color: var(--text);
    padding: 0.4rem 0.7rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    border-left: 2px solid var(--primary);
    margin-top: 0.4rem;
}

.pac-review-note i { color: var(--text-muted); margin-right: 0.2rem; font-size: 0.75rem; }

.pac-actions {
    padding: 0.9rem 1.3rem;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.1);
}

.pac-note-row { margin-bottom: 0.6rem; }
.pac-note-input { padding: 0.55rem 0.8rem; font-size: 0.82rem; }

.pac-action-buttons { display: flex; gap: 0.4rem; }

.pac-btn {
    flex: 1;
    justify-content: center;
    padding: 0.55rem 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.pac-btn:hover { transform: translateY(-1px); }

/* CTA SECTION */

.cta-box {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(168, 0, 92, 0.08), rgba(12, 12, 16, 0.6));
    border: 1px solid rgba(168, 0, 92, 0.2);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.cta-bg-effect {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 30%, rgba(var(--primary-rgb), 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 70%, rgba(var(--secondary-rgb), 0.14) 0%, transparent 55%);
    pointer-events: none;
}

.cta-box h2 {
    font-family: var(--font-main);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 0.8rem;
    position: relative;
    letter-spacing: -0.5px;
}

.cta-box p { color: var(--text-muted); margin-bottom: 1.5rem; position: relative; font-weight: 300; }

/* FOOTER */

.footer {
    padding: 3.5rem 0 1.5rem;
    background: var(--bg-section);
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.footer-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: var(--primary);
    box-shadow: 0 0 30px 8px var(--primary-glow);
}

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

.footer-brand {
    font-family: var(--font-main);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 0.6rem;
}

.footer-brand i { color: var(--primary-light); }
.footer-logo { width: 28px; height: 28px; border-radius: var(--radius-sm); object-fit: cover; vertical-align: middle; margin-right: 0.3rem; }
.footer-desc { color: var(--text-muted); font-size: 0.82rem; margin-bottom: 0.8rem; font-weight: 300; }

.footer-social { display: flex; gap: 0.4rem; }

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    transition: var(--transition);
    padding: 0;
    font-size: 1rem;
}

.footer-social a:hover {
    color: var(--primary-light);
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.footer-col h4 {
    font-family: var(--font-main);
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 0.6rem;
    letter-spacing: 1px;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    font-size: 0.82rem;
    padding: 0.25rem 0;
    transition: var(--transition);
}

.footer-col a:hover { color: var(--primary-light); transform: translateX(3px); }

.server-ip {
    font-family: monospace;
    font-size: 0.82rem;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.4);
    padding: 0.45rem 0.7rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.server-ip i { color: var(--primary-light); margin-right: 0.3rem; }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.2rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* SCROLL REVEAL ANIMATIONS */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.animate-field {
    opacity: 0;
    transform: translateY(15px);
    animation: fieldAppear 0.5s ease forwards;
}

.animate-field:nth-child(1) { animation-delay: 0.1s; }
.animate-field:nth-child(2) { animation-delay: 0.15s; }
.animate-field:nth-child(3) { animation-delay: 0.2s; }
.animate-field:nth-child(4) { animation-delay: 0.25s; }
.animate-field:nth-child(5) { animation-delay: 0.3s; }
.animate-field:nth-child(6) { animation-delay: 0.35s; }
.animate-field:nth-child(7) { animation-delay: 0.4s; }

@keyframes fieldAppear {
    to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */

@media (max-width: 1024px) {
    .faction-layout { flex-direction: column; }
    .faction-sidebar {
        width: 100% !important;
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 0.8rem 0;
    }
    .faction-sidebar-header { display: none; }
    .sidebar-toggle { display: none; }
    .faction-nav { flex-direction: row; overflow-x: auto; gap: 0.4rem; padding: 0 0.8rem; }
    .faction-nav-link { white-space: nowrap; }
    .faction-nav-link.active::before { display: none; }
    .faction-sidebar.collapsed .nav-label,
    .faction-sidebar.collapsed .nav-badge { display: inline; }
    .faction-sidebar.collapsed .faction-nav-link { justify-content: flex-start; padding: 0.65rem 0.9rem; font-size: 0.82rem; }
}

@media (max-width: 768px) {
    .navbar-toggle { display: flex; }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(5, 5, 7, 0.98);
        backdrop-filter: blur(20px);
        padding: 0.8rem;
        flex-direction: column;
        border-bottom: 1px solid var(--border);
    }

    .navbar-menu.open { display: flex; }
    .hero-stats { gap: 0.8rem; }
    .stat-item { padding: 0.7rem 0.9rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .criminal-type-grid { grid-template-columns: 1fr; }
    .form-actions { flex-direction: column; gap: 0.6rem; }
    .form-actions .btn { width: 100%; justify-content: center; }
    .section { padding: 3rem 0; }
    .panel-stats { grid-template-columns: repeat(2, 1fr); }
    .filters-form { flex-direction: column; }
    .filter-group { min-width: 100%; }
    .pac-header { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
    .pac-applicant { flex-direction: column; align-items: flex-start; }
    .pac-action-buttons { flex-direction: column; }
}

@media (max-width: 480px) {
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
    .user-info { display: none; }
    .panel-stats { grid-template-columns: 1fr; }
}

/* Toast Notifications */

#toast-container {
    position: fixed;
    top: 80px;
    right: 1.5rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 400px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 1.1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    font-size: 0.85rem;
    color: var(--text);
    pointer-events: auto;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-visible { opacity: 1; transform: translateX(0); }
.toast-removing { opacity: 0; transform: translateX(40px); }

.toast-icon { font-size: 1.1rem; flex-shrink: 0; }
.toast-message { flex: 1; line-height: 1.4; }

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0 0.2rem;
    flex-shrink: 0;
    transition: var(--transition);
}
.toast-close:hover { color: var(--text-bright); }

.toast-success { border-left: 3px solid #4ade80; }
.toast-success .toast-icon { color: #4ade80; }
.toast-error { border-left: 3px solid #f87171; }
.toast-error .toast-icon { color: #f87171; }
.toast-warning { border-left: 3px solid #ffc107; }
.toast-warning .toast-icon { color: #ffc107; }
.toast-info { border-left: 3px solid #60a5fa; }
.toast-info .toast-icon { color: #60a5fa; }

/* Confirm Dialog */

.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.confirm-overlay.confirm-visible { opacity: 1; }

.confirm-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-width: 420px;
    width: 90%;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

.confirm-visible .confirm-box { transform: scale(1); }

.confirm-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    color: var(--text-bright);
    font-size: 0.95rem;
}

.confirm-header i { color: var(--primary-light); margin-right: 0.4rem; }

.confirm-body {
    padding: 1.25rem;
    color: var(--text);
    font-size: 0.88rem;
    line-height: 1.6;
}

.confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    padding: 0.8rem 1.25rem;
    border-top: 1px solid var(--border);
}

/* Banroom */

.banroom-table-wrap {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.banroom-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.banroom-table thead { background: rgba(168, 0, 92, 0.08); }

.banroom-table th {
    padding: 0.75rem 1rem;
    text-align: center;
    color: var(--primary-light);
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 1px solid rgba(168, 0, 92, 0.12);
}

.banroom-table td {
    padding: 0.65rem 1rem;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.banroom-table tbody tr { transition: var(--transition); }
.banroom-table tbody tr:hover { background: rgba(168, 0, 92, 0.04); }
.banroom-table tbody tr:last-child td { border-bottom: none; }

.ban-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ban-status-active {
    background: rgba(220, 53, 69, 0.12);
    color: #f87171;
    border: 1px solid rgba(220, 53, 69, 0.25);
}

.ban-status-ended {
    background: rgba(40, 167, 69, 0.12);
    color: #4ade80;
    border: 1px solid rgba(40, 167, 69, 0.25);
}

.ban-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    display: inline-block;
}

.ban-status-active .ban-status-dot { background: #f87171; }
.ban-status-ended .ban-status-dot { background: #4ade80; }

/* Compendium Tables (custom) */

.comp-tables-list { display: flex; flex-direction: column; gap: 1rem; }

.comp-table-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.comp-table-card:hover { border-color: var(--border-hover); }

.comp-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem;
    background: rgba(168, 0, 92, 0.06);
    border-bottom: 1px solid rgba(168, 0, 92, 0.1);
}

.comp-table-header h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: 0.5px;
}

.comp-table-actions { display: flex; gap: 0.3rem; }

.comp-custom-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.comp-custom-table th {
    padding: 0.55rem 0.8rem;
    text-align: left;
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.15);
}

.comp-custom-table td {
    padding: 0.5rem 0.8rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.comp-custom-table tbody tr:last-child td { border-bottom: none; }
.comp-custom-table tbody tr:hover { background: rgba(168, 0, 92, 0.03); }

/* Application Template Editor */

.template-editor {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem;
    margin-bottom: 1rem;
}

.template-field-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.template-field-row .form-input { flex: 1; min-width: 0; }

.template-field-row .btn-icon { flex-shrink: 0; }

.template-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-light);
    margin: 1rem 0 0.5rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid rgba(168, 0, 92, 0.12);
}

/* REGULAMINY - CARDS GRID */

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

.reg-card {
    background: rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    color: var(--text);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.reg-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: var(--transition);
}

.reg-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.6s ease;
    filter: blur(60px);
    pointer-events: none;
}

.reg-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
    color: var(--text-bright);
}

.reg-card:hover::before { opacity: 1; }
.reg-card:hover .reg-card-glow { opacity: 0.06; }

.reg-card:hover .reg-card-icon {
    transform: scale(1.1);
}

.reg-card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.reg-card h3 {
    font-family: var(--font-main);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: 0.5px;
}

.reg-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    font-weight: 300;
}

/* REGULAMINY - LAYOUT (sidebar + content) */

.reg-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

.reg-sidebar {
    position: sticky;
    top: 90px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.2rem;
}

.reg-search-box {
    position: relative;
    margin-bottom: 1rem;
}

.reg-search-box i {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.8rem;
}

.reg-search-box .form-input {
    padding-left: 2.2rem;
    font-size: 0.82rem;
}

.reg-toc h4 {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
}

.toc-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.6rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    border-left: 2px solid transparent;
    margin-bottom: 2px;
}

.toc-link:hover, .toc-link.active {
    color: var(--text-bright);
    background: color-mix(in srgb, var(--primary) 8%, transparent);
    border-left-color: var(--primary);
}

.toc-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 0.68rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.toc-link-special { margin-top: 0.5rem; padding-top: 0.6rem; border-top: 1px solid var(--border); }

/* REGULAMINY - SECTIONS */

.reg-section {
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.reg-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    border-left: 3px solid var(--primary);
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.reg-section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 0.82rem;
    font-weight: 700;
    color: white;
    background: var(--primary);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.reg-section-header h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-bright);
}

.reg-section-body {
    padding: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text);
}

.reg-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.reg-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.reg-empty h3 {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

/* REGULAMINY - LIMITS TABLE */

.reg-limits-table-wrap {
    overflow-x: auto;
}

.reg-limits-table {
    width: 100%;
    border-collapse: collapse;
}

.reg-limits-table th {
    text-align: left;
    padding: 0.8rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border);
}

.reg-limits-table td {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.reg-limits-table tr:last-child td { border-bottom: none; }

.reg-limits-table tr:hover td {
    background: rgba(168, 0, 92, 0.04);
}

.limit-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: rgba(168, 0, 92, 0.15);
    color: var(--primary-light);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
}

.limit-badge-pd {
    background: rgba(26, 58, 107, 0.2);
    color: #5b9aff;
}

.limit-badge-crime {
    background: rgba(220, 53, 69, 0.15);
    color: #f87171;
}

/* CHANGELOG */

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

.changelog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    color: var(--text);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.changelog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: var(--transition);
}

.changelog-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.6s ease;
    filter: blur(60px);
    pointer-events: none;
}

.changelog-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
    color: var(--text-bright);
}

.changelog-card:hover::before { opacity: 1; }
.changelog-card:hover .changelog-card-glow { opacity: 0.06; }
.changelog-card:hover .changelog-card-icon { transform: scale(1.1); }

.changelog-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168, 0, 92, 0.08);
    border-radius: var(--radius);
    font-size: 1.4rem;
    color: var(--primary-light);
    transition: var(--transition);
    margin-bottom: 0.3rem;
}

.changelog-card h3 {
    font-family: var(--font-main);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: 0.5px;
}

.changelog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.changelog-author-avatar-sm {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--border);
}

.changelog-card-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.7;
}

.changelog-card-stats {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.3rem 0;
}

.cl-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.55rem;
    border-radius: var(--radius-sm);
}

.cl-stat i { font-size: 0.6rem; }

.cl-stat-added { background: rgba(40, 167, 69, 0.14); color: #4ade80; }
.cl-stat-removed { background: rgba(220, 53, 69, 0.14); color: #f87171; }
.cl-stat-changed { background: rgba(255, 140, 66, 0.14); color: #ff8c42; }

/* Changelog Detail */

.changelog-detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

.changelog-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.changelog-detail-header {
    padding: 2rem 2rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border);
}

.changelog-detail-header h2 {
    font-family: var(--font-main);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
}

.changelog-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.changelog-author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--primary-dark);
}

.changelog-author { font-weight: 600; color: var(--text); }

.changelog-detail-body {
    padding: 1.5rem 2rem;
}

.changelog-line {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.changelog-added {
    background: rgba(40, 167, 69, 0.06);
    color: #5ddb6e;
    border-left: 3px solid #28a745;
}

.changelog-removed {
    background: rgba(220, 53, 69, 0.06);
    color: #e86373;
    border-left: 3px solid #dc3545;
}

.changelog-changed {
    background: rgba(255, 140, 66, 0.08);
    color: #ffa872;
    border-left: 3px solid #ff8c42;
}

.changelog-neutral {
    color: var(--text-muted);
    padding-left: calc(0.8rem + 28px);
    font-style: italic;
}

.changelog-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 0.75rem;
    font-weight: 900;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.tag-added { background: rgba(40, 167, 69, 0.25); color: #4ade80; box-shadow: 0 0 8px rgba(40, 167, 69, 0.3); }
.tag-removed { background: rgba(220, 53, 69, 0.25); color: #f87171; box-shadow: 0 0 8px rgba(220, 53, 69, 0.3); }
.tag-changed { background: rgba(255, 140, 66, 0.25); color: #ff8c42; box-shadow: 0 0 8px rgba(255, 140, 66, 0.3); }

/* ADMIN STAFF - FLIP CARDS */

.staff-role-section {
    margin-bottom: 3rem;
}

.staff-role-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.8rem;
}

.staff-role-header h2 {
    font-family: var(--font-main);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
}

.staff-role-line {
    flex: 1;
    height: 1px;
    opacity: 0.3;
}

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

.staff-card-wrapper {
    perspective: 800px;
}

.staff-card {
    width: 100%;
    height: 320px;
    cursor: pointer;
}

.staff-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.staff-card:hover .staff-card-inner {
    transform: rotateY(180deg);
}

.staff-card-front,
.staff-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.staff-card-back {
    transform: rotateY(180deg);
    background: var(--bg-card);
}

.staff-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    border-radius: 50%;
    opacity: 0.04;
    filter: blur(60px);
    pointer-events: none;
}

.staff-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
}

.staff-avatar-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.staff-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    object-fit: cover;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.staff-avatar-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: inherit;
    animation: staffRingSpin 3s linear infinite;
    opacity: 0.4;
}

@keyframes staffRingSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.staff-name {
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.staff-rank {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.staff-flip-hint {
    position: absolute;
    bottom: 1rem;
    font-size: 0.68rem;
    color: var(--text-muted);
    opacity: 0.4;
    transition: var(--transition);
}

.staff-card:hover .staff-flip-hint {
    opacity: 0;
}

/* Back side */
.staff-back-icon {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    opacity: 0.6;
}

.staff-card-back h4 {
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 0.8rem;
}

.staff-description {
    font-size: 0.82rem;
    color: var(--text);
    line-height: 1.6;
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
}

.staff-rank-back {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

/* RESPONSIVE */

@media (max-width: 768px) {
    #toast-container { right: 0.5rem; left: 0.5rem; max-width: none; }
    .banroom-table-wrap { overflow-x: auto; }
    .banroom-table { min-width: 600px; }

    .reg-layout {
        grid-template-columns: 1fr;
    }

    .reg-sidebar {
        position: static;
        order: -1;
    }

    .changelog-grid {
        grid-template-columns: 1fr;
    }

    .reg-cards-grid {
        grid-template-columns: 1fr;
    }

    .changelog-detail-header,
    .changelog-detail-body {
        padding: 1.2rem;
    }

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

    .staff-card {
        height: 280px;
    }

    .staff-avatar {
        width: 70px;
        height: 70px;
    }
}

/* HUD CAMERA FRAME */

.hud-frame {
    position: fixed;
    inset: 14px;
    pointer-events: none;
    z-index: 1001;
}

.hud-corner {
    position: absolute;
    width: 72px;
    height: 72px;
    border: 2px solid rgba(var(--primary-rgb), 0.85);
    filter: drop-shadow(0 0 8px var(--primary-glow));
    opacity: 0.85;
}

.hud-tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.hud-tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.hud-bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.hud-br { bottom: 0; right: 0; border-left: none; border-top: none; }

.hud-rec {
    position: absolute;
    top: 8px;
    right: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: rgba(var(--primary-rgb), 0.9);
    text-shadow: 0 0 8px var(--primary-glow);
}

.hud-rec i { font-size: 0.6rem; animation: pulse 1.4s infinite; }

@media (max-width: 720px) {
    .hud-frame { inset: 8px; }
    .hud-corner { width: 40px; height: 40px; }
    .hud-rec { display: none; }
}

/* CONNECT BUTTON */

.btn-connect {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.42rem 0.92rem;
    min-height: 2.2rem;
    min-width: 132px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-weight: 700;
    font-size: 0.72rem;
    border: 1px solid rgba(var(--primary-rgb), 0.35);
    box-shadow: 0 6px 16px -6px rgba(var(--primary-rgb), 0.55);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-connect i { transition: transform 0.3s ease; }

.btn-connect:hover {
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px -6px rgba(var(--primary-rgb), 0.6);
}

.btn-connect:hover i { transform: rotate(8deg) scale(1.1); }

/* HOVER MICRO-INTERACTIONS */

.btn:hover i,
.nav-link:hover i,
.app-status-badge:hover i { transform: rotate(6deg) scale(1.1); }
.btn i, .nav-link i { transition: transform 0.25s ease; }

.about-card:hover .card-icon,
.faction-card:hover .faction-icon,
.stat-item:hover .stat-icon { transform: rotate(5deg) scale(1.08); }
.stat-item .stat-icon, .about-card .card-icon, .faction-card .faction-icon { transition: transform 0.3s ease; }

/* HERO SIDEBOX — wygląd panelu jak .about-stats-panel w styl.css */

@keyframes heroStatFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes heroStatIconGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.35); }
    50% { box-shadow: 0 0 18px rgba(var(--primary-rgb), 0.55); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-stat-box {
        animation: none;
    }

    .hero-stat-title i {
        animation: none;
    }
}

.hero-actions-row {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    min-width: 220px;
}

.hero-action-buttons .btn { justify-content: center; }

.hero-stat-box {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0;
    min-width: 320px;
    text-align: left;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: border-color var(--transition), box-shadow var(--transition);
    overflow: hidden;
    animation: heroStatFloat 6s ease-in-out infinite;
}

.hero-stat-box:hover {
    border-color: color-mix(in srgb, var(--primary) 35%, transparent);
    box-shadow: 0 0 28px rgba(var(--primary-rgb), 0.12);
    transform: none;
}

.hero-stat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    flex-wrap: nowrap;
    margin: 0;
    padding: 1rem 1.25rem;
    background: color-mix(in srgb, var(--primary) 7%, transparent);
    border-bottom: 1px solid var(--border);
}

.hero-stat-title {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-bright);
}

.hero-stat-title i {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--primary);
    color: var(--bg-darker);
    font-size: 0.86rem;
    margin-right: 0;
    animation: heroStatIconGlow 2.5s ease-in-out infinite;
}

.hero-stat-rows {
    padding: 1.15rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.hero-stat-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-stat-status.is-online { background: rgba(74, 222, 128, 0.12); border: 1px solid rgba(74, 222, 128, 0.3); color: #4ade80; }
.hero-stat-status.is-offline { background: rgba(248, 113, 113, 0.12); border: 1px solid rgba(248, 113, 113, 0.3); color: #f87171; }
.hero-stat-status i { font-size: 0.5rem; animation: pulse 2s infinite; }

.hero-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0;
}

.hero-stat-row + .hero-stat-row {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.hero-stat-row-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}
.hero-stat-row-label i { color: var(--primary-light); width: 14px; text-align: center; }
.hero-stat-row-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-light);
    font-family: var(--font-mono);
}

/* APPLICATIONS - status + requirements */

.app-status-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    padding: 0;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-align: center;
    flex-wrap: wrap;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.app-status-bar .app-status-badge {
    margin: 0.85rem 0 0.85rem 1.1rem;
}

.app-status-bar .app-status-text {
    padding: 0.85rem 1.25rem;
    flex: 1;
    min-width: 200px;
    text-align: left;
    border-left: 1px solid var(--border);
    background: color-mix(in srgb, var(--primary) 5%, transparent);
}

.app-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: transform 0.25s ease;
}

.app-status-badge.is-open { background: rgba(74, 222, 128, 0.12); border: 1px solid rgba(74, 222, 128, 0.3); color: #4ade80; }
.app-status-badge.is-closed { background: rgba(248, 113, 113, 0.12); border: 1px solid rgba(248, 113, 113, 0.3); color: #f87171; }
.app-status-badge i { font-size: 0.55rem; animation: pulse 2s infinite; }
.app-status-badge:hover { transform: scale(1.05); }

.app-status-text { font-size: 0.85rem; color: var(--text-muted); }

@media (max-width: 540px) {
    .app-status-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .app-status-bar .app-status-badge {
        margin: 1rem 1rem 0;
        align-self: center;
    }

    .app-status-bar .app-status-text {
        border-left: none;
        border-top: 1px solid var(--border);
        text-align: center;
        padding: 0.85rem 1rem 1rem;
    }
}

.app-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.7rem;
}

.app-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

.app-meta-chip i { color: var(--primary-light); font-size: 0.7rem; }
.app-meta-chip.chip-warn { background: rgba(255, 193, 7, 0.08); border-color: rgba(255, 193, 7, 0.25); color: #fde68a; }
.app-meta-chip.chip-warn i { color: #ffc107; }

.application-card {
    transition: transform 0.3s ease, border-color 0.25s ease, box-shadow 0.3s ease;
}
.application-card:hover { transform: translateY(-6px) scale(1.02); }
.application-card .app-card-icon { transition: transform 0.35s ease; }
.application-card:hover .app-card-icon { transform: rotate(8deg) scale(1.1); }


.application-card.is-disabled { opacity: 0.5; pointer-events: none; cursor: not-allowed; filter: grayscale(0.4); }

/* HERO SLIDESHOW */

.hero-slides {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1.4s ease, transform 8s ease-out;
    will-change: opacity, transform;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.hero-slides::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 5, 7, 0.55) 0%, rgba(5, 5, 7, 0.78) 60%, rgba(5, 5, 7, 0.95) 100%),
        radial-gradient(ellipse at center, transparent 40%, rgba(5, 5, 7, 0.7) 100%);
    pointer-events: none;
}

.hero { background: var(--bg-dark); }
.hero-overlay { z-index: 1; }
.hero-content { z-index: 3; }

/* CURSOR SPOTLIGHT */

.spot {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.spot::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        320px circle at var(--mx, 50%) var(--my, 50%),
        rgba(var(--primary-rgb), 0.14),
        transparent 45%
    );
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    z-index: -1;
}

.spot:hover::before { opacity: 1; }

.about-card, .faction-card, .application-card, .changelog-card, .reg-card, .stat-item, .hero-stat-box {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.about-card::after,
.faction-card::after,
.application-card::after,
.changelog-card::after,
.reg-card::after,
.stat-item::after,
.hero-stat-box::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        300px circle at var(--mx, 50%) var(--my, 50%),
        rgba(var(--primary-rgb), 0.14),
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.about-card:hover::after,
.faction-card:hover::after,
.application-card:hover::after,
.changelog-card:hover::after,
.reg-card:hover::after,
.stat-item:hover::after,
.hero-stat-box:hover::after { opacity: 1; }

/* SECTION HEADER POLISH */

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.section-tag::before {
    content: '';
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-light));
}

.section-tag::after {
    content: '';
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, var(--primary-light), transparent);
}

/* HERO PARALLAX (scroll) */

.hero-slide { transform: scale(1.06) translateY(var(--parallax, 0)); }
.hero-slide.is-active { transform: scale(1) translateY(var(--parallax, 0)); }

/* PRIMARY BTN PULSE */

.btn-glow {
    animation: subtleGlow 4s ease-in-out infinite;
}

@keyframes subtleGlow {
    0%, 100% { box-shadow: 0 4px 14px -4px var(--primary-glow); }
    50%      { box-shadow: 0 6px 22px -2px var(--primary-glow), 0 0 30px -8px var(--primary-glow); }
}

/* SCROLLBAR refined */

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    border-radius: 3px;
}

/* KINETIC TEXT */

.kinetic-letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.5em) rotate(-6deg);
    animation: kineticIn 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    will-change: transform, opacity;
}

@keyframes kineticIn {
    to { opacity: 1; transform: translateY(0) rotate(0); }
}

/* PAGE-HERO cinematic */

.page-hero:not(.applications-hero) {
    padding: 9rem 2rem 3.5rem;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% -20%, rgba(var(--primary-rgb), 0.14) 0%, transparent 55%),
        radial-gradient(ellipse at 15% 30%, rgba(var(--secondary-rgb), 0.08) 0%, transparent 40%),
        #07070b;
}

.page-hero:not(.applications-hero)::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--hero-accent, var(--primary)) 20%, transparent) 0%, transparent 55%),
        radial-gradient(circle at 80% 0%, color-mix(in srgb, var(--hero-accent, var(--primary)) 14%, transparent) 0%, transparent 55%);
    pointer-events: none;
}

.page-hero:not(.applications-hero)::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--hero-accent, var(--primary)) 60%, transparent), transparent);
    pointer-events: none;
}

.page-hero:not(.applications-hero) .page-hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(180deg, var(--text-bright), color-mix(in srgb, var(--text-bright) 70%, transparent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.35rem;
}

.page-hero:not(.applications-hero) .page-hero-content p {
    max-width: 720px;
    margin: 0.7rem auto 0;
    font-size: 1rem;
    color: var(--text-muted);
    text-wrap: balance;
}

/* SECTION NUMBER BADGE */

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

.section-header::before {
    content: counter(section, decimal-leading-zero);
    counter-increment: section;
    position: absolute;
    top: -1.4rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--primary-light);
    opacity: 0.5;
}

body { counter-reset: section; }

.section-title {
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-line {
    width: 56px;
    height: 2px;
    margin: 0.8rem auto 0;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
    border-radius: 2px;
}

/* SECTION DIVIDERS between sections */

.section + .section::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    margin-bottom: 5rem;
    background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.35), transparent);
    opacity: 0.5;
}

/* SKELETON loading for live sections */

[data-live]:empty,
[data-live].is-loading {
    position: relative;
    min-height: 160px;
}

@keyframes shimmerSweep {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skeleton {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.08), transparent);
    animation: shimmerSweep 1.4s ease-in-out infinite;
}

/* CHANGELOG CARDS polish */

.changelog-card {
    position: relative;
    overflow: hidden;
}

.changelog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.changelog-card:hover::before { opacity: 1; }

/* FORM INPUTS polish */

.form-input {
    transition: border-color 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.18);
    background: rgba(168, 0, 92, 0.04);
    outline: none;
}

/* FACTION CARD top stripe */

.faction-card {
    position: relative;
}

.faction-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--card-color, var(--primary));
    border-radius: 0 0 3px 3px;
    box-shadow: 0 0 12px currentColor;
    opacity: 0.8;
    transition: width 0.3s ease, opacity 0.3s ease;
}

.faction-card:hover::after {
    width: 75%;
    opacity: 1;
}

/* APP-CARD STRIPE */

.application-card {
    position: relative;
}

.application-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 10%;
    bottom: 10%;
    width: 3px;
    background: var(--card-color, var(--primary));
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 12px currentColor;
    opacity: 0.6;
    transition: opacity 0.3s ease, width 0.3s ease;
}

.application-card:hover::after { width: 5px; opacity: 1; }

/* STICKY MOBILE JOIN CTA */

.mobile-cta {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 10px 30px -6px rgba(22, 163, 74, 0.55);
    animation: stickyRise 0.4s ease-out;
}

@keyframes stickyRise {
    from { transform: translateX(-50%) translateY(100px); opacity: 0; }
    to   { transform: translateX(-50%) translateY(0); opacity: 1; }
}

@media (max-width: 720px) {
    .mobile-cta.visible { display: inline-flex; align-items: center; gap: 0.5rem; }
}

/* HERO TITLE SHADOW */

.hero-title {
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 40px;
    background: radial-gradient(ellipse at center, var(--primary-glow), transparent 70%);
    filter: blur(20px);
    pointer-events: none;
    z-index: -1;
}

/* RADIUS/HOVER CARDS IMPROVEMENTS */

.panel-stat-card,
.dash-card {
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.panel-stat-card:hover,
.dash-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card);
}

/* BUTTON LARGE glow intensify */

.btn-lg { letter-spacing: 0.3px; }
.btn-lg.btn-primary {
    background: linear-gradient(135deg, var(--primary-light), var(--primary) 60%, var(--primary-dark));
}

/* HERO SPLIT LAYOUT */

.hero-grid {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content-left {
    max-width: 820px;
    text-align: center;
    margin: 0 auto;
}

.hero-content-left .hero-title,
.hero-content-left .hero-description,
.hero-content-left .hero-badge { text-align: center; }

.hero-content-left .hero-title { align-items: center; }
.hero-content-left .hero-description { margin: 0 auto 2.2rem; }
.hero-content-left .hero-action-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
}

.hero-side {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 390px;
    z-index: 3;
}

/* Na szerokich ekranach przesuń status w stronę prawej krawędzi viewportu,
   żeby nie kleił się do treści hero w środku. */
@media (min-width: 1400px) {
    .hero-side {
        right: calc(-1 * ((100vw - 1400px) / 2) + 5.2rem);
    }
}

.hero-side .hero-stat-box {
    width: 100%;
    min-width: 0;
    padding: 0;
}

.hero-stat-head { gap: 0.8rem; flex-wrap: wrap; }

.hero-stat-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: -0.15rem 0 0.25rem;
}

.hero-stat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--secondary));
    border-radius: inherit;
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.45);
    transition: width 0.6s ease;
}

@media (max-width: 1100px) {
    .hero-side { width: 340px; right: 0.45rem; }
}

@media (max-width: 960px) {
    .hero-grid { min-height: auto; flex-direction: column; gap: 2rem; }
    .hero-side {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }
}

/* =============================================================================
   Strona podań — layout jak styl.css (nagłówek + karty z APLIKUJ)
   ============================================================================= */

.about-cinema {
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

.about-cinema-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 10%, rgba(var(--primary-rgb), 0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 15% 30%, rgba(var(--secondary-rgb), 0.08) 0%, transparent 45%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.65));
    pointer-events: none;
    z-index: 0;
}

.about-cinema .container {
    position: relative;
    z-index: 1;
}

.about-cinema-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: center;
}

.about-cinema-tag {
    display: inline-block;
    padding: 0.25rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--primary-light);
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.25);
    margin-bottom: 1rem;
}

.about-cinema-kicker {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.about-cinema-title {
    margin: 0 0 1rem;
    line-height: 1.05;
}

.about-cinema-title-big {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--text-bright);
    text-transform: uppercase;
}

.about-cinema-title-sub {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-light);
    text-transform: uppercase;
    opacity: 0.9;
}

.about-cinema-desc {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.92rem;
    line-height: 1.8;
    max-width: 720px;
    margin-bottom: 1.4rem;
}

.about-cinema-features {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 1.6rem;
}

.about-cinema-feature {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1.1rem;
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.acf-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: color-mix(in srgb, var(--primary) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary) 26%, transparent);
    color: var(--primary-light);
    flex-shrink: 0;
}

.acf-title {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-bright);
}

.acf-sub {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.15rem;
}

.about-cinema-actions {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.server-stats-card {
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.server-stats-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.1rem;
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.server-stats-title {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-bright);
}

.server-stats-title i {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--primary);
    color: var(--bg-darker);
}

.server-stats-head-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.server-stats-head-status i {
    font-size: 0.45rem;
}

.server-stats-head-status.is-online {
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.25);
    background: rgba(74, 222, 128, 0.1);
}

.server-stats-head-status.is-offline {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.25);
    background: rgba(248, 113, 113, 0.1);
}

.server-stats-rows {
    padding: 0.9rem 1.1rem 0.6rem;
}

.server-stats-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0;
}

.server-stats-row + .server-stats-row {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.server-stats-label {
    font-size: 0.7rem;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 700;
}

.server-stats-value {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary-light);
}

.server-stats-foot {
    padding: 0.9rem 1.1rem 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.2);
}

.server-stats-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.server-stats-pill.is-online { color: #4ade80; border-color: rgba(74, 222, 128, 0.25); background: rgba(74, 222, 128, 0.08); }
.server-stats-pill.is-offline { color: #f87171; border-color: rgba(248, 113, 113, 0.25); background: rgba(248, 113, 113, 0.08); }
.server-stats-pill i { font-size: 0.5rem; }

@media (max-width: 960px) {
    .about-cinema-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.footer-cta {
    padding: 4.5rem 0 3rem;
}

.footer-cta-box {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.2rem;
    align-items: center;
    padding: 1.6rem 1.6rem;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    position: relative;
    overflow: hidden;
}

.footer-cta-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at 20% 20%, rgba(var(--primary-rgb), 0.06), transparent 55%);
    opacity: 0.75;
    pointer-events: none;
}

.footer-cta-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--primary-light);
    position: relative;
    z-index: 1;
}

.footer-cta-text { position: relative; z-index: 1; }
.footer-cta-tag { font-size: 0.65rem; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.footer-cta-text h3 { margin: 0.2rem 0 0.2rem; font-size: 1.1rem; font-weight: 800; color: var(--text-bright); }
.footer-cta-text p { margin: 0; color: rgba(255,255,255,0.55); font-size: 0.85rem; font-weight: 300; }
.footer-cta-actions { display: inline-flex; gap: 0.6rem; position: relative; z-index: 1; }

.footer.footer-v2 {
    padding: 3.5rem 0 2.5rem;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.025);
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 100%);
}

.footer-grid-v2 {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 2rem;
}

.footer-v2 .footer-brand {
    font-family: var(--font-display);
    font-weight: 900;
    letter-spacing: 0.5px;
    margin: 0 0 0.6rem;
    color: var(--text-bright);
    font-size: 1.1rem;
}

.footer-v2 .footer-desc {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer-v2 .footer-col h4 {
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.9rem;
}

.footer-v2 .footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    padding: 0.25rem 0;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-v2 .footer-col a:hover {
    color: var(--primary-light);
    transform: translateX(3px);
}

.footer-bottom-v2 {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8rem;
}

.footer-copy { justify-self: start; }
.footer-powered { justify-self: end; letter-spacing: 1px; text-transform: uppercase; font-size: 0.7rem; }
.footer-powered strong { color: rgba(255,255,255,0.75); }

.footer-status-pill {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-family: var(--font-mono);
    letter-spacing: 1px;
    color: rgba(255,255,255,0.6);
}

.footer-status-pill i { font-size: 0.55rem; }
.footer-status-pill.is-online { border-color: rgba(74, 222, 128, 0.22); color: rgba(74, 222, 128, 0.9); }
.footer-status-pill.is-offline { border-color: rgba(248, 113, 113, 0.22); color: rgba(248, 113, 113, 0.9); }

@media (max-width: 980px) {
    .footer-grid-v2 { grid-template-columns: 1fr 1fr; }
    .footer-bottom-v2 { grid-template-columns: 1fr; text-align: center; }
    .footer-copy, .footer-powered { justify-self: center; }
}

@media (max-width: 560px) {
    .footer-grid-v2 { grid-template-columns: 1fr; }
    .footer-cta-box { grid-template-columns: 1fr; text-align: center; }
    .footer-cta-actions { justify-content: center; flex-wrap: wrap; }
    .footer-cta-icon { margin: 0 auto; }
}
.cinema-hero {
    position: relative;
    padding: 10rem 1.5rem 4.5rem;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.cinema-hero-bg {
    position: absolute;
    inset: 0;
    /* TA SAMA KOLORYSTYKA co Podania */
    background:
        linear-gradient(180deg, rgba(5, 5, 8, 0.2) 0%, rgba(5, 5, 8, 0.95) 100%),
        radial-gradient(ellipse at 50% 0%, rgba(var(--primary-rgb), 0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 60%, rgba(var(--secondary-rgb), 0.1) 0%, transparent 45%),
        radial-gradient(ellipse at 80% 40%, rgba(var(--primary-rgb), 0.08) 0%, transparent 40%),
        #08080c;
    pointer-events: none;
}

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

.cinema-hero-tag {
    display: inline-block;
    padding: 0.35rem 1rem;
    border: 1px solid color-mix(in srgb, var(--primary) 55%, transparent);
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--primary-light);
    margin-bottom: 1rem;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.35);
}

.cinema-hero-kicker {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 6px;
    color: var(--text-bright);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.cinema-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 9vw, 5rem);
    font-weight: 900;
    color: var(--text-bright);
    letter-spacing: 4px;
    line-height: 1.05;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.cinema-hero-sub {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--primary-light);
    text-transform: uppercase;
}

.applications-hero {
    position: relative;
    padding: 10rem 1.5rem 4.5rem;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.applications-hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 5, 8, 0.2) 0%, rgba(5, 5, 8, 0.95) 100%),
        radial-gradient(ellipse at 50% 0%, rgba(var(--primary-rgb), 0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 60%, rgba(var(--secondary-rgb), 0.1) 0%, transparent 45%),
        radial-gradient(ellipse at 80% 40%, rgba(var(--primary-rgb), 0.08) 0%, transparent 40%),
        #08080c;
    pointer-events: none;
}

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

.applications-hero-tag {
    display: inline-block;
    padding: 0.35rem 1rem;
    border: 1px solid color-mix(in srgb, var(--primary) 55%, transparent);
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--primary-light);
    margin-bottom: 1rem;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.35);
}

.applications-hero-kicker {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 6px;
    color: var(--text-bright);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.applications-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 9vw, 5rem);
    font-weight: 900;
    color: var(--text-bright);
    letter-spacing: 4px;
    line-height: 1.05;
    margin-bottom: 0.5rem;
}

.applications-hero-accent {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--primary-light);
    text-transform: uppercase;
}

.page-applications .applications-section {
    padding-top: 3rem;
}

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

@media (min-width: 1200px) {
    .page-applications .applications-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

.page-applications .application-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    padding: 0;
    border-radius: var(--radius-xl, 20px);
    background: rgba(8, 8, 8, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    min-height: 100%;
    transform: none;
}

.page-applications .application-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--faction-color, var(--primary)), transparent);
    opacity: 0.85;
    z-index: 2;
    pointer-events: none;
}

.page-applications .application-card:hover::before {
    height: 4px;
    opacity: 1;
}

.page-applications .application-card::after {
    display: none;
}

.page-applications .application-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.65);
}

.page-applications .app-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.35rem 1.35rem 0;
}

.page-applications .app-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 1.45rem;
    color: var(--faction-color, var(--primary));
}

.page-applications .application-card:hover .app-card-icon {
    transform: scale(1.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.app-card-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.app-card-status--open {
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent);
    color: var(--primary-light);
}

.app-card-status--closed {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
}

.app-card-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: appStatusPulse 2s ease-in-out infinite;
}

@keyframes appStatusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(1.35); }
}

.page-applications .app-card-body {
    padding: 1.15rem 1.35rem 1rem;
    flex: 1;
}

.page-applications .app-card-body h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-bright);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.45rem;
}

.page-applications .app-card-body p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 0.85rem;
}

.page-applications .app-card-requirements {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0;
}

.page-applications .app-card-requirements span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.55rem;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.page-applications .app-card-requirements span i {
    color: var(--primary);
    font-size: 0.8rem;
}

.page-applications .app-card-footer {
    padding: 0 1.35rem 1.35rem;
    margin-top: auto;
}

.page-applications .app-card-apply {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: var(--radius-lg);
    background: var(--primary);
    color: var(--bg-darker);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background var(--transition), transform var(--transition-fast), box-shadow var(--transition);
}

.page-applications .app-card-apply i {
    font-size: 0.85rem;
    opacity: 0.9;
}

.page-applications .application-card:hover .app-card-apply:not(.is-disabled) {
    background: var(--primary-light);
    box-shadow: 0 10px 28px rgba(var(--primary-rgb), 0.35);
}

.page-applications .app-card-apply.is-disabled {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: not-allowed;
}

.page-applications .application-card.is-disabled {
    opacity: 0.72;
    filter: grayscale(0.25);
}

.page-applications .application-card.is-disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ============================================================
   VitalRP — UI refinements
   - smooth dark background + top/bottom shadow
   - navbar button size parity (Discord smaller, Połącz larger)
   - larger user panel (avatar / name / role)
   - hero slideshow polish, no visible bg
   - footer server-status pill pushed right
   - subtle site-wide animations
   - mobile responsiveness
   ============================================================ */

/* Smooth, layered dark background */
body {
    background:
        radial-gradient(ellipse 80% 55% at 50% -10%, rgba(168, 0, 92, 0.14) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 90% 10%, rgba(88, 101, 242, 0.05) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 10% 90%, rgba(191, 0, 255, 0.04) 0%, transparent 60%),
        linear-gradient(180deg, #050508 0%, #07070d 35%, #050509 70%, #030306 100%) !important;
    background-attachment: fixed !important;
    color-scheme: dark;
}

/* Top shadow (doperp-like) */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 340px;
    pointer-events: none;
    z-index: 900;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.58) 22%,
        rgba(0, 0, 0, 0.24) 55%,
        rgba(0, 0, 0, 0) 100%);
}
body::after {
    content: "";
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 180px;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(0deg,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0) 100%);
}

.navbar { z-index: 1001 !important; }

/* ---------- Hero slideshow polish ---------- */
.hero-slide {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    min-width: 100%;
    min-height: 100%;
}
.hero { background: #05050a !important; }
.hero-slides::after {
    background:
        linear-gradient(180deg, rgba(5, 5, 7, 0.45) 0%, rgba(5, 5, 7, 0.72) 60%, rgba(5, 5, 7, 0.96) 100%),
        radial-gradient(ellipse at center, transparent 45%, rgba(5, 5, 7, 0.6) 100%) !important;
}

/* ---------- Navbar button sizing ---------- */
.navbar-actions { gap: 0.85rem; }
.navbar-actions > .btn-connect,
.navbar-actions > .btn-discord,
.navbar-actions > .user-panel {
    min-height: 2.6rem !important;
}

/* Discord login — smaller */
.navbar-actions .btn-discord {
    padding: 0.52rem 1rem !important;
    min-width: unset !important;
    font-size: 0.82rem !important;
    border-radius: 10px !important;
    letter-spacing: 0.4px;
    box-shadow: 0 6px 18px rgba(88, 101, 242, 0.28);
}
.navbar-actions .btn-discord:hover {
    box-shadow: 0 12px 26px rgba(88, 101, 242, 0.42);
}
.navbar-actions .btn-discord i { font-size: 1rem; }

/* Połącz — slightly larger, premium pink */
.btn-connect {
    padding: 0.66rem 1.25rem !important;
    min-height: 2.6rem !important;
    min-width: unset !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 12px !important;
    box-shadow: 0 10px 26px -8px rgba(var(--primary-rgb), 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.btn-connect:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px -6px rgba(var(--primary-rgb), 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    filter: brightness(1.06);
}
.btn-connect i { font-size: 1.05rem; }

/* ---------- Navbar user panel: larger ---------- */
.user-panel {
    gap: 0.75rem !important;
    padding: 0.38rem 0.95rem 0.38rem 0.42rem !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, rgba(20, 20, 28, 0.88) 0%, rgba(12, 12, 18, 0.88) 100%) !important;
    max-width: min(320px, 40vw) !important;
    min-height: 2.6rem !important;
}
.user-panel:hover {
    border-color: color-mix(in srgb, var(--primary) 55%, transparent);
    box-shadow: 0 10px 26px rgba(var(--primary-rgb), 0.18);
    transform: translateY(-1px);
}
.user-avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: 2px solid rgba(var(--primary-rgb), 0.75) !important;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1), 0 6px 14px rgba(0, 0, 0, 0.35) !important;
    transition: transform 0.22s ease;
}
.user-panel:hover .user-avatar { transform: scale(1.04); }

.user-info { gap: 2px; }
.user-name {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px;
    max-width: 180px;
}
.user-role {
    font-size: 0.68rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.7px;
    opacity: 0.92;
    max-width: 180px;
}

/* ---------- Footer status pill: push right ---------- */
.footer-bottom-v2 {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}
.footer-bottom-v2 .footer-copy { margin-right: auto; }
.footer-bottom-v2 .footer-status-pill {
    margin-left: auto;
    order: 2;
}
.footer-bottom-v2 .footer-powered { order: 3; }

/* ---------- Push the hero "server online" badge toward the right ---------- */
.hero-badge { align-self: flex-end; margin-left: auto; }
.hero-content-left { align-items: flex-start; }
.hero-content-left .hero-badge { margin-left: auto; align-self: flex-end; }

/* ---------- Subtle site-wide animations ---------- */
@keyframes vrp-fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes vrp-soft-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
}

.application-card,
.reg-card,
.faction-card,
.changelog-card,
.panel-app-card {
    animation: vrp-fade-up 0.5s ease both;
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.25, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}
.application-card:hover,
.reg-card:hover,
.faction-card:hover,
.changelog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.nav-link { transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease; }
.nav-link:hover { transform: translateY(-1px); }

/* Staff cards (administracja): keep the 3D flip intact — no transform animations on the wrapper. */
.staff-card-wrapper { animation: none !important; transform: none !important; }
.staff-card-wrapper.reveal.visible,
.staff-card-wrapper.visible { transform: none !important; }
.staff-card-inner { transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1) !important; }
.staff-card:hover .staff-card-inner { transform: rotateY(180deg) !important; }

.cinema-hero-title, .hero-title, .applications-hero-title {
    animation: vrp-fade-up 0.7s ease both;
}

/* ---------- Mobile responsiveness ---------- */
@media (max-width: 900px) {
    .navbar-container {
        grid-template-columns: auto 1fr auto !important;
        padding: 0 0.8rem !important;
        gap: 0.6rem !important;
    }
    .navbar-menu {
        position: fixed;
        top: 64px;
        left: 10px;
        right: 10px;
        padding: 14px;
        background: rgba(8, 8, 12, 0.96);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 14px;
        display: none;
        flex-direction: column;
        gap: 4px;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
        z-index: 1005;
    }
    .navbar-menu.open {
        display: flex;
        animation: vrp-fade-up 0.25s ease both;
    }
    .navbar-toggle { display: inline-flex !important; }
    .navbar-menu .nav-link { padding: 12px 14px; border-radius: 10px; }
    .navbar-menu .nav-link:hover { background: rgba(var(--primary-rgb), 0.1); }

    .nav-dropdown-menu {
        position: static !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding-left: 10px;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    .btn-connect { padding: 0.56rem 1rem !important; font-size: 0.82rem !important; }
    .navbar-actions .btn-discord { padding: 0.48rem 0.85rem !important; font-size: 0.76rem !important; }

    .user-panel { gap: 0.55rem !important; padding: 0.3rem 0.8rem 0.3rem 0.34rem !important; }
    .user-avatar { width: 36px !important; height: 36px !important; }
    .user-name { font-size: 0.85rem !important; max-width: 120px; }
    .user-role { font-size: 0.62rem !important; max-width: 120px; }

    body::before { height: 220px; }
    .footer-bottom-v2 .footer-status-pill { order: 3; margin-left: 0; }
}

@media (max-width: 600px) {
    .navbar-actions .btn-discord span { display: none; }
    .btn-connect span { display: none; }
    .navbar-actions .btn-discord,
    .btn-connect {
        padding: 0 !important;
        width: 42px;
        min-height: 42px !important;
        height: 42px;
        justify-content: center;
        border-radius: 50% !important;
    }
    .navbar-actions .btn-discord i,
    .btn-connect i { margin: 0; font-size: 1.1rem; }

    .user-info { display: none; }

    .applications-grid,
    .reg-cards-grid,
    .changelog-grid,
    .staff-grid {
        grid-template-columns: 1fr !important;
    }
    .container { padding-left: 14px !important; padding-right: 14px !important; }
    .cinema-hero-title, .hero-title { font-size: clamp(2rem, 9vw, 3.2rem) !important; }
}

/* (reduced-motion kill-switch removed — it was nuking animations on some setups) */

/* ============================================================
   Navbar buttons — EXACT same size (Discord + Połącz)
   Takes precedence over earlier rules.
   ============================================================ */
.navbar-actions .btn-connect,
.navbar-actions .btn-discord {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.55rem !important;
    padding: 0 1.15rem !important;
    height: 2.6rem !important;
    min-height: 2.6rem !important;
    min-width: 156px !important;
    font-size: 0.86rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    line-height: 1 !important;
    border-radius: 10px !important;
    text-transform: uppercase !important;
    box-sizing: border-box !important;
}
.navbar-actions .btn-connect i,
.navbar-actions .btn-discord i {
    font-size: 1rem !important;
}

@media (max-width: 900px) {
    .navbar-actions .btn-connect,
    .navbar-actions .btn-discord {
        min-width: 130px !important;
        padding: 0 0.9rem !important;
        height: 2.4rem !important;
        min-height: 2.4rem !important;
        font-size: 0.78rem !important;
    }
}

@media (max-width: 600px) {
    .navbar-actions .btn-connect,
    .navbar-actions .btn-discord {
        min-width: 44px !important;
        width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        padding: 0 !important;
        border-radius: 50% !important;
    }
    .navbar-actions .btn-connect span,
    .navbar-actions .btn-discord span { display: none !important; }
    .navbar-actions .btn-connect i,
    .navbar-actions .btn-discord i { margin: 0 !important; font-size: 1.1rem !important; }
}

/* ============================================================
   VitalRP — Animations restore + extras
   ============================================================ */

/* --- Page load fade-in (whole page, once) --- */
@keyframes vrp-page-enter {
    from { opacity: 0; filter: blur(4px); }
    to   { opacity: 1; filter: blur(0); }
}
body.vrp-loaded main,
body.vrp-loaded .navbar,
body.vrp-loaded footer {
    animation: vrp-page-enter 0.45s ease both;
}

/* If JS never fires, show anyway after 0.6s */
body:not(.vrp-loaded) main,
body:not(.vrp-loaded) footer { animation: vrp-page-enter 0.45s ease 0.6s both; }

/* --- Buttons: entrance + hover polish (does NOT break existing .btn::after shimmer) --- */
@keyframes vrp-btn-fade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.btn, .btn-primary, .btn-outline, .btn-success, .btn-danger,
.btn-sm, .btn-lg, .btn-connect,
.hero-action-buttons .btn,
.form-actions .btn,
.pac-action-buttons .btn {
    animation: vrp-btn-fade 0.45s ease both;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(0) scale(0.98); transition: transform 0.08s ease; }
.btn-primary:active,
.btn-connect:active,
.btn-outline:active { transform: scale(0.98); }

/* Preserve shimmer on our navbar buttons too (existing .btn::after works — ensure overflow hidden) */
.navbar-actions .btn-connect,
.navbar-actions .btn-discord {
    overflow: hidden !important;
    isolation: isolate;
    position: relative;
}

/* Navbar links: shimmer underline pulse on hover */
@keyframes vrp-link-line {
    from { transform: scaleX(0); transform-origin: left; }
    to   { transform: scaleX(1); transform-origin: left; }
}
.nav-link { position: relative; }
.nav-link::after {
    content: "";
    position: absolute;
    left: 12px; right: 12px; bottom: 4px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

/* User panel — subtle glow on hover (keeps your layout, adds pulse) */
@keyframes vrp-user-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.18); }
    50%      { box-shadow: 0 0 22px 2px rgba(var(--primary-rgb), 0.18); }
}
.user-panel:hover { animation: vrp-user-glow 1.8s ease-in-out infinite; }

/* Avatar pulse ring */
.user-panel .user-avatar { position: relative; }
.user-panel::before {
    content: "";
    position: absolute;
    left: 4px; top: 50%;
    width: 40px; height: 40px;
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.4);
    pointer-events: none;
    animation: vrp-avatar-pulse 2.2s ease-out infinite;
}
@keyframes vrp-avatar-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.35); }
    70%  { box-shadow: 0 0 0 10px rgba(var(--primary-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0); }
}

/* Hero entrance stagger */
.hero-content > *,
.applications-hero-inner > *,
.cinema-hero-inner > * {
    animation: vrp-fade-up 0.6s ease both;
}
.hero-content > *:nth-child(1),
.cinema-hero-inner > *:nth-child(1) { animation-delay: 0.05s; }
.hero-content > *:nth-child(2),
.cinema-hero-inner > *:nth-child(2) { animation-delay: 0.15s; }
.hero-content > *:nth-child(3),
.cinema-hero-inner > *:nth-child(3) { animation-delay: 0.25s; }
.hero-content > *:nth-child(4),
.cinema-hero-inner > *:nth-child(4) { animation-delay: 0.35s; }
.hero-content > *:nth-child(5) { animation-delay: 0.45s; }

/* Section titles subtle intro */
.section-title, .features-title, h1, h2 {
    will-change: opacity, transform;
}

/* Grid cards — smoother stagger; DO NOT include .staff-card-wrapper (3D flip) */
.applications-grid > *,
.reg-cards-grid > *,
.changelog-grid > *,
.compendium-sections > *,
.panel-applications > * {
    animation: vrp-fade-up 0.5s ease both;
}
.applications-grid > *:nth-child(1), .reg-cards-grid > *:nth-child(1),
.changelog-grid > *:nth-child(1)    { animation-delay: 0.05s; }
.applications-grid > *:nth-child(2), .reg-cards-grid > *:nth-child(2),
.changelog-grid > *:nth-child(2)    { animation-delay: 0.12s; }
.applications-grid > *:nth-child(3), .reg-cards-grid > *:nth-child(3),
.changelog-grid > *:nth-child(3)    { animation-delay: 0.19s; }
.applications-grid > *:nth-child(4), .reg-cards-grid > *:nth-child(4),
.changelog-grid > *:nth-child(4)    { animation-delay: 0.26s; }
.applications-grid > *:nth-child(5), .reg-cards-grid > *:nth-child(5),
.changelog-grid > *:nth-child(5)    { animation-delay: 0.33s; }
.applications-grid > *:nth-child(6), .reg-cards-grid > *:nth-child(6),
.changelog-grid > *:nth-child(6)    { animation-delay: 0.4s; }

/* Mobile nav open animation */
.navbar-menu.open {
    animation: vrp-fade-up 0.25s ease both;
}

/* Card hover lift consistency */
.application-card:hover,
.reg-card:hover,
.changelog-card:hover,
.faction-card:hover {
    transform: translateY(-4px);
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.25, 1), box-shadow 0.25s ease;
}

/* Status pill gentle pulse */
.footer-status-pill .fa-circle {
    animation: vrp-soft-float 2.4s ease-in-out infinite;
}

/* Form inputs focus glow */
.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.18);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

/* ============================================================
   VitalRP — Extra polish: slow icon fades, TOC smooth-scroll
   ============================================================ */

/* Fixed-navbar-aware smooth anchor scrolling (TOC clicks) */
html { scroll-behavior: smooth !important; scroll-padding-top: 90px; }
.reg-section, .reg-section[id], [id^="section-"], #limits-table {
    scroll-margin-top: 100px;
}

/* Page enter — SLOW, prettier fade-in */
@keyframes vrp-page-enter-slow {
    0%   { opacity: 0; transform: translateY(8px); filter: blur(6px); }
    60%  { opacity: 0.9; filter: blur(1px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}
/* Initial state via :not(.vrp-loaded) so it's invisible before JS fires */
body:not(.vrp-loaded) { opacity: 0; }
body.vrp-loaded {
    animation: vrp-page-enter-slow 0.9s cubic-bezier(0.2, 0.8, 0.25, 1) both;
}
/* Fallback if JS is blocked/slow: show after 1.2s anyway */
@keyframes vrp-body-fallback { to { opacity: 1; } }
body:not(.vrp-loaded) {
    animation: vrp-body-fallback 0s linear 1.2s forwards;
}

/* Icons — soft slow fade + scale-in */
@keyframes vrp-icon-pop {
    0%   { opacity: 0; transform: scale(0.7) rotate(-4deg); }
    70%  { opacity: 1; transform: scale(1.06) rotate(1deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes vrp-icon-fade {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}
/* Fade-in for icons — but skip ones that already have their own animation */
main i[class*="fa-"]:not(.pulse-dot):not(.fa-spin):not(.fa-pulse),
.navbar i[class*="fa-"]:not(.pulse-dot):not(.fa-spin):not(.fa-pulse),
.footer i[class*="fa-"]:not(.pulse-dot):not(.fa-spin):not(.fa-pulse) {
    animation: vrp-icon-fade 0.75s cubic-bezier(0.2, 0.8, 0.25, 1) both;
}
/* More noticeable pop for highlighted icon containers */
.card-icon > i,
.feature-icon > i,
.app-card-icon > i,
.reg-card-icon > i,
.fsb-icon > i,
.dash-card-icon > i,
.panel-stat-card .psc-icon > i {
    animation: vrp-icon-pop 0.8s cubic-bezier(0.2, 0.8, 0.25, 1) 0.1s both;
}

/* Stagger for icon rows inside a nav/dropdown */
.navbar-menu .nav-link i { animation-delay: 0.2s; }
.navbar-menu .nav-link:nth-child(2) i { animation-delay: 0.25s; }
.navbar-menu .nav-link:nth-child(3) i { animation-delay: 0.3s; }
.navbar-menu .nav-link:nth-child(4) i { animation-delay: 0.35s; }
.navbar-menu .nav-link:nth-child(5) i { animation-delay: 0.4s; }
.navbar-menu .nav-link:nth-child(6) i { animation-delay: 0.45s; }

/* TOC link (regulamin) — smooth active underline + hover arrow */
.toc-link {
    transition: color 0.25s ease, background 0.25s ease, padding-left 0.25s ease, border-color 0.25s ease;
    position: relative;
}
.toc-link:hover { padding-left: 14px; }
.toc-link.active {
    color: var(--primary-light);
    background: color-mix(in srgb, var(--primary) 8%, transparent);
}
.toc-link.active::before {
    content: "";
    position: absolute;
    left: 0; top: 6px; bottom: 6px;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--primary), var(--primary-light));
    animation: vrp-fade-up 0.35s ease both;
}

/* Reg section intro */
.reg-section {
    opacity: 0;
    transform: translateY(14px);
    animation: vrp-fade-up 0.55s cubic-bezier(0.2, 0.8, 0.25, 1) both;
}
.reg-section:nth-child(1) { animation-delay: 0.05s; }
.reg-section:nth-child(2) { animation-delay: 0.12s; }
.reg-section:nth-child(3) { animation-delay: 0.19s; }
.reg-section:nth-child(4) { animation-delay: 0.26s; }
.reg-section:nth-child(5) { animation-delay: 0.33s; }
.reg-section:nth-child(6) { animation-delay: 0.4s; }
.reg-section:nth-child(7) { animation-delay: 0.47s; }
.reg-section:nth-child(8) { animation-delay: 0.54s; }

/* Hero title letters fade - gentle only */
.cinema-hero-title, .hero-title, .applications-hero-title,
.about-cinema-title-big {
    animation: vrp-fade-up 0.9s cubic-bezier(0.2, 0.8, 0.25, 1) both;
}
.cinema-hero-kicker, .cinema-hero-tag, .applications-hero-tag {
    animation: vrp-fade-up 0.7s 0.05s cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

/* Footer links slide-in */
.footer-col a { transition: color 0.22s ease, padding-left 0.22s ease; }
.footer-col a:hover { padding-left: 6px; color: var(--text-bright); }

/* Smooth disabled state */
.application-card.is-disabled {
    filter: grayscale(0.5) brightness(0.7);
    transition: filter 0.3s ease;
}
.application-card.is-disabled:hover { filter: grayscale(0.3) brightness(0.8); }


/* ============================================================
   VitalRP — FiveM-GRADE ANIMATION PACK
   Rich, smooth, not overdone. No grain.
   ============================================================ */

/* --- Page-enter curtain: soft blur + fade + slight lift --- */
@keyframes vrp-enter {
    0%   { opacity: 0; transform: translateY(10px); filter: blur(6px); }
    60%  { opacity: 0.85; filter: blur(1.5px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}
/* Initial invisible (prevents flash of unstyled state) */
body { opacity: 0; }
body.vrp-loaded { animation: vrp-enter 0.85s cubic-bezier(0.2, 0.8, 0.25, 1) both; }
/* Fallback if JS fails — show after 900ms */
@keyframes vrp-force-show { to { opacity: 1; } }
body:not(.vrp-loaded) { animation: vrp-force-show 0s linear 900ms forwards; }

/* --- Stagger major sections for a cinematic arrival --- */
.navbar { animation: vrp-slide-down 0.7s cubic-bezier(0.2, 0.8, 0.25, 1) both; }
@keyframes vrp-slide-down {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.social-rail { animation: vrp-slide-left 0.8s 0.25s cubic-bezier(0.2, 0.8, 0.25, 1) both; }
@keyframes vrp-slide-left {
    from { opacity: 0; transform: translate(-24px, -50%); }
    to   { opacity: 1; transform: translate(0, -50%); }
}

footer { animation: vrp-fade-up 1s 0.3s cubic-bezier(0.2, 0.8, 0.25, 1) both; }

/* --- Hero titles: gradient shimmer that slides --- */
@keyframes vrp-text-shimmer {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
.hero-title .title-accent,
.cinema-hero-title,
.applications-hero-title {
    background: linear-gradient(90deg,
        var(--primary-light) 0%,
        #fff 25%,
        var(--primary-light) 50%,
        #fff 75%,
        var(--primary-light) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation:
        vrp-fade-up 0.9s cubic-bezier(0.2, 0.8, 0.25, 1) both,
        vrp-text-shimmer 6s linear 0.9s infinite;
}

/* --- Hero badges: pulsing neon glow --- */
@keyframes vrp-neon-pulse {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(var(--primary-rgb), 0.25),
            0 0 22px rgba(var(--primary-rgb), 0.18);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(var(--primary-rgb), 0.45),
            0 0 38px rgba(var(--primary-rgb), 0.35);
    }
}
.hero-badge {
    animation:
        vrp-fade-up 0.7s cubic-bezier(0.2, 0.8, 0.25, 1) both,
        vrp-neon-pulse 3.5s ease-in-out 1s infinite;
}

/* --- Buttons: entrance, hover, and ripple-click --- */
@keyframes vrp-btn-in {
    from { opacity: 0; transform: translateY(8px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.btn, .btn-connect,
.hero-action-buttons .btn,
.form-actions .btn,
.pac-action-buttons .btn,
.hero-ip, .app-card-apply {
    animation: vrp-btn-in 0.55s cubic-bezier(0.2, 0.8, 0.25, 1) both;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(0.97); transition: transform 0.09s ease; }
.btn-primary:hover, .btn-connect:hover { transform: translateY(-2px); }

/* Extra glow on glow buttons */
.btn-glow {
    position: relative;
    box-shadow: 0 6px 20px -4px rgba(var(--primary-rgb), 0.4);
}
.btn-glow::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    background: conic-gradient(from 0deg,
        rgba(var(--primary-rgb), 0.0),
        rgba(var(--primary-rgb), 0.6),
        rgba(var(--primary-rgb), 0.0) 50%,
        rgba(var(--primary-rgb), 0.6),
        rgba(var(--primary-rgb), 0.0));
    filter: blur(8px);
    opacity: 0.5;
    z-index: -1;
    animation: vrp-conic-spin 4s linear infinite;
}
@keyframes vrp-conic-spin {
    to { transform: rotate(360deg); }
}

/* --- Nav links: gradient underline sweep + icon jiggle on hover --- */
.nav-link {
    position: relative;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 14px; right: 14px; bottom: 4px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary));
    background-size: 200% 100%;
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.25, 1);
    animation: vrp-text-shimmer 3s linear infinite;
    pointer-events: none;
}
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link:hover { transform: translateY(-2px); }
.nav-link:hover i { animation: vrp-icon-jiggle 0.45s ease; }
@keyframes vrp-icon-jiggle {
    0%   { transform: rotate(0) scale(1); }
    40%  { transform: rotate(-8deg) scale(1.15); }
    70%  { transform: rotate(6deg) scale(1.08); }
    100% { transform: rotate(0) scale(1); }
}

/* --- Cards: entrance + juicy hover --- */
@keyframes vrp-card-in {
    from { opacity: 0; transform: translateY(22px) scale(0.98); filter: blur(3px); }
    to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
.application-card,
.reg-card,
.faction-card,
.changelog-card,
.panel-app-card,
.about-card,
.feature-card {
    animation: vrp-card-in 0.65s cubic-bezier(0.2, 0.8, 0.25, 1) both;
    transition:
        transform 0.35s cubic-bezier(0.2, 0.8, 0.25, 1),
        box-shadow 0.35s ease,
        border-color 0.35s ease,
        background 0.35s ease;
}
.application-card:hover,
.reg-card:hover,
.faction-card:hover,
.changelog-card:hover,
.about-card:hover,
.feature-card:hover {
    transform: translateY(-6px) scale(1.012);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(var(--primary-rgb), 0.2),
        0 0 30px rgba(var(--primary-rgb), 0.12);
}

/* Stagger for grids */
.applications-grid > *:nth-child(1),
.reg-cards-grid > *:nth-child(1),
.changelog-grid > *:nth-child(1) { animation-delay: 0.05s; }
.applications-grid > *:nth-child(2),
.reg-cards-grid > *:nth-child(2),
.changelog-grid > *:nth-child(2) { animation-delay: 0.14s; }
.applications-grid > *:nth-child(3),
.reg-cards-grid > *:nth-child(3),
.changelog-grid > *:nth-child(3) { animation-delay: 0.23s; }
.applications-grid > *:nth-child(4),
.reg-cards-grid > *:nth-child(4),
.changelog-grid > *:nth-child(4) { animation-delay: 0.32s; }
.applications-grid > *:nth-child(5),
.reg-cards-grid > *:nth-child(5),
.changelog-grid > *:nth-child(5) { animation-delay: 0.41s; }
.applications-grid > *:nth-child(6),
.reg-cards-grid > *:nth-child(6),
.changelog-grid > *:nth-child(6) { animation-delay: 0.50s; }

/* --- Icons: smooth slow fade-in with a tiny scale pop --- */
@keyframes vrp-icon-fade-slow {
    0%   { opacity: 0; transform: scale(0.72) rotate(-6deg); filter: blur(2px); }
    60%  { opacity: 1; transform: scale(1.08) rotate(2deg); filter: blur(0); }
    100% { transform: scale(1) rotate(0); }
}
.app-card-icon > i,
.reg-card-icon > i,
.card-icon > i,
.feature-icon > i,
.fsb-icon > i,
.dash-card-icon > i,
.panel-stat-card .psc-icon > i,
.hero-ip > i:first-child,
.reg-section-header > i:first-child {
    animation: vrp-icon-fade-slow 1s cubic-bezier(0.2, 0.8, 0.25, 1) 0.1s both;
}

/* Font Awesome icons in navbar & footer: gentle slow fade */
.navbar-menu i[class*="fa-"],
.navbar-actions i[class*="fa-"],
.footer i[class*="fa-"] {
    animation: vrp-icon-fade-slow 0.9s cubic-bezier(0.2, 0.8, 0.25, 1) both;
}
.navbar-menu .nav-link:nth-child(1) i { animation-delay: 0.35s; }
.navbar-menu .nav-link:nth-child(2) i { animation-delay: 0.40s; }
.navbar-menu .nav-link:nth-child(3) i { animation-delay: 0.45s; }
.navbar-menu .nav-link:nth-child(4) i { animation-delay: 0.50s; }
.navbar-menu .nav-link:nth-child(5) i { animation-delay: 0.55s; }
.navbar-menu .nav-link:nth-child(6) i { animation-delay: 0.60s; }
.navbar-menu .nav-link:nth-child(7) i { animation-delay: 0.65s; }

/* --- TOC (regulaminy): smooth scroll + slide-in + active pill --- */
html { scroll-behavior: smooth !important; scroll-padding-top: 90px; }
.reg-section, [id^="section-"], #limits-table { scroll-margin-top: 100px; }

.toc-link {
    position: relative;
    transition:
        color 0.28s ease,
        background 0.28s ease,
        padding-left 0.28s cubic-bezier(0.2, 0.8, 0.25, 1),
        border-color 0.28s ease,
        transform 0.28s ease;
}
.toc-link:hover {
    padding-left: 18px;
    background: color-mix(in srgb, var(--primary) 6%, transparent);
    color: var(--text-bright);
}
.toc-link.active {
    color: var(--primary-light);
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    padding-left: 18px;
}
.toc-link.active::before,
.toc-link:hover::before {
    content: "";
    position: absolute;
    left: 0; top: 6px; bottom: 6px;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--primary), var(--primary-light));
    box-shadow: 0 0 12px var(--primary-glow);
    animation: vrp-fade-up 0.3s ease;
}

/* Reg sections intro */
.reg-section {
    animation: vrp-card-in 0.6s cubic-bezier(0.2, 0.8, 0.25, 1) both;
}
.reg-section:nth-of-type(1) { animation-delay: 0.08s; }
.reg-section:nth-of-type(2) { animation-delay: 0.16s; }
.reg-section:nth-of-type(3) { animation-delay: 0.24s; }
.reg-section:nth-of-type(4) { animation-delay: 0.32s; }
.reg-section:nth-of-type(5) { animation-delay: 0.40s; }
.reg-section:nth-of-type(6) { animation-delay: 0.48s; }
.reg-section:nth-of-type(7) { animation-delay: 0.56s; }

/* Reg section header icon bounce on scroll-arrival */
.reg-section-header {
    transition: border-color 0.3s ease;
}

/* --- User panel: avatar halo pulse + panel hover glow --- */
@keyframes vrp-halo {
    0%   { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.4); }
    80%  { box-shadow: 0 0 0 12px rgba(var(--primary-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0); }
}
.user-panel .user-avatar { animation: vrp-halo 2.4s ease-out infinite; }
.user-panel { transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease; }
.user-panel:hover {
    box-shadow: 0 10px 28px rgba(var(--primary-rgb), 0.22);
    transform: translateY(-2px);
}

/* --- Footer --- */
.footer-col a {
    position: relative;
    transition: color 0.22s ease, padding-left 0.22s ease;
}
.footer-col a::before {
    content: "›";
    position: absolute;
    left: -8px;
    opacity: 0;
    transition: opacity 0.22s ease, left 0.22s ease;
    color: var(--primary);
}
.footer-col a:hover { padding-left: 10px; color: var(--text-bright); }
.footer-col a:hover::before { opacity: 1; left: 0; }

/* Footer status pill: soft float + dot pulse */
.footer-status-pill {
    animation: vrp-soft-float 3.5s ease-in-out infinite;
}
.footer-status-pill .fa-circle { animation: pulse 2s ease-in-out infinite; }

/* --- Inputs focus --- */
.form-input:focus, .form-select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.18), 0 0 20px rgba(var(--primary-rgb), 0.12);
    transition: box-shadow 0.22s ease, border-color 0.22s ease;
}

/* --- HUD corners: soft pulse --- */
.hud-corner {
    animation: vrp-hud-pulse 4s ease-in-out infinite;
}
@keyframes vrp-hud-pulse {
    0%, 100% { opacity: 0.6; }
    50%      { opacity: 1; }
}

/* --- Status-pill dot glow (server status in nav if any) --- */
.pulse-dot, [data-server-dot] {
    filter: drop-shadow(0 0 6px currentColor);
}

/* --- Smooth hero image drift (subtle Ken Burns on active slide) --- */
@keyframes vrp-ken-burns {
    0%   { transform: scale(1.06) translate3d(0, 0, 0); }
    100% { transform: scale(1.14) translate3d(-2%, -1%, 0); }
}
.hero-slide.is-active {
    animation: vrp-ken-burns 14s ease-in-out both;
}

/* --- Disabled application card: grayscale with gentle shimmer --- */
.application-card.is-disabled {
    filter: grayscale(0.65) brightness(0.55);
    transition: filter 0.4s ease;
}
.application-card.is-disabled:hover { filter: grayscale(0.35) brightness(0.7); }

/* --- Scroll-to-top smoothness on anchor links globally --- */
a[href^="#"]:not([href="#"]) { transition: color 0.2s ease; }


/* ============================================================
   Hover lifts — applications page cards, about features, status card
   ============================================================ */

/* Applications page: gentle lift + glow */
.application-card {
    transition:
        transform 0.35s cubic-bezier(0.2, 0.8, 0.25, 1),
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}
.application-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 22px 44px rgba(0, 0, 0, 0.5),
        0 0 0 1px color-mix(in srgb, var(--faction-color, var(--primary)) 40%, transparent),
        0 0 34px color-mix(in srgb, var(--faction-color, var(--primary)) 18%, transparent);
}
.application-card .app-card-apply { transition: transform 0.3s ease, color 0.3s ease; }
.application-card:hover .app-card-apply { transform: translateX(4px); }

/* About-cinema: title, description, features — soft lift on hover */
.about-cinema-feature {
    transition:
        transform 0.3s cubic-bezier(0.2, 0.8, 0.25, 1),
        background 0.3s ease,
        box-shadow 0.3s ease;
    border-radius: var(--radius);
    padding: 0.6rem 0.8rem;
}
.about-cinema-feature:hover {
    transform: translateY(-4px);
    background: color-mix(in srgb, var(--primary) 6%, transparent);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 0 1px color-mix(in srgb, var(--primary) 25%, transparent);
}
.about-cinema-feature .acf-icon {
    transition: transform 0.3s ease, color 0.3s ease;
}
.about-cinema-feature:hover .acf-icon {
    transform: rotate(-8deg) scale(1.12);
    color: var(--primary-light);
}

/* Server stats card (the "status" card in "o nas") */
.server-stats-card,
.about-cinema-right .server-stats-card {
    transition:
        transform 0.35s cubic-bezier(0.2, 0.8, 0.25, 1),
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}
.server-stats-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px color-mix(in srgb, var(--primary) 35%, transparent), 0 0 40px color-mix(in srgb, var(--primary) 18%, transparent);
}
.server-stats-row {
    transition: background 0.25s ease, padding-left 0.25s ease;
    border-radius: 6px;
}
.server-stats-row:hover {
    background: color-mix(in srgb, var(--primary) 5%, transparent);
    padding-left: 0.4rem;
}

/* Hero status badge / footer status pill / online indicators — subtle float + glow */
.hero-badge {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(var(--primary-rgb), 0.32), 0 0 0 1px color-mix(in srgb, var(--primary) 40%, transparent);
}
.footer-status-pill {
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.footer-status-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

/* Server stats head status chip */
.server-stats-head-status {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.server-stats-head-status:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

/* Hero IP copy button — punchy hover */
.hero-ip {
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.hero-ip:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(var(--primary-rgb), 0.22);
}

/* Footer CTA box — bigger lift for drama */
.footer-cta-box {
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.25, 1), box-shadow 0.4s ease;
}
.footer-cta-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px color-mix(in srgb, var(--primary) 30%, transparent);
}

/* Dashboard / dash cards */
.dash-card {
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.25, 1), box-shadow 0.3s ease;
}
.dash-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.38);
}

/* Panel stat cards on /panel.php */
.panel-stat-card {
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.25, 1), box-shadow 0.3s ease;
}
.panel-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.38);
}

/* Changelog line markers: pop + glow on hover for extra delight */
.changelog-line {
    transition: transform 0.22s ease, background 0.22s ease;
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
}
.changelog-line:hover { transform: translateX(4px); }
.changelog-tag { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.changelog-line:hover .changelog-tag { transform: scale(1.1) rotate(-4deg); }


/* ============================================================
   Social rail — centered at half-section, sticky, clickable
   ============================================================ */
.social-rail {
    position: fixed !important;
    top: 50vh !important;
    bottom: auto !important;
    left: max(1rem, env(safe-area-inset-left)) !important;
    transform: translateY(-50%) !important;
    z-index: 1200 !important;
    pointer-events: auto !important;
}
.social-rail.is-hidden {
    transform: translateY(-50%) translateX(-14px) !important;
    opacity: 0;
    pointer-events: none !important;
}
.social-rail-link {
    pointer-events: auto !important;
    cursor: pointer;
    position: relative;
    z-index: 1;
}
/* Body top-shadow must never intercept clicks */
body::before { z-index: 10 !important; pointer-events: none !important; }

/* Entrance animation (preserves centering) */
@keyframes vrp-rail-enter {
    from { opacity: 0; transform: translateY(-50%) translateX(-24px); }
    to   { opacity: 1; transform: translateY(-50%) translateX(0); }
}
.social-rail { animation: vrp-rail-enter 0.7s 0.2s cubic-bezier(0.2, 0.8, 0.25, 1) both !important; }

@media (max-width: 900px) {
    .social-rail {
        left: max(0.5rem, env(safe-area-inset-left)) !important;
    }
    .social-rail-link { width: 44px !important; height: 44px !important; }
}

/* Kill the duplicate nav-link underline (::after). Keep original ::before only */
.nav-link::after { content: none !important; display: none !important; }

/* ============================================================
   User panel — less rounded border (square-ish, smaller radius)
   ============================================================ */
.user-panel {
    border-radius: 10px !important;
}
.user-panel .user-avatar {
    border-radius: 8px !important;
}
.user-dropdown { border-radius: 10px !important; }

/* ============================================================
   Smooth animated background — slow gradient shift
   ============================================================ */
@keyframes vrp-bg-shift {
    0% {
        background-position: 0% 0%, 100% 0%, 0% 100%, 0% 0%;
    }
    50% {
        background-position: 100% 50%, 0% 50%, 100% 100%, 0% 50%;
    }
    100% {
        background-position: 0% 0%, 100% 0%, 0% 100%, 0% 0%;
    }
}
body {
    background-size: 220% 220%, 180% 180%, 200% 200%, 100% 100% !important;
    animation: vrp-bg-shift 60s ease-in-out infinite;
}

/* Subtle parallax on top shadow */
body::before {
    background:
        linear-gradient(180deg,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.55) 22%,
            rgba(0, 0, 0, 0.22) 55%,
            rgba(0, 0, 0, 0) 100%),
        radial-gradient(ellipse 60% 100% at 50% 0%,
            rgba(var(--primary-rgb), 0.12) 0%,
            transparent 60%) !important;
}

/* ============================================================
   Banroom — prettier table
   ============================================================ */
.banroom-table-wrap {
    background: linear-gradient(135deg, rgba(15, 15, 20, 0.7) 0%, rgba(9, 9, 14, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.banroom-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
}
.banroom-table thead {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--primary-rgb), 0.05));
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.25);
}
.banroom-table th,
.banroom-table td {
    text-align: left !important;
    vertical-align: middle;
    border: none;
}
.banroom-table th {
    padding: 1rem 1.2rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--primary-light);
}
.banroom-table tbody tr {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.25s ease, transform 0.25s ease;
}
.banroom-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.015);
}
.banroom-table tbody tr:hover {
    background: color-mix(in srgb, var(--primary) 8%, transparent);
}
.banroom-table td {
    padding: 0.95rem 1.2rem;
    font-size: 0.88rem;
    color: var(--text);
}
.banroom-table td:first-child {
    font-weight: 700;
    color: var(--text-bright);
    white-space: nowrap;
}
.banroom-table td:nth-child(2) {
    color: var(--text-muted);
    max-width: 420px;
}
.banroom-table th:last-child,
.banroom-table td:last-child {
    text-align: center !important;
    width: 160px;
    white-space: nowrap;
}

.ban-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.ban-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}
.ban-status-active {
    background: rgba(248, 113, 113, 0.14);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.35);
}
.ban-status-active .ban-status-dot {
    background: #f87171;
    box-shadow: 0 0 8px #f87171;
}
.ban-status-ended {
    background: rgba(74, 222, 128, 0.12);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}
.ban-status-ended .ban-status-dot {
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
}

/* Responsive banroom */
@media (max-width: 760px) {
    .banroom-table thead { display: none; }
    .banroom-table tbody tr {
        display: block;
        padding: 0.8rem 1rem;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 10px;
        margin-bottom: 0.8rem;
        background: rgba(15, 15, 20, 0.6);
    }
    .banroom-table td {
        display: block;
        padding: 0.4rem 0;
    }
    .banroom-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.7rem;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 0.2rem;
    }
}
