@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #8fc947;
    --primary-dim: rgba(143, 201, 71, 0.12);
    --primary-border: rgba(143, 201, 71, 0.25);
    --primary-glow: rgba(143, 201, 71, 0.35);
    --black: #0a0a0a;
    --dark: #0d0d0d;
    --off-black: #141414;
    --card: #1a1a1a;
    --gray: #2c2c2c;
    --text: #a3a3a3;
    --white: #fafafa;
    --discord: #5865F2;
    --radius: 12px;
    --glass: rgba(0, 0, 0, 0.35);
    --glass-border: rgba(255, 255, 255, 0.08);
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    background: var(--black);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: 0.25s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--primary); color: var(--black); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }

/* ─── LOADING (Vestis) ─── */
.loading-screen {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--black);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: opacity 0.6s, visibility 0.6s;
    overflow: hidden;
}
.loading-screen::before {
    content: ''; position: absolute; inset: 0;
    background: url('/assets/pattern.png') 15% center / cover no-repeat;
    filter: blur(10px); opacity: 0.4;
    animation: loadBgShift 2s ease-in-out infinite;
}
@keyframes loadBgShift { 0%,100%{transform:translate(0,0)} 50%{transform:translate(4px,8px)} }
.loading-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

#page-root {
    opacity: 0;
    transition: opacity 0.5s ease;
}
#page-root.visible { opacity: 1; }
body.page-loading { overflow: hidden; }

body.site-protected {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}
body.site-protected input,
body.site-protected textarea,
body.site-protected select,
body.site-protected [contenteditable="true"],
body.site-protected #appForm,
body.site-protected #appForm * {
    -webkit-user-select: text;
    user-select: text;
}
body.podania-form-active #appForm input,
body.podania-form-active #appForm textarea {
    -webkit-user-select: text;
    user-select: text;
    pointer-events: auto;
}
body.site-protected img,
body.site-protected a img {
    -webkit-user-drag: none;
    user-drag: none;
}
body.site-protected .lightbox.active img {
    pointer-events: auto;
}

.page-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    margin-bottom: 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(143, 201, 71, 0.3);
    background: rgba(143, 201, 71, 0.08);
    color: var(--primary);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.loading-screen .logo-load {
    font-family: 'Inter', sans-serif; font-size: 2rem; font-weight: 800;
    color: var(--white); letter-spacing: 4px; margin-bottom: 1rem;
    position: relative; z-index: 1;
}
.loading-screen .logo-load img { height: 72px; display: block; margin: 0 auto 1rem; }
.loading-screen .logo-load span { color: var(--primary); }
.loading-screen .load-text {
    font-family: 'Rubik', sans-serif; font-size: 0.85rem;
    letter-spacing: 0.4em; color: var(--text); text-transform: uppercase; margin-bottom: 1.5rem;
}
.loading-progress { width: 200px; height: 3px; background: var(--gray); border-radius: 2px; overflow: hidden; }
.loading-progress .bar { height: 100%; width: 0; background: var(--primary); animation: loadProgress 2s ease forwards; }
@keyframes loadProgress { to { width: 100%; } }

