/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    background: rgba(15, 15, 19, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.highlight {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--text-main);
}

.btn-small {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white !important;
    transition: 0.3s;
}

.btn-small:hover {
    background: var(--primary);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('background.png') center/cover no-repeat;
    z-index: -1;
    opacity: 0.35;
    -webkit-mask-image: linear-gradient(#000 55%, transparent);
    mask-image: linear-gradient(#000 55%, transparent);
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.server-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--secondary);
}

/* IP Box Implementation */
.ip-box {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 16px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    position: relative;
    user-select: none;
}

.ip-box:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
    border-color: var(--primary);
}

.ip-box i {
    color: var(--text-muted);
}

.tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px;
    border-style: solid;
    border-color: var(--primary) transparent transparent transparent;
}

.ip-box:active .tooltip {
    opacity: 1;
    visibility: visible;
    top: -45px;
}

/* About & Features */
.about {
    padding: 100px 0;
}

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

.feature-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(139, 92, 246, 0.1));
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* Rules */
.rules {
    padding: 100px 0;
    background: rgba(5, 5, 10, 0.35);
}

.rules-list {
    max-width: 800px;
    margin: 0 auto;
}

.rule-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-card);
    margin-bottom: 1rem;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: 0.3s;
}

.rule-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.08);
}

.rule-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.5;
}