/* ─── NAV (pill style) ─── */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 2rem;
    background: transparent;
    pointer-events: none;
}
.site-nav .nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    position: relative;
    pointer-events: auto;
}
.nav-pill {
    display: flex;
    align-items: center;
    background: rgba(12, 14, 18, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.nav-pill-menu {
    padding: 0.35rem;
    gap: 0.15rem;
}
.nav-pill-link {
    padding: 0.65rem 1.15rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #d4d4d8;
    white-space: nowrap;
    transition: 0.2s;
    border: 1px solid transparent;
}
.nav-pill-link:hover {
    color: var(--white);
}
.nav-pill-link.active {
    color: var(--primary);
    border-color: rgba(143, 201, 71, 0.45);
    background: rgba(143, 201, 71, 0.08);
    box-shadow: 0 0 20px rgba(143, 201, 71, 0.12);
}
.nav-pill-side {
    padding: 0.35rem 0.5rem 0.35rem 0.35rem;
    gap: 0;
    flex-shrink: 0;
}
.nav-discord-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    border: 1px solid rgba(143, 201, 71, 0.35);
    background: rgba(143, 201, 71, 0.06);
    transition: 0.2s;
}
.nav-discord-link:hover {
    background: rgba(143, 201, 71, 0.12);
    box-shadow: 0 0 18px rgba(143, 201, 71, 0.15);
}
.nav-discord-link i { font-size: 1rem; }
.icon-discord {
    width: 18px;
    height: 18px;
    display: inline-block;
    flex-shrink: 0;
    background: var(--primary);
    -webkit-mask: url('/assets/discord.svg') center / contain no-repeat;
    mask: url('/assets/discord.svg') center / contain no-repeat;
}
.icon-discord-lg { width: 2.5rem; height: 2.5rem; }
.icon-discord-social { width: 20px; height: 20px; }
.btn-discord .icon-discord { background: #fff; }
.login-icon .icon-discord { background: var(--discord); }
.nav-side-divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 0.35rem;
}
.nav-login-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--white);
    transition: 0.2s;
}
.nav-login-link:hover { color: var(--primary); }
.nav-user-wrap {
    position: relative;
}
.nav-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.85rem 0.35rem 0.35rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--white);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    transition: 0.2s;
}
.nav-profile-btn:hover { background: rgba(255, 255, 255, 0.04); }
.nav-avatar,
.nav-dropdown-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(143, 201, 71, 0.35);
}
.nav-dropdown-avatar { width: 42px; height: 42px; }
.nav-username {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nav-chevron {
    font-size: 0.65rem;
    color: var(--text);
    transition: transform 0.2s;
}
.nav-profile-btn[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }
.nav-dropdown {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 0;
    width: 280px;
    background: rgba(14, 16, 20, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 0.85rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: 0.2s;
    z-index: 1100;
}
.nav-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.35rem 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 0.5rem;
}
.nav-dropdown-header strong {
    display: block;
    color: var(--white);
    font-size: 0.92rem;
    margin-bottom: 0.15rem;
}
.nav-dropdown-header span {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    color: #71717a;
    font-weight: 600;
}
.nav-dropdown-section { padding: 0.35rem 0; }
.nav-dropdown-label {
    display: block;
    padding: 0.35rem 0.5rem;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    color: #71717a;
    font-weight: 700;
}
.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.5rem;
    border-radius: 10px;
    color: #e4e4e7;
    font-size: 0.84rem;
    font-weight: 500;
    transition: 0.2s;
}
.nav-dropdown-item:hover { background: rgba(255, 255, 255, 0.05); color: var(--white); }
.nav-dropdown-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.85rem;
    flex-shrink: 0;
}
.nav-dropdown-icon.admin { color: #fbbf24; }
.nav-dropdown-icon.logout { color: #f87171; }
.nav-dropdown-logout {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0.5rem 0.35rem;
    margin-top: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: #f87171;
    font-size: 0.84rem;
    font-weight: 500;
    transition: 0.2s;
}
.nav-dropdown-logout:hover { color: #fca5a5; }
.menu-toggle {
    display: none;
    position: absolute;
    right: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(12, 14, 18, 0.9);
    color: var(--primary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* legacy logo helpers (footer etc.) */
.logo-nav { display: none; }
.logo-icon-box {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--primary-dim); border: 1px solid var(--primary-border);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.logo-icon-box img { width: 100%; height: 100%; object-fit: contain; }
.logo-text {
    font-family: 'Inter', sans-serif; font-weight: 800; font-size: 1.4rem;
    color: var(--primary); letter-spacing: -0.02em; text-transform: uppercase;
}

/* Vestis glass navbar variant (home) - removed, unified site-nav */

/* ─── VESTIS HERO ─── */
/* React mount (#root) — zawsze widoczny; fade-in robi #page-root */
#root { display: block; overflow-x: hidden; width: 100%; }
.landing-hero {
    position: relative; width: 100%; min-height: 100vh;
    background: url('/assets/bg-hero.png') center center / cover no-repeat;
    overflow: hidden;
}
.landing-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(143,201,71,0.08) 0%, transparent 60%);
}
.landing-hero .char-img {
    position: absolute;
    bottom: 0;
    right: -2cm;
    width: 65vw;
    max-width: none;
    height: auto;
    object-fit: contain;
    object-position: bottom right;
    pointer-events: none;
    z-index: 2;
}

.landing-hero h1 {
    position: absolute; left: 15%; top: 40%; transform: translateY(-50%);
    font-family: 'Inter', system-ui, sans-serif; font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 5.5rem); line-height: 1.05; color: var(--white);
    z-index: 3;
}
.landing-hero h1 .accent { color: var(--primary); }
.landing-hero .hero-desc {
    position: absolute; left: 15.5%; top: 65%; transform: translateY(-50%);
    width: min(420px, 30vw); font-size: clamp(0.8rem, 1vw, 0.95rem); color: var(--text); line-height: 1.8;
    z-index: 3;
}
.landing-hero .hero-buttons {
    position: absolute; left: 15%; top: 78%;
    display: flex; gap: 0.8rem; flex-wrap: wrap;
    z-index: 3;
}
.landing-hero .light {
    position: absolute; width: 200px; height: 120px; filter: blur(80px); pointer-events: none;
}
.light-green { background: var(--primary); }
.light-white { background: #fff; }
.landing-hero .wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    min-width: 100vw;
    height: clamp(60px, 8vw, 120px);
    z-index: 4;
    pointer-events: none;
}

/* Feature boxes (Vestis section 2) */
.landing-features {
    position: relative;
    min-height: 100vh;
    padding: 6rem 0;
    overflow-x: hidden;
    background: url('/assets/bg-features.png') center center / cover no-repeat fixed;
}
.landing-features::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    pointer-events: none;
}
.feature-boxes {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
    padding: 2rem 0;
}
.feature-box {
    position: relative;
    width: min(1100px, 92vw);
    height: clamp(220px, 32vh, 320px);
    background: #212121;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    opacity: 0;
    transform: translateX(80px);
    transition: opacity 0.8s, transform 0.8s;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.feature-box.animate-in { opacity: 1; transform: translateX(0); }
.feature-box.from-left { transform: translateX(-80px); }
.feature-box.from-left.animate-in { transform: translateX(0); }
.feature-box-text {
    position: relative;
    z-index: 2;
    height: 100%;
    max-width: 52%;
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.8rem;
}
.feature-box h2 {
    color: var(--white);
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-weight: 700;
    line-height: 1.3;
}
.feature-box p {
    color: #9a9a9a;
    font-size: clamp(0.8rem, 1.2vw, 0.92rem);
    line-height: 1.7;
    font-weight: 300;
}
.feature-box .box-img {
    position: absolute;
    right: 4%;
    bottom: 0;
    height: 92%;
    width: auto;
    max-width: 36%;
    object-fit: contain;
    object-position: bottom right;
    pointer-events: none;
}

@media (max-width: 768px) {
    .landing-features { background-attachment: scroll; }
    .feature-box {
        height: auto;
        min-height: 280px;
        display: flex;
        flex-direction: column;
    }
    .feature-box-text {
        max-width: 100%;
        padding: 1.5rem 1.5rem 0;
    }
    .feature-box .box-img {
        position: relative;
        right: auto;
        height: 200px;
        max-width: 70%;
        margin: 0 auto 1rem;
        object-position: center bottom;
    }
}

/* ─── BUTTONS ─── */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1.5rem; font-family: inherit;
    font-size: 0.85rem; font-weight: 600;
    letter-spacing: 0.08em; border-radius: 8px; border: 2px solid transparent;
    cursor: pointer; transition: 0.25s;
}
.btn-primary { background: var(--primary); color: var(--black); border-color: var(--primary); }
.btn-primary:hover { box-shadow: 0 0 25px var(--primary-glow); transform: translateY(-2px); }
.btn-discord { background: var(--discord); color: #fff; }
.btn-discord:hover { box-shadow: 0 0 20px rgba(88,101,242,0.4); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--glass-border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.72rem; }
.btn-lg { padding: 1rem 2rem; }
.btn-danger { background: #ef4444; color: #fff; border-color: #ef4444; }

/* ─── PAGE HEADER ─── */
.page-header {
    padding: clamp(100px, 12vw, 140px) clamp(1rem, 4vw, 2rem) 3rem;
    text-align: center;
    background: linear-gradient(180deg, var(--off-black), var(--black));
    border-bottom: 1px solid var(--glass-border);
}
.page-header h1 {
    font-family: 'Inter', sans-serif; font-size: clamp(2rem, 5vw, 3.5rem);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700; color: var(--white);
}
.page-header h1 span { color: var(--primary); }
.page-header p { color: var(--text); margin-top: 0.5rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.15em; }

/* ─── REGULAMIN (Paradise/westrpweb) ─── */
.rules-section { min-height: 100vh; padding: 100px 2rem 4rem; position: relative; }
.rules-overlay {
    position: fixed; inset: 0;
    background: url('/assets/regulamin-bg.png') center center / cover no-repeat;
    z-index: -2;
}
.rules-overlay::after {
    content: ''; position: fixed; inset: 0;
    background: rgba(10, 10, 12, 0.92); z-index: -1;
}
.rules-layout {
    display: flex; gap: 2.5rem; max-width: 1200px; margin: 0 auto; align-items: stretch;
}
.rules-page .rules-section {
    padding: 0;
    min-height: 0;
}
.rules-page .rules-layout {
    min-height: 360px;
    max-width: none;
    margin: 0;
}
.rules-sidebar {
    width: 280px; flex-shrink: 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.rules-sidebar .rules-glass-panel {
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
}
.rules-content-scroll {
    flex: 1;
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding-right: 0.35rem;
    scroll-behavior: smooth;
}
.rules-content-scroll::-webkit-scrollbar { width: 6px; }
.rules-content-scroll::-webkit-scrollbar-thumb {
    background: rgba(143, 201, 71, 0.35);
    border-radius: 999px;
}
.toc-header {
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 0.9rem; font-weight: 700; color: var(--white);
    margin-bottom: 1.2rem; padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--glass-border);
}
.toc-list { display: flex; flex-direction: column; gap: 0.6rem; }
.toc-list a {
    color: var(--text); font-size: 0.78rem; font-weight: 600;
    padding: 0.3rem 0; transition: 0.2s;
}
.toc-list a:hover, .toc-list a.active { color: var(--primary); }
.rules-content-area { flex: 1; display: flex; flex-direction: column; gap: 1.5rem; }
.rule-block {
    background: rgba(26,26,26,0.5); border: 1px solid var(--glass-border);
    border-radius: var(--radius); padding: 2rem;
    scroll-margin-top: 100px; color: var(--text); font-size: 0.88rem; line-height: 1.8;
}
.rule-block h2, .rule-header {
    font-size: 1.1rem; font-weight: 700; color: var(--white);
    margin-bottom: 1rem; padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--glass-border);
}
.rule-block ol, .rule-block ul { padding-left: 1.5rem; }
.rule-block li { margin-bottom: 0.5rem; }
.rule-block strong { color: var(--primary); }

/* ─── GALERIA (Fuego masonry) ─── */
.gallery-section { padding: 2rem 0 5rem; }
.masonry { column-count: 3; column-gap: 1.5rem; }
.masonry-item {
    break-inside: avoid; margin-bottom: 1.5rem; position: relative;
    border-radius: 16px; overflow: hidden; border: 1px solid var(--glass-border);
    cursor: pointer;
}
.masonry-item img {
    width: 100%; display: block; border-radius: 16px;
    transition: transform 0.5s, filter 0.5s;
}
.masonry-item:hover img { transform: scale(1.05); filter: brightness(1.1); }
.masonry-item .masonry-title {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 1rem; background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: var(--white); font-size: 0.85rem; font-weight: 600;
    opacity: 0; transition: 0.3s;
}
.masonry-item:hover .masonry-title { opacity: 1; }

/* ─── ROADMAP (popo historia) ─── */
.roadmap-section { padding: clamp(100px, 12vw, 120px) 0 4rem; }
.roadmap-header { text-align: center; margin-bottom: 4rem; }
.roadmap-header .badge {
    display: inline-block; font-size: 0.65rem; font-weight: 700;
    letter-spacing: 0.3em; text-transform: uppercase; color: var(--primary);
    margin-bottom: 1rem; opacity: 0.8;
}
.roadmap-header h2 {
    font-family: 'Inter', sans-serif; font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800; color: var(--white);
}
.roadmap-header .line {
    width: 80px; height: 4px; background: var(--primary);
    border-radius: 2px; margin: 1.5rem auto 0;
    box-shadow: 0 0 15px var(--primary-glow);
}
.roadmap-timeline { position: relative; max-width: 960px; margin: 0 auto; padding: 0 1rem; }
.roadmap-timeline::before {
    content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
    width: 2px; background: linear-gradient(var(--primary), transparent);
    transform: translateX(-50%);
}
.roadmap-entry {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 1.5rem 2rem;
    align-items: center;
    margin-bottom: 3.5rem;
}
.roadmap-entry .dot {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    left: auto;
    transform: none;
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--black); border: 2px solid var(--primary);
    box-shadow: 0 0 15px var(--primary-glow); z-index: 2;
    justify-self: center;
}
.roadmap-entry.done .dot { background: var(--primary); }
.roadmap-entry.in_progress .dot { border-color: #ffd93d; animation: pulseDot 2s infinite; }
@keyframes pulseDot { 0%,100%{box-shadow:0 0 0 0 rgba(255,217,61,0.4)} 50%{box-shadow:0 0 0 8px rgba(255,217,61,0)} }

.roadmap-card {
    width: 100%; max-width: 380px;
    background: rgba(26,26,26,0.6); border: 1px solid var(--glass-border);
    border-radius: 16px; padding: 1.8rem; transition: 0.3s;
}
.roadmap-entry:nth-child(odd) .roadmap-card {
    grid-column: 1;
    justify-self: end;
}
.roadmap-entry:nth-child(even) .roadmap-card {
    grid-column: 3;
    justify-self: start;
}
.roadmap-card:hover { border-color: var(--primary-border); box-shadow: 0 0 30px rgba(143,201,71,0.08); }
.roadmap-card .date-badge {
    display: inline-block; padding: 0.3rem 0.8rem; border-radius: 50px;
    background: var(--primary-dim); border: 1px solid var(--primary-border);
    color: var(--primary); font-size: 0.75rem; font-weight: 700; margin-bottom: 0.8rem;
}
.roadmap-card h3 {
    font-family: 'Inter', sans-serif; font-size: 1.2rem; font-weight: 800;
    color: var(--white); text-transform: uppercase; margin-bottom: 0.6rem;
}
.roadmap-card p { color: var(--text); font-size: 0.88rem; line-height: 1.6; }
.roadmap-cta { text-align: center; margin-top: clamp(2.5rem, 6vw, 5rem); padding: 0 1rem; }
.roadmap-cta-inner {
    display: inline-block;
    max-width: 640px;
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(20px);
    padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.5rem, 5vw, 3rem);
    border-radius: 1.8rem;
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 40px rgba(143, 201, 71, 0.06);
}
.roadmap-cta h3 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: #fff;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}
.roadmap-cta p { color: var(--text); max-width: 500px; margin: 0 auto 1.5rem; }
.roadmap-cta a {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
}

@media (max-width: 767px) {
    .roadmap-timeline::before { left: 20px; transform: none; }
    .roadmap-entry {
        grid-template-columns: auto 1fr;
        gap: 1rem 1.25rem;
        padding-left: 0.5rem;
    }
    .roadmap-entry .dot {
        grid-column: 1;
        justify-self: center;
    }
    .roadmap-entry .roadmap-card,
    .roadmap-entry:nth-child(odd) .roadmap-card,
    .roadmap-entry:nth-child(even) .roadmap-card {
        grid-column: 2;
        justify-self: stretch;
        max-width: none;
    }
}


.podania-section {
    min-height: 100vh;
    padding: clamp(100px, 12vw, 140px) clamp(1rem, 4vw, 4%) clamp(60px, 8vw, 80px);
    max-width: 1320px;
    margin: 0 auto;
}
.section-header { text-align: center; margin-bottom: clamp(2rem, 5vw, 4rem); }
.section-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}
.section-subtitle {
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    color: var(--text);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}
.podania-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}
.podanie-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(22, 26, 30, 0.95), rgba(12, 14, 18, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.5rem;
    cursor: pointer;
    transition: 0.25s ease;
    min-height: 280px;
}
.podanie-card:hover {
    border-color: rgba(143, 201, 71, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(143, 201, 71, 0.08);
}
.podanie-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.podanie-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(143, 201, 71, 0.1);
    border: 1px solid rgba(143, 201, 71, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--primary);
    flex-shrink: 0;
}
.podanie-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(143, 201, 71, 0.08);
    border: 1px solid rgba(143, 201, 71, 0.2);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
}
.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
}
.podanie-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.15rem, 2.5vw, 1.4rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.65rem;
}
.podanie-description {
    font-size: 0.88rem;
    color: #9ca3af;
    line-height: 1.65;
    margin-bottom: auto;
    flex: 1;
}
.apply-btn {
    width: 100%;
    margin-top: 1.25rem;
    padding: 0.85rem 1rem;
    background: rgba(143, 201, 71, 0.12);
    color: var(--primary);
    border: 1px solid rgba(143, 201, 71, 0.35);
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: 0.25s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
}
.apply-btn:hover {
    background: var(--primary);
    color: var(--black);
    box-shadow: 0 0 24px var(--primary-glow);
}
.form-submit-btn { margin-top: 2rem; }