/* Staff */
.staff {
    padding: 100px 0;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.staff-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.staff-card:hover {
    border-color: var(--secondary);
}

.staff-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.role {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.role.admin {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.role.mod {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.role.helper {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

/* Footer */
footer {
    padding: 3rem 0;
    background: rgba(5, 5, 7, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
}

.socials {
    display: flex;
    gap: 1.5rem;
}

.socials a:hover {
    color: var(--primary);
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
}

/* Hero w dwóch kolumnach + status na żywo */
.hero {
    height: auto;
    min-height: 100vh;
    padding: 110px 0 60px;
    text-align: left;
}

.hero .container {
    width: 100%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text p {
    margin-left: 0;
}

.status-panel {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.75rem;
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.status-panel:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
}

.status-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.2rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.status-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    color: var(--text-muted);
}

.status-row strong {
    color: var(--text-main);
}

.dot.idle {
    background: var(--text-muted);
    box-shadow: none;
}

.dot.off {
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
}

.ip-box:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 860px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        background: rgba(15, 15, 19, 0.97);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

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

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 12px 0;
    }

    .nav-links .btn-small {
        display: inline-block;
        padding: 8px 24px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }
}
/* Rekrutacja */
.apply { padding: 150px 0 100px; }

.apply-lead {
    text-align: center;
    color: var(--text-muted);
    max-width: 640px;
    margin: -1.5rem auto 3rem;
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto 4rem;
}

.role-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.role-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(139, 92, 246, 0.1));
}

.role-card .role { align-self: flex-start; margin-top: 0; }
.role-card h3 { font-size: 1.5rem; }
.role-card ul { flex-grow: 1; }

.role-card li {
    display: flex;
    gap: 12px;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
}

.role-card li i { color: var(--secondary); margin-top: 6px; font-size: 0.85rem; }
.role-card .btn { text-align: center; }

.apply-form {
    max-width: 760px;
    margin: 0 auto;
    padding: 2.5rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    scroll-margin-top: 100px;
}

.apply-form h2 { font-size: 1.75rem; scroll-margin-top: 120px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.apply-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.apply-form input:not([type="checkbox"]),
.apply-form select,
.apply-form textarea {
    font: inherit;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 12px 14px;
    transition: 0.2s;
}

.apply-form select option { color: #111; }
.apply-form textarea { resize: vertical; }

.apply-form input:focus,
.apply-form select:focus,
.apply-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}

.apply-form .check {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
}

.apply-form .check input { margin-top: 5px; accent-color: var(--primary); }
.apply-form .btn { align-self: flex-start; }
.apply-form .btn:disabled { opacity: 0.6; cursor: wait; transform: none; box-shadow: none; }
.hp { position: absolute; left: -9999px; }

.form-msg { min-height: 1.5em; font-weight: 600; }
.form-msg.ok { color: var(--secondary); }
.form-msg.err { color: #ef4444; }

@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
    .apply-form { padding: 1.5rem; }
}

/* Menu rozwijane */
.has-sub { position: relative; }
.sub-toggle {
    background: none; border: none; font: inherit; font-size: 0.95rem;
    font-weight: 500; color: var(--text-muted); cursor: pointer;
}
.sub-toggle:hover, .has-sub:hover .sub-toggle { color: var(--text-main); }
.sub-toggle i { font-size: 0.7rem; margin-left: 4px; }
.sub {
    display: none; position: absolute; top: 100%; right: 0; min-width: 190px;
    flex-direction: column; padding: 0.5rem; margin-top: 0.75rem;
    background: rgba(15, 15, 19, 0.97); border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}
.sub::before { content: ''; position: absolute; top: -1rem; left: 0; width: 100%; height: 1rem; }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: flex; }
.sub a { display: block; padding: 10px 14px; border-radius: 8px; }
.sub a:hover { background: rgba(255, 255, 255, 0.08); }

/* Strony podrzędne */
.page { padding: 150px 0 100px; min-height: 100vh; }
.page-lead { text-align: center; color: var(--text-muted); max-width: 600px; margin: -1.5rem auto 2.5rem; }
.page-note { text-align: center; color: var(--text-muted); margin-top: 1.5rem; }
.link { color: var(--primary); text-decoration: underline; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; max-width: 960px; margin: 0 auto 3rem; }
.info-grid .btn { margin-top: 1.25rem; }
.steps { padding-left: 1.2rem; color: var(--text-muted); list-style: decimal; }
.steps li { margin-bottom: 0.5rem; }
.steps strong { color: var(--text-main); }
.sub-title { font-size: 1.75rem; text-align: center; margin-bottom: 1.5rem; }
.table-wrap { max-width: 800px; margin: 0 auto; overflow-x: auto; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.08); background: var(--bg-card); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.data-table th { color: var(--text-muted); font-size: 0.85rem; font-weight: 600; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table code { background: rgba(139, 92, 246, 0.2); padding: 2px 8px; border-radius: 6px; }
.data-table .who { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.data-table .who img { width: 32px; height: 32px; border-radius: 6px; }
.map-frame { width: 100%; height: 70vh; min-height: 420px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; background: var(--bg-card); }
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; }
.tab { font: inherit; font-weight: 600; color: var(--text-muted); background: var(--bg-card); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; padding: 10px 18px; cursor: pointer; transition: 0.2s; }
.tab:hover { border-color: var(--primary); color: var(--text-main); }
.tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.disabled { opacity: 0.5; cursor: default; pointer-events: none; }

@media (max-width: 768px) {
    .sub-toggle { display: none; }
    .sub, .has-sub:hover .sub { display: flex; position: static; background: none; border: 0; margin: 0; padding: 0; }
    .sub::before { display: none; }
    .sub a { padding: 12px 0; }
}

/* Mody */
[hidden] { display: none !important; }
.kv { margin-bottom: 1.25rem; }
.kv div { display: flex; justify-content: space-between; gap: 1rem; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); color: var(--text-muted); }
.kv strong { color: var(--text-main); text-align: right; word-break: break-all; }
.mod-search { display: block; width: 100%; max-width: 480px; margin: 0 auto 2rem; font: inherit; color: var(--text-main); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 8px; padding: 12px 14px; }
.mod-search:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25); }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.mod-card { background: var(--bg-card); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 16px; padding: 1.75rem; display: flex; flex-direction: column; gap: 0.75rem; transition: 0.3s; }
.mod-card:hover { transform: translateY(-8px); border-color: var(--primary); background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(139, 92, 246, 0.1)); }
.mod-card h3 { font-size: 1.25rem; }
.mod-card p { color: var(--text-muted); flex-grow: 1; font-size: 0.95rem; }
.mod-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { padding: 3px 10px; border-radius: 20px; font-size: 0.78rem; font-weight: 600; background: rgba(139, 92, 246, 0.2); color: #c4b5fd; }
.mod-card .btn { text-align: center; padding: 10px 16px; }
.badge.new { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }

/* Przycisk pobierania paczki modów */
.feature-card .btn.pack-btn .pack-icon {
    width: auto; height: auto; margin: 0; padding: 0;
    background: none; border: 0; display: inline-block;
    font-size: 1.3rem; color: #fff;
}
.btn.pack-btn {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; gap: 14px;
    padding: 16px 28px; border-radius: 12px; color: #fff;
    background: linear-gradient(120deg, var(--primary), #6366f1, var(--secondary), var(--primary));
    background-size: 300% 100%;
    animation: pack-flow 6s linear infinite, pack-glow 2.4s ease-in-out infinite;
    transition: transform 0.2s;
}
.btn.pack-btn:hover {
    transform: translateY(-3px) scale(1.03);
    background: linear-gradient(120deg, var(--primary), #6366f1, var(--secondary), var(--primary));
    background-size: 300% 100%;
}
.btn.pack-btn:active { transform: scale(0.98); }
.btn.pack-btn::after {
    content: ''; position: absolute; top: 0; left: -60%;
    width: 40%; height: 100%; pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    animation: pack-shine 3.5s ease-in-out infinite;
}
.pack-icon, .pack-label { position: relative; z-index: 1; }
.pack-icon { animation: pack-bounce 1.4s ease-in-out infinite; }
.pack-label { display: flex; flex-direction: column; text-align: left; line-height: 1.25; }
.pack-meta { font-weight: 600; font-size: 0.75rem; opacity: 0.85; }
.pack-fill { position: absolute; inset: 0; width: 0; background: rgba(255, 255, 255, 0.28); }
.btn.pack-btn.loading .pack-fill { animation: pack-fill 2.2s ease-out forwards; }
.btn.pack-btn.loading .pack-icon { animation: pack-bounce 0.5s ease-in-out infinite; }
.btn.pack-btn.done, .btn.pack-btn.done:hover { background: var(--secondary); animation: none; }
.btn.pack-btn.done .pack-icon { animation: none; }

@keyframes pack-flow { to { background-position: 300% 0; } }
@keyframes pack-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.55); }
    50% { box-shadow: 0 0 0 14px rgba(139, 92, 246, 0); }
}
@keyframes pack-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@keyframes pack-bounce { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }
@keyframes pack-fill { to { width: 100%; } }

@media (prefers-reduced-motion: reduce) {
    .btn.pack-btn, .btn.pack-btn::after, .pack-icon { animation: none !important; }
}




/* Dwa serwery w hero */
.status-stack { display: flex; flex-direction: column; gap: 1.25rem; }
.server-tag { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; color: var(--primary); margin-bottom: 0.75rem; }
.server-main { border-color: rgba(139, 92, 246, 0.5); }
.server-card .ip-box { display: flex; justify-content: space-between; width: 100%; padding: 10px 16px; font-size: 1rem; margin-bottom: 1rem; }
.hero-btn i { margin-right: 8px; }