/* Form (NayRP style4) */
.form-page { display: flex; min-height: 100vh; background: var(--black); padding-top: clamp(80px, 10vw, 100px); }
.form-main h2 {
    font-family: 'Inter', sans-serif;
    color: var(--white);
    margin-bottom: 2rem;
    text-transform: uppercase;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}
.form-sidebar {
    width: 360px; background: var(--off-black); border-right: 1px solid var(--primary-border);
    padding: 2.5rem; position: sticky; top: 70px; height: calc(100vh - 70px); overflow-y: auto;
}
.back-btn {
    display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem 1.2rem;
    border: 2px solid var(--text); color: var(--white); font-weight: 700;
    text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.1em;
    margin-bottom: 2rem; transition: 0.3s; cursor: pointer; background: none;
}
.back-btn:hover { border-color: var(--primary); color: var(--primary); }
.position-info { text-align: center; padding: 1.5rem; border: 1px solid var(--primary-border); }
.position-icon {
    width: 80px; height: 80px; margin: 0 auto 1rem;
    border: 3px solid var(--primary); display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: var(--primary);
}
.form-main { flex: 1; padding: 2.5rem 3rem; overflow-y: auto; }
.form-group { margin-bottom: 1.2rem; }
.form-group label {
    display: block; font-size: 0.75rem; font-weight: 600; color: var(--text);
    text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.4rem;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 0.85rem 1rem; background: var(--off-black);
    border: 1px solid var(--glass-border); border-radius: 8px;
    color: var(--white); font-family: inherit; font-size: 0.9rem;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }

.user-bar {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
    background: var(--off-black); border: 1px solid var(--primary-border);
    padding: 1rem 1.5rem; margin-bottom: 2rem; border-radius: var(--radius);
}
.user-info { display: flex; align-items: center; gap: 0.8rem; }
.user-avatar { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--primary); }
.login-card {
    max-width: 480px;
    margin: 2rem auto 3rem;
    text-align: center;
    padding: clamp(2rem, 5vw, 3rem);
    background: linear-gradient(180deg, rgba(22, 26, 30, 0.95), rgba(12, 14, 18, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
}
.login-card h2 {
    font-family: 'Inter', sans-serif;
    color: var(--white);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 0.65rem;
}
.login-card p {
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.login-icon { font-size: 2.5rem; color: var(--discord); margin-bottom: 1rem; }
.my-apps-section {
    margin-top: clamp(2.5rem, 6vw, 4rem);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.my-apps-section h3 {
    text-align: center;
    color: #6b7280;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.25rem;
}

.my-app-card {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--off-black); border: 1px solid var(--glass-border);
    padding: 1rem 1.2rem; margin-bottom: 0.5rem; border-radius: 8px;
}
.status-badge {
    font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
    padding: 0.25rem 0.6rem; border-radius: 50px;
}
.status-pending { background: rgba(255,217,61,0.15); color: #ffd93d; }
.status-accepted { background: var(--primary-dim); color: var(--primary); }
.status-rejected { background: rgba(239,68,68,0.15); color: #ef4444; }
.status-done { background: var(--primary-dim); color: var(--primary); }
.status-in_progress { background: rgba(255,217,61,0.15); color: #ffd93d; }
.status-planned { background: rgba(255,255,255,0.05); color: #666; }
.empty-text { text-align: center; color: #555; padding: 2rem; }


.admin-page { background: #080a0c; }
.access-denied {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 2rem;
}
.access-denied-card {
    text-align: center;
    max-width: 420px;
    padding: 2.5rem;
    background: linear-gradient(180deg, rgba(22, 26, 30, 0.95), rgba(12, 14, 18, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
}
.access-denied-card > i.fa-shield-halved {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}
.access-denied-card h1 { color: #fff; font-family: 'Inter', sans-serif; margin-bottom: 0.5rem; }
.access-denied-card p { color: var(--text); margin-bottom: 1.5rem; }
.access-denied-card .btn-discord {
    width: 100%;
    justify-content: center;
}
.access-denied-card .btn-discord i {
    color: #fff;
    font-size: 1.1rem;
}

.admin-shell {
    display: flex;
    min-height: 100vh;
    padding: clamp(90px, 10vw, 110px) clamp(0.75rem, 2vw, 1.5rem) 1.5rem;
    gap: 1.25rem;
    max-width: 1600px;
    margin: 0 auto;
}
.admin-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: linear-gradient(180deg, rgba(18, 22, 28, 0.96), rgba(10, 12, 16, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.25rem 0.75rem;
    height: fit-content;
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.admin-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 0.5rem;
}
.admin-brand strong { display: block; color: #fff; font-size: 0.95rem; }
.admin-brand span { font-size: 0.68rem; color: #6b7280; text-transform: uppercase; letter-spacing: 0.1em; }
.admin-nav-label {
    display: block;
    padding: 0.5rem 0.85rem;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #6b7280;
    font-weight: 700;
}
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.85rem;
    margin: 0.1rem 0;
    border-radius: 12px;
    font-size: 0.84rem;
    color: #d1d5db;
    transition: 0.2s;
    border: 1px solid transparent;
}
.admin-nav a:hover,
.admin-nav a.active {
    color: #fff;
    background: rgba(143, 201, 71, 0.1);
    border-color: rgba(143, 201, 71, 0.2);
}
.admin-nav a i { color: var(--primary); width: 18px; text-align: center; }
.admin-back-link {
    margin-top: auto;
    padding: 0.75rem 0.85rem;
    font-size: 0.8rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.admin-back-link:hover { color: var(--primary); }

.admin-content { flex: 1; min-width: 0; }
.admin-topbar { margin-bottom: 1.25rem; }
.admin-topbar-label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6b7280;
    margin-bottom: 0.25rem;
}
.admin-topbar h1 {
    font-family: 'Inter', sans-serif;
    color: #fff;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
}
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}
.admin-stat-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    background: linear-gradient(180deg, rgba(22, 26, 30, 0.95), rgba(12, 14, 18, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}
.admin-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(143, 201, 71, 0.1);
    border: 1px solid rgba(143, 201, 71, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}
.admin-stat-icon.pending { background: rgba(255, 217, 61, 0.1); border-color: rgba(255, 217, 61, 0.2); color: #ffd93d; }
.admin-stat-icon.success { background: rgba(143, 201, 71, 0.15); }
.admin-stat-icon.info { background: rgba(96, 165, 250, 0.1); border-color: rgba(96, 165, 250, 0.2); color: #60a5fa; }
.admin-stat-value { display: block; font-size: 1.35rem; font-weight: 800; color: #fff; line-height: 1.1; }
.admin-stat-label { font-size: 0.68rem; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.08em; }

.admin-panel { display: none; }
.admin-panel.active { display: block; }
.admin-card {
    background: linear-gradient(180deg, rgba(22, 26, 30, 0.95), rgba(12, 14, 18, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: 1rem;
}
.admin-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}
.admin-card-head h2 {
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.admin-hint { color: var(--text); font-size: 0.82rem; margin-bottom: 1rem; }
.admin-filters { display: flex; gap: 0.65rem; flex-wrap: wrap; align-items: center; }
.admin-filters select,
.admin-filters .ws-select {
    min-width: 160px;
}
.admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; min-width: 720px; }
.mono-cell { font-size: 0.75rem; font-family: ui-monospace, Consolas, monospace; color: #d1d5db; }
.ip-cell { color: #93c5fd; }
.ip-spoiler {
    display: inline-block;
    color: transparent;
    background: rgba(78, 80, 88, 0.95);
    border-radius: 4px;
    padding: 0.15rem 0.45rem;
    cursor: pointer;
    user-select: none;
    filter: blur(5px);
    transition: color 0.2s ease, background 0.2s ease, filter 0.2s ease;
}
.ip-spoiler:hover,
.ip-spoiler:focus-visible,
.ip-spoiler.is-revealed {
    color: #93c5fd;
    background: rgba(147, 197, 253, 0.1);
    filter: blur(0);
    user-select: text;
}
.admin-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.25);
    color: #9ca3af;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}
.admin-table td { padding: 0.75rem 1rem; border-top: 1px solid rgba(255, 255, 255, 0.04); color: var(--text); }
.admin-table .user-cell { display: flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.admin-table .user-cell img { width: 28px; height: 28px; border-radius: 50%; }
.admin-gallery-grid { column-count: 2; padding: 0; }
.editor-area {
    width: 100%; min-height: 400px; padding: 1rem;
    background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px; color: #fff; font-family: inherit; line-height: 1.7; resize: vertical;
}
.editor-area:focus { outline: none; border-color: var(--primary); }
.admin-mobile-nav { display: none; gap: 0.5rem; overflow-x: auto; margin-bottom: 1rem; padding-bottom: 0.25rem; }
.admin-mobile-nav button {
    flex-shrink: 0; padding: 0.5rem 0.9rem; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(0, 0, 0, 0.3);
    color: var(--text); font-size: 0.75rem; cursor: pointer; font-family: inherit;
}
.admin-mobile-nav button.active { color: var(--primary); border-color: rgba(143, 201, 71, 0.35); background: rgba(143, 201, 71, 0.08); }
.app-detail { background: rgba(0, 0, 0, 0.25); border-radius: 12px; padding: 1rem; margin-top: 0.8rem; border: 1px solid rgba(255,255,255,0.06); }
.app-detail dt { color: var(--primary); font-size: 0.72rem; font-weight: 600; margin-top: 0.5rem; }
.app-detail dd { color: var(--text); font-size: 0.85rem; }

/* ─── FOOTER ─── */
.site-footer {
    background: var(--off-black); border-top: 1px solid var(--glass-border);
    padding: 3rem 4% 1.5rem;
}
.footer-inner {
    max-width: 1600px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.8rem; }
.footer-logo-text { font-family: 'Inter', sans-serif; font-weight: 800; color: var(--primary); font-size: 1.2rem; }
.footer-socials { display: flex; gap: 1rem; }
.social-icon {
    width: 42px; height: 42px; border-radius: 10px;
    background: var(--card); border: 1px solid var(--glass-border);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 1.1rem; transition: 0.2s;
}
.social-icon:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 0 16px rgba(143, 201, 71, 0.22);
}
.site-footer .social-icon .icon-discord {
    background: var(--discord);
}
.icon-fivem {
    width: 20px;
    height: 20px;
    display: block;
    object-fit: contain;
}
.icon-fivem-btn {
    width: 18px;
    height: 18px;
    filter: brightness(0);
}
.btn-primary .icon-fivem-btn { filter: brightness(0); }
.footer-copy { text-align: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--glass-border); font-size: 0.75rem; color: #444; }

/* ─── LIGHTBOX ─── */
.lightbox {
    position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,0.92);
    display: none; align-items: center; justify-content: center; padding: 2rem;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 85vh; border-radius: 12px; }
.lightbox-close {
    position: absolute; top: 1.5rem; right: 2rem;
    background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer;
}

/* ─── REVEAL ─── */
.reveal { opacity: 0; transform: translateY(25px); transition: 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .masonry { column-count: 2; }
    .rules-layout { flex-direction: column; height: auto !important; min-height: 0; }
    .rules-page .rules-section { min-height: auto; }
    .rules-page .rules-layout { min-height: 0; }
    .rules-sidebar { width: 100%; }
    .rules-sidebar .rules-glass-panel {
        max-height: none;
        position: static;
        overflow: visible;
    }
    .rules-content-scroll {
        max-height: none !important;
        overflow: visible !important;
        padding-right: 0;
    }
    .rules-page .ws-page-wrap {
        padding-bottom: 2rem;
    }
    .rules-page .rule-block {
        scroll-margin-top: 88px;
        padding: 1.25rem;
    }
    .rules-page #footer-placeholder,
    .rules-page .site-footer {
        position: relative;
        z-index: 1;
    }
    .form-page { flex-direction: column; }
    .form-sidebar { width: 100%; position: static; height: auto; }
}
@media (max-width: 1100px) {
    .nav-pill-link { padding: 0.6rem 0.85rem; font-size: 0.76rem; }
    .nav-username { max-width: 90px; }
}
@media (max-width: 900px) {
    .site-nav { padding: 1rem; }
    .site-nav .nav-inner {
        justify-content: flex-start;
        padding-right: 52px;
    }
    .nav-pill-menu {
        flex: 1;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .nav-pill-menu::-webkit-scrollbar { display: none; }
    .nav-pill-side {
        position: static;
        margin-left: 0;
        flex-shrink: 0;
    }
    .nav-discord-link span { display: none; }
    .nav-discord-link,
    .nav-login-link { padding: 0.55rem 0.7rem; }
}
@media (max-width: 768px) {
    .menu-toggle { display: inline-flex; }
    .nav-pill-menu,
    .nav-pill-side {
        position: fixed;
        left: 1rem;
        right: 1rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: 0.25s;
        z-index: 1001;
    }
    .nav-pill-menu {
        top: 4.5rem;
        flex-direction: column;
        align-items: stretch;
        padding: 0.5rem;
        border-radius: 16px;
    }
    .nav-pill-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .nav-pill-side {
        top: auto;
        bottom: 1rem;
        justify-content: center;
        padding: 0.5rem;
    }
    .nav-pill-side.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .nav-pill-link { text-align: center; }
    .nav-discord-link span,
    .nav-login-link span { display: inline; }
    .nav-dropdown {
        position: fixed;
        left: 1rem;
        right: 1rem;
        width: auto;
        bottom: 5.5rem;
        top: auto;
    }
    .landing-hero .char-img { width: 95vw; right: -12%; opacity: 0.9; }
    .landing-hero h1 { left: 5%; font-size: clamp(1.6rem, 8vw, 2rem); top: 32%; }
    .landing-hero .hero-desc { left: 5%; width: 90%; top: 50%; }
    .landing-hero .hero-buttons { left: 5%; top: 64%; width: 90%; }
    .masonry { column-count: 1; }
    .admin-sidebar { display: none; }
    .admin-shell { flex-direction: column; padding-top: 5.5rem; }
    .admin-content { margin-left: 0; }
    .admin-mobile-nav { display: flex; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
    .rules-section { padding: 90px 1rem 3rem; }
    .rules-page .ws-page-wrap {
        padding-top: clamp(88px, 14vw, 110px);
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .rules-page .rules-search-glass-row { flex-wrap: wrap; }
    .rules-page .toc-list { max-height: none; }
    .form-main { padding: 1.5rem; }
}
@media (min-width: 769px) {
    .nav-pill-menu,
    .nav-pill-side {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        position: static !important;
    }
    .admin-mobile-nav { display: none !important; }
}

/* ─── POWIADOMIENIA (globalne) ─── */
.site-confirm:not(.show) { display: none !important; }
.toast-container {
    position: fixed;
    top: 1.1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10050;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    width: min(520px, calc(100vw - 2rem));
    pointer-events: none;
}
.toast-container:empty { display: none; }
.site-toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: rgba(12, 16, 22, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
    color: #e5e7eb;
    font-size: 0.88rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(-14px);
    transition: 0.25s ease;
    backdrop-filter: blur(12px);
}
.site-toast.show { opacity: 1; transform: translateY(0); }
.site-toast.hide { opacity: 0; transform: translateY(-10px); }
.site-toast i { font-size: 1.05rem; flex-shrink: 0; }
.site-toast span { flex: 1; line-height: 1.4; }
.site-toast--success { border-color: rgba(143, 201, 71, 0.4); }
.site-toast--success i { color: var(--primary); }
.site-toast--error { border-color: rgba(248, 113, 113, 0.4); }
.site-toast--error i { color: #f87171; }
.site-toast--warning { border-color: rgba(251, 191, 36, 0.4); }
.site-toast--warning i { color: #fbbf24; }
.site-toast--info { border-color: rgba(96, 165, 250, 0.35); }
.site-toast--info i { color: #60a5fa; }
.site-toast-close {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #9ca3af;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ─── COOKIES BANNER ─── */
.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%) translateY(120%);
    z-index: 10040;
    width: min(720px, calc(100vw - 2rem));
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
    pointer-events: none;
}
.cookie-banner.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.cookie-banner-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(18, 22, 28, 0.97), rgba(10, 12, 16, 0.95));
    border: 1px solid rgba(143, 201, 71, 0.28);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(143, 201, 71, 0.08);
    backdrop-filter: blur(16px);
}
.cookie-banner-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 14px;
    background: rgba(143, 201, 71, 0.12);
    border: 1px solid rgba(143, 201, 71, 0.25);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.cookie-banner-text { flex: 1; min-width: 0; }
.cookie-banner-text strong {
    display: block;
    color: #fff;
    font-size: 0.92rem;
    margin-bottom: 0.25rem;
}
.cookie-banner-text p {
    margin: 0;
    color: #9ca3af;
    font-size: 0.78rem;
    line-height: 1.5;
}
.cookie-banner-btn {
    flex-shrink: 0;
    padding: 0.7rem 1.25rem;
    border: none;
    border-radius: 12px;
    background: var(--primary);
    color: #0a0a0a;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 0 20px rgba(143, 201, 71, 0.25);
}
.cookie-banner-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}
@media (max-width: 640px) {
    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .cookie-banner-icon { margin: 0 auto; }
    .cookie-banner-btn { width: 100%; }
}



.admin-page #nav-placeholder { display: none !important; }
.admin-page { background: #06080b; }

.ws-admin {
    display: flex;
    min-height: 100vh;
    gap: 1.25rem;
    padding: 1.25rem;
    max-width: 1680px;
    margin: 0 auto;
}

/* Sidebar */
.ws-sidebar {
    width: 260px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-self: flex-start;
    position: sticky;
    top: 1.25rem;
    max-height: calc(100vh - 2.5rem);
    overflow-y: auto;
}
.ws-session-card {
    padding: 1rem;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(143, 201, 71, 0.12), rgba(12, 16, 22, 0.95));
    border: 1px solid rgba(143, 201, 71, 0.22);
    box-shadow: 0 0 40px rgba(143, 201, 71, 0.08);
}
.ws-session-card .ws-brand-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}
.ws-session-card .ws-brand-row img { width: 40px; height: 40px; border-radius: 10px; }
.ws-session-card strong { display: block; color: #fff; font-size: 0.95rem; }
.ws-session-card span { font-size: 0.72rem; color: #9ca3af; }
.ws-session-user {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    color: #9ca3af;
}
.ws-session-user b { color: #e5e7eb; }

.ws-nav-group { margin-top: 0.25rem; }
.ws-nav-label {
    display: block;
    padding: 0.5rem 0.85rem;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    color: #6b7280;
    font-weight: 700;
}
.ws-nav-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.85rem;
    margin: 0.15rem 0;
    border-radius: 14px;
    color: #d1d5db;
    font-size: 0.84rem;
    border: 1px solid transparent;
    transition: 0.2s;
    text-decoration: none;
}
button.ws-nav-link {
    width: 100%;
    background: transparent;
    border: 1px solid transparent;
    font: inherit;
    font-size: 0.84rem;
    cursor: pointer;
    text-align: left;
    appearance: none;
    -webkit-appearance: none;
}
button.ws-nav-link:hover { background: rgba(255, 255, 255, 0.04); color: #fff; }
button.ws-nav-link.active {
    color: #fff;
    background: rgba(143, 201, 71, 0.08);
    border-color: rgba(143, 201, 71, 0.35);
    box-shadow: 0 0 24px rgba(143, 201, 71, 0.1);
}
.ws-nav-link i { width: 18px; text-align: center; color: var(--primary); }
.ws-nav-link:hover { background: rgba(255, 255, 255, 0.04); color: #fff; }
.ws-nav-link.active {
    color: #fff;
    background: rgba(143, 201, 71, 0.08);
    border-color: rgba(143, 201, 71, 0.35);
    box-shadow: 0 0 24px rgba(143, 201, 71, 0.1);
}
.ws-logout {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 14px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    font-size: 0.84rem;
    font-weight: 600;
}
.ws-logout:hover { background: rgba(239, 68, 68, 0.15); color: #fecaca; }

/* Main */
.ws-main { flex: 1; min-width: 0; }
.ws-breadcrumbs {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 1rem;
}
.ws-breadcrumbs a:hover { color: var(--primary); }
.ws-breadcrumbs span { color: #9ca3af; }

.ws-hero-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.25rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(143, 201, 71, 0.1), rgba(12, 16, 22, 0.95) 45%);
    border: 1px solid rgba(143, 201, 71, 0.18);
    box-shadow: 0 0 50px rgba(143, 201, 71, 0.06);
}
.ws-hero-card h1 {
    font-family: 'Inter', sans-serif;
    color: #fff;
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    margin-top: 0.25rem;
}
.ws-hero-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
}
.ws-hero-greet { color: #9ca3af; font-size: 0.88rem; margin-top: 0.35rem; }

.ws-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}
.ws-stat {
    padding: 1.1rem 1.2rem;
    border-radius: 16px;
    background: rgba(14, 18, 24, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.07);
    position: relative;
    overflow: hidden;
}
.ws-stat::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(143, 201, 71, 0.08), transparent 55%);
    pointer-events: none;
}
.ws-stat-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}
.ws-stat-label { font-size: 0.72rem; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.08em; }
.ws-stat-badge {
    font-size: 0.58rem;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: rgba(143, 201, 71, 0.12);
    border: 1px solid rgba(143, 201, 71, 0.25);
    color: var(--primary);
    font-weight: 700;
}
.ws-stat-value {
    font-size: clamp(1.6rem, 4vw, 2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.ws-grid-2 {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.ws-card {
    background: rgba(14, 18, 24, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    padding: 1.25rem;
}
.ws-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.ws-card-head h3 {
    color: #fff;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.ws-card-head p { font-size: 0.75rem; color: #6b7280; margin-top: 0.25rem; }

.ws-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
    height: 140px;
    padding-top: 0.5rem;
}
.ws-chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    height: 100%;
    justify-content: flex-end;
}
.ws-chart-bar .bar {
    width: 100%;
    max-width: 36px;
    border-radius: 8px 8px 4px 4px;
    background: linear-gradient(180deg, var(--primary), rgba(143, 201, 71, 0.2));
    box-shadow: 0 0 20px rgba(143, 201, 71, 0.25);
    min-height: 4px;
}
.ws-chart-bar span { font-size: 0.65rem; color: #6b7280; }

.ws-status-list { display: flex; flex-direction: column; gap: 0.65rem; }
.ws-status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.ws-status-item .left { display: flex; align-items: center; gap: 0.55rem; color: #e5e7eb; font-size: 0.84rem; }
.ws-dot { width: 8px; height: 8px; border-radius: 50%; }
.ws-dot.green { background: var(--primary); box-shadow: 0 0 8px var(--primary-glow); }
.ws-dot.yellow { background: #fbbf24; }
.ws-dot.red { background: #f87171; }
.ws-status-item strong { color: #fff; font-size: 1.1rem; }

.ws-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: 0.75rem;
}
.ws-quick-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: 0.2s;
    text-align: left;
    text-decoration: none;
    color: inherit;
}
button.ws-quick-card {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
}
.ws-quick-card:hover {
    border-color: rgba(143, 201, 71, 0.3);
    background: rgba(143, 201, 71, 0.05);
}
.ws-quick-card .icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(143, 201, 71, 0.1);
    border: 1px solid rgba(143, 201, 71, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}
.ws-quick-card strong { display: block; color: #fff; font-size: 0.86rem; }
.ws-quick-card small { color: #6b7280; font-size: 0.72rem; }

.ws-panel { display: none; }
.ws-panel.active { display: block; }

.ws-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.ws-page-head h1 {
    font-family: 'Inter', sans-serif;
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2rem);
}
.ws-mini-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}
.ws-mini-stat {
    padding: 0.65rem 1rem;
    border-radius: 12px;
    background: rgba(14, 18, 24, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.75rem;
    color: #9ca3af;
}
.ws-mini-stat b { color: #fff; font-size: 1rem; margin-right: 0.35rem; }

.ws-faction-group { margin-bottom: 2rem; }
.ws-factions-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.ws-faction-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.ws-faction-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(14, 18, 24, 0.9);
    color: #d1d5db;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
}
.ws-faction-chip i { color: var(--primary); font-size: 0.85rem; }
.ws-faction-chip:hover { border-color: rgba(143, 201, 71, 0.35); color: #fff; }
.ws-faction-chip.active {
    background: rgba(143, 201, 71, 0.12);
    border-color: rgba(143, 201, 71, 0.45);
    color: #fff;
    box-shadow: 0 0 20px rgba(143, 201, 71, 0.12);
}
.ws-faction-chip-status {
    font-size: 0.58rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    letter-spacing: 0.05em;
}
.ws-faction-chip-status.open { background: rgba(143, 201, 71, 0.15); color: var(--primary); }
.ws-faction-chip-status.closed { background: rgba(107, 114, 128, 0.2); color: #9ca3af; }

.ws-faction-editor {
    width: 100%;
    padding: 1.75rem 2rem;
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(18, 22, 28, 0.98), rgba(10, 12, 16, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.ws-faction-editor--new { border-color: rgba(143, 201, 71, 0.25); }
.ws-faction-editor-empty {
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 20px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    color: #6b7280;
}
.ws-faction-editor-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ws-faction-editor-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.ws-faction-editor-title h2 {
    margin: 0;
    font-size: 1.35rem;
    color: #fff;
    font-weight: 800;
}
.ws-faction-editor-title .slug {
    font-size: 0.78rem;
    color: #6b7280;
}
.ws-faction-editor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.5rem;
}
.ws-faction-editor-grid .span-2 { grid-column: 1 / -1; }
.ws-faction-editor-grid .form-group label {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 0.4rem;
    font-weight: 600;
}
.ws-faction-editor-grid .form-group input,
.ws-faction-editor-grid .form-group select {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.88rem;
    font-family: inherit;
}
.ws-faction-editor-grid .form-group input:focus,
.ws-faction-editor-grid .form-group select:focus {
    outline: none;
    border-color: rgba(143, 201, 71, 0.45);
}
.ws-faction-open-toggle {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 1.25rem 0;
    color: #d1d5db;
    font-size: 0.88rem;
    cursor: pointer;
}
.ws-faction-editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.ws-faction-editor-actions .ws-btn-outline,
.ws-faction-editor-actions .ws-btn-primary {
    padding: 0.7rem 1.25rem;
    font-size: 0.82rem;
}
.ws-btn-outline.danger {
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.35);
    margin-right: auto;
}
.ws-btn-outline.danger:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.5);
}

.ws-questions-editor {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.ws-questions-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.ws-questions-head h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    color: #fff;
}
.ws-questions-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.ws-question-row {
    padding: 1rem 1.1rem;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.ws-question-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}
.ws-question-row-head strong {
    color: var(--primary);
    font-size: 0.82rem;
}
.ws-question-row-actions {
    display: flex;
    gap: 0.35rem;
}
.ws-question-required {
    display: flex;
    align-items: flex-end;
}

.ws-back-btn {
    margin-bottom: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
.ws-faction-editor--questions .ws-questions-editor {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}
.ws-faction-questions-cta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1.25rem;
    padding: 1.35rem 1.5rem;
    border-radius: 16px;
    background: rgba(143, 201, 71, 0.06);
    border: 1px solid rgba(143, 201, 71, 0.2);
    flex-wrap: wrap;
}
.ws-faction-questions-cta-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(143, 201, 71, 0.12);
    border: 1px solid rgba(143, 201, 71, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}
.ws-faction-questions-cta h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    color: #fff;
}
.ws-faction-questions-cta > div:nth-child(2) {
    flex: 1;
    min-width: 180px;
}
.ws-faction-questions-cta .ws-btn-primary {
    margin-left: auto;
    white-space: nowrap;
}

.ws-faction-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}
.ws-faction-group-head h3 {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: #9ca3af;
    font-weight: 700;
}
.ws-faction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 0.85rem;
}
.ws-faction-admin-card {
    padding: 1.1rem;
    border-radius: 16px;
    background: rgba(14, 18, 24, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.07);
}
.ws-faction-admin-card .top {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}
.ws-faction-admin-card .doc-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(143, 201, 71, 0.1);
    border: 1px solid rgba(143, 201, 71, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}
.ws-faction-admin-card .title { color: #fff; font-weight: 700; }
.ws-faction-admin-card .slug { font-size: 0.72rem; color: #6b7280; }
.ws-badge-open {
    margin-left: auto;
    font-size: 0.62rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.06em;
}
.ws-badge-open.open { background: rgba(143, 201, 71, 0.12); color: var(--primary); border: 1px solid rgba(143, 201, 71, 0.3); }
.ws-badge-open.closed { background: rgba(107, 114, 128, 0.15); color: #9ca3af; border: 1px solid rgba(107, 114, 128, 0.3); }
.ws-badge-status {
    font-size: 0.62rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.06em;
}
.ws-badge-status.closed { background: rgba(248, 113, 113, 0.1); color: #f87171; border: 1px solid rgba(248, 113, 113, 0.35); }
.ws-badge-status.open { background: rgba(143, 201, 71, 0.12); color: var(--primary); border: 1px solid rgba(143, 201, 71, 0.3); }
.rule-block.search-hit { box-shadow: 0 0 0 1px rgba(143, 201, 71, 0.35); }
.ws-faction-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: #9ca3af;
    margin-bottom: 0.85rem;
}
.ws-manager-pill {
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: rgba(143, 201, 71, 0.1);
    border: 1px solid rgba(143, 201, 71, 0.2);
    color: var(--primary);
    font-size: 0.68rem;
}
.ws-faction-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
.ws-btn-outline, .ws-btn-primary {
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    color: #e5e7eb;
    font-family: inherit;
}
.ws-btn-primary {
    background: rgba(143, 201, 71, 0.15);
    border-color: rgba(143, 201, 71, 0.35);
    color: var(--primary);
}
.ws-btn-outline:hover { border-color: rgba(255, 255, 255, 0.25); }
.ws-btn-primary:hover { background: var(--primary); color: #000; }

.ws-save-bar {
    position: sticky;
    bottom: 0;
    margin-top: 1.5rem;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, transparent, #06080b 30%);
}
.ws-save-bar p { font-size: 0.78rem; color: #6b7280; max-width: 480px; }


.ws-page-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(100px, 12vw, 130px) clamp(1rem, 4vw, 2rem) 4rem;
}
.ws-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.ws-tab {
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #9ca3af;
    background: rgba(14, 18, 24, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: 0.2s;
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
}
.ws-tab.active {
    color: #fff;
    background: rgba(143, 201, 71, 0.15);
    border-color: rgba(143, 201, 71, 0.35);
    box-shadow: 0 0 20px rgba(143, 201, 71, 0.1);
}
.ws-tab .count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 0.35rem;
    margin-left: 0.35rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    font-size: 0.68rem;
}

.ws-public-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1rem;
}
.ws-public-card {
    padding: 1.25rem;
    border-radius: 18px;
    background: rgba(14, 18, 24, 0.92);
    content-visibility: auto;
    contain-intrinsic-size: auto 220px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: 0.2s;
}
.ws-public-card.closed { opacity: 0.65; }
.ws-public-card .card-top {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}
.ws-public-card .card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(143, 201, 71, 0.1);
    border: 1px solid rgba(143, 201, 71, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
}
.ws-public-card h3 { color: #fff; font-size: 1.05rem; font-weight: 700; }
.ws-public-card .sub { font-size: 0.68rem; color: #6b7280; letter-spacing: 0.08em; margin-top: 0.15rem; }
.ws-public-card .status-row { margin-left: auto; }
.ws-public-actions { display: flex; flex-direction: column; gap: 0.5rem; }
.ws-public-actions .ws-btn-primary,
.ws-public-actions .ws-btn-outline { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; }
.ws-public-actions .ws-btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: rgba(107, 114, 128, 0.2);
    border-color: rgba(107, 114, 128, 0.3);
    color: #9ca3af;
}
.ws-closed-note { font-size: 0.72rem; color: #9ca3af; text-align: center; margin-bottom: 0.25rem; }
.ws-public-actions .ws-btn-outline .icon-discord {
    width: 16px;
    height: 16px;
    background: #9ca3af;
}

/* Regulamin extras */
.rules-glass-panel {
    background: rgba(26, 26, 26, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1.25rem;
    backdrop-filter: blur(12px);
}
.rules-search-glass {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.rules-search-glass label {
    display: block;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    color: #6b7280;
    margin-bottom: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}
.rules-search-glass-row {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
}
.rules-search-glass-input {
    flex: 1;
    min-width: 0;
}
.rules-search-glass-input input {
    width: 100%;
    padding: 0.35rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s;
}
.rules-search-glass-input input::placeholder { color: #6b7280; }
.rules-search-glass-input input:focus { border-bottom-color: var(--primary); }
.rules-search-glass-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: transparent;
    border: 1px solid rgba(143, 201, 71, 0.4);
    color: var(--primary);
    cursor: pointer;
    transition: 0.2s;
}
.rules-search-glass-btn:hover {
    background: rgba(143, 201, 71, 0.12);
}
.rules-search-box {
    padding: 1rem;
    border-radius: 16px;
    background: rgba(14, 18, 24, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1rem;
}
.rules-search-box label {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: #6b7280;
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.rules-search-row { display: flex; gap: 0.5rem; }
.rules-search-row input {
    flex: 1;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.85rem;
}
.rules-search-row button {
    width: 42px;
    border-radius: 10px;
    background: rgba(143, 201, 71, 0.15);
    border: 1px solid rgba(143, 201, 71, 0.35);
    color: var(--primary);
    cursor: pointer;
}

/* Rules editor (admin) */
.rules-doc-meta { margin-bottom: 1rem; }
.rules-sections-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.25rem 0 0.75rem;
}
.rules-sections-toolbar h3 { margin: 0; font-size: 1rem; color: #fff; }
.rules-section-card {
    background: rgba(14, 18, 24, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}
.rules-section-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid transparent;
}
.rules-section-head:hover { background: rgba(255, 255, 255, 0.04); }
.rules-section-toggle {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 8px;
    background: rgba(143, 201, 71, 0.1);
    color: var(--primary);
    cursor: pointer;
}
.rules-section-label { flex: 1; font-size: 0.85rem; color: #d1d5db; }
.rules-section-actions { display: flex; gap: 0.35rem; }
.rules-section-body { padding: 1rem 1.25rem 1.25rem; }
.rte-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
}
.rte-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px 12px 0 0;
}
.rte-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 0.25rem;
    flex-shrink: 0;
}
.rte-btn, .rte-mini {
    min-width: 32px;
    height: 32px;
    padding: 0 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: #9ca3af;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.15s;
}
.rte-btn:hover, .rte-mini:hover {
    background: rgba(143, 201, 71, 0.12);
    border-color: rgba(143, 201, 71, 0.35);
    color: #fff;
}
.rte-btn.active {
    background: rgba(143, 201, 71, 0.2);
    border-color: rgba(143, 201, 71, 0.55);
    color: var(--primary);
    box-shadow: 0 0 12px rgba(143, 201, 71, 0.15);
}
.rte-btn.active span { color: var(--primary); }
.rte-mini.danger { color: #fca5a5; border-color: rgba(239, 68, 68, 0.25); }
.rte-mini.danger:hover { background: rgba(239, 68, 68, 0.15); }
.rte-mini:disabled { opacity: 0.35; cursor: not-allowed; }
.rte-editor {
    min-height: 180px;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: none;
    border-radius: 0 0 12px 12px;
    color: #9ca3af;
    font-size: 0.88rem;
    line-height: 1.7;
    outline: none;
}
.rte-editor:focus { box-shadow: inset 0 0 0 1px rgba(143, 201, 71, 0.25); }
.rte-editor p {
    color: #9ca3af;
    margin: 0.45rem 0;
    font-size: 0.88rem;
    line-height: 1.7;
}
.rte-editor h1 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    margin: 0.85rem 0 0.45rem;
    line-height: 1.3;
}
.rte-editor h2 {
    font-size: 1.12rem;
    font-weight: 700;
    color: #f3f4f6;
    margin: 0.75rem 0 0.4rem;
    line-height: 1.35;
}
.rte-editor h3 {
    font-size: 0.98rem;
    font-weight: 700;
    color: #e5e7eb;
    margin: 0.65rem 0 0.35rem;
    line-height: 1.4;
}
.rte-editor ul, .rte-editor ol { padding-left: 1.5rem; margin: 0.5rem 0; color: #9ca3af; }
.rte-editor li { margin-bottom: 0.35rem; }
.rte-editor a { color: var(--primary); text-decoration: underline; }
.rte-editor code {
    padding: 0.12rem 0.35rem;
    border-radius: 5px;
    background: rgba(143, 201, 71, 0.12);
    border: 1px solid rgba(143, 201, 71, 0.2);
    color: #d9f99d;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.82em;
}
.rte-editor hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin: 1rem 0;
}
.rte-editor blockquote {
    margin: 0.65rem 0;
    padding-left: 0.85rem;
    border-left: 3px solid rgba(143, 201, 71, 0.45);
    color: #d1d5db;
}

@media (max-width: 1024px) {
    .ws-admin { flex-direction: column; }
    .ws-sidebar { width: 100%; }
    .ws-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .ws-admin { padding: 0.75rem; padding-top: 5rem; }
    .ws-faction-editor-grid { grid-template-columns: 1fr; }
    .ws-faction-editor { padding: 1.25rem; }
    .ws-faction-editor-actions .ws-btn-outline.danger { margin-right: 0; width: 100%; }
    .ws-faction-editor-actions { flex-direction: column; }
    .ws-faction-editor-actions .ws-btn-outline,
    .ws-faction-editor-actions .ws-btn-primary { width: 100%; }
    .ws-faction-questions-cta { flex-direction: column; align-items: stretch; }
    .ws-faction-questions-cta .ws-btn-primary { margin-left: 0; width: 100%; justify-content: center; }
    .ws-faction-actions { grid-template-columns: 1fr; }
    .ws-stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* Profil gracza */
.profile-alert {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    border-radius: 14px;
    background: rgba(180, 120, 40, 0.12);
    border: 1px solid rgba(220, 160, 60, 0.25);
    color: #e8c07a;
    font-size: 0.82rem;
}
.profile-user-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 18px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.profile-user-meta h2 {
    color: #fff;
    font-size: 1.6rem;
    margin: 0 0 0.35rem;
}
.profile-user-meta p {
    color: #9ca3af;
    font-size: 0.88rem;
    margin: 0;
}
.profile-rank {
    margin-top: 0.65rem !important;
    color: #d1d5db !important;
}
.profile-rank strong { color: var(--primary); }
.profile-section-head { margin-bottom: 1rem; }
.profile-section-head h3 {
    color: #fff;
    font-size: 1.15rem;
    margin: 0.25rem 0 0;
}
.profile-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}
.profile-stat-card {
    padding: 1rem 1.1rem;
    border-radius: 16px;
    background: rgba(14, 18, 24, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 3px solid rgba(255, 255, 255, 0.12);
}
.profile-stat-card .label {
    display: block;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    color: #6b7280;
    margin-bottom: 0.35rem;
    font-weight: 700;
}
.profile-stat-card strong {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
}
.profile-stat-card.pending { border-bottom-color: rgba(96, 165, 250, 0.8); }
.profile-stat-card.accepted { border-bottom-color: rgba(143, 201, 71, 0.85); }
.profile-stat-card.rejected { border-bottom-color: rgba(248, 113, 113, 0.85); }
.profile-app-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}
.profile-app-row:last-child { border-bottom: none; }
.profile-app-row strong { color: #fff; display: block; }
.profile-app-row span { font-size: 0.75rem; color: #6b7280; }

@media (max-width: 768px) {
    .profile-stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* Selecty (filtry admin) */
.ws-select-wrap {
    position: relative;
    display: inline-flex;
}
.ws-select-wrap::after {
    content: '';
    position: absolute;
    right: 0.85rem;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}
.ws-select {
    appearance: none;
    -webkit-appearance: none;
    padding: 0.65rem 2.2rem 0.65rem 0.95rem;
    min-height: 42px;
    background: rgba(14, 18, 24, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.ws-select:hover {
    border-color: rgba(143, 201, 71, 0.3);
}
.ws-select:focus {
    outline: none;
    border-color: rgba(143, 201, 71, 0.5);
    box-shadow: 0 0 0 3px rgba(143, 201, 71, 0.12);
}
.ws-select option {
    background: #12161c;
    color: #fff;
}

/* Checkboxy z ptaszkiem */
.ws-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
    user-select: none;
    color: #d1d5db;
    font-size: 0.88rem;
}
.ws-checkbox input {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    margin: 0;
    border-radius: 6px;
    border: 1px solid rgba(143, 201, 71, 0.35);
    background: rgba(0, 0, 0, 0.45);
    display: grid;
    place-content: center;
    transition: 0.2s;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
}
.ws-checkbox input::after {
    content: '';
    width: 9px;
    height: 5px;
    border-left: 2px solid transparent;
    border-bottom: 2px solid transparent;
    transform: rotate(-45deg) scale(0);
    transition: 0.15s;
    margin-top: -2px;
}
.ws-checkbox input:checked {
    background: rgba(143, 201, 71, 0.18);
    border-color: var(--primary);
    box-shadow: 0 0 14px rgba(143, 201, 71, 0.2);
}
.ws-checkbox input:checked::after {
    border-color: var(--primary);
    transform: rotate(-45deg) scale(1);
}
.ws-checkbox input:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(143, 201, 71, 0.15);
}
.ws-faction-open-toggle { margin: 1.25rem 0; }

/* Powiadomienia u góry */
.toast-container {
    position: fixed;
    top: 1.1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10050;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    width: min(520px, calc(100vw - 2rem));
    pointer-events: none;
}
.site-toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: rgba(12, 16, 22, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
    color: #e5e7eb;
    font-size: 0.88rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(-14px);
    transition: 0.25s ease;
    backdrop-filter: blur(12px);
}
.site-toast.show { opacity: 1; transform: translateY(0); }
.site-toast.hide { opacity: 0; transform: translateY(-10px); }
.site-toast i { font-size: 1.05rem; flex-shrink: 0; }
.site-toast span { flex: 1; line-height: 1.4; }
.site-toast--success { border-color: rgba(143, 201, 71, 0.4); }
.site-toast--success i { color: var(--primary); }
.site-toast--error { border-color: rgba(248, 113, 113, 0.4); }
.site-toast--error i { color: #f87171; }
.site-toast--warning { border-color: rgba(251, 191, 36, 0.4); }
.site-toast--warning i { color: #fbbf24; }
.site-toast--info { border-color: rgba(96, 165, 250, 0.35); }
.site-toast--info i { color: #60a5fa; }
.site-toast-close {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #9ca3af;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.site-toast-close:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* Potwierdzenia (zamiast alert/confirm) */
.site-confirm:not(.show) {
    display: none !important;
}
.site-confirm.show {
    display: flex;
}
.site-confirm {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 5.5rem 1rem 1rem;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: 0.2s ease;
}
.site-confirm.show {
    opacity: 1;
    visibility: visible;
}
.site-confirm-inner {
    width: min(500px, 100%);
    padding: 1.15rem 1.35rem;
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(18, 22, 28, 0.98), rgba(10, 12, 16, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1rem;
    transform: translateY(-10px);
    transition: 0.2s ease;
}
.site-confirm.show .site-confirm-inner { transform: translateY(0); }
.site-confirm-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(143, 201, 71, 0.12);
    border: 1px solid rgba(143, 201, 71, 0.25);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.site-confirm-inner p {
    flex: 1;
    min-width: 200px;
    margin: 0;
    color: #e5e7eb;
    font-size: 0.92rem;
    line-height: 1.5;
}
.site-confirm-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
    flex-wrap: wrap;
}

/* Upload pliku (galeria admin) */
.ws-file-upload {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    transition: border-color 0.2s, background 0.2s;
}
.ws-file-upload:hover {
    border-color: rgba(143, 201, 71, 0.3);
    background: rgba(143, 201, 71, 0.04);
}
.ws-file-input-native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.ws-file-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    border-radius: 10px;
    background: rgba(143, 201, 71, 0.12);
    border: 1px solid rgba(143, 201, 71, 0.35);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    flex-shrink: 0;
}
.ws-file-btn:hover {
    background: rgba(143, 201, 71, 0.22);
    border-color: rgba(143, 201, 71, 0.5);
    color: #fff;
}
.ws-file-btn i { font-size: 0.9rem; }
.ws-file-name {
    font-size: 0.82rem;
    color: #6b7280;
    word-break: break-all;
}
.ws-file-name.has-file {
    color: #d1d5db;
    font-weight: 600;
}
