:root {
    /* Paleta Premium - Deep Space & Neon */
    --bg-body: #030304; /* Jeszcze głębsza czerń */
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.08);
    
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    
    --accent-primary: #5865F2;
    --accent-secondary: #9945FF;
    --accent-glow: rgba(88, 101, 242, 0.5);
    
    --success: #00ff9d;
    --danger: #ff4757;
    
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --nav-height: 80px;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(3, 3, 4, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: #fff;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: rgba(3, 3, 4, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }
    .nav-links.active { transform: translateY(0); }
}

html {
    background-color: var(--bg-body); /* Tło na html, aby body mogło być przezroczyste */
    scroll-behavior: smooth; /* Płynne przewijanie do kotwic */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: transparent; /* ZMIANA: Przezroczyste tło, aby widać było gwiazdy (z-index -3) */
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    animation: fadeInPage 0.8s ease-out; /* Płynne wejście każdej podstrony */
}

@keyframes fadeInPage {
    from { opacity: 0; transform: scale(1.02); }
    to { opacity: 1; transform: scale(1); }
}

/* --- 1. ADVANCED BACKGROUND (Nebula & Stars) --- */
.star-field {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
}

.star-layer {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(1px 1px at 10% 10%, #fff 100%, transparent),
        radial-gradient(1px 1px at 20% 20%, #fff 100%, transparent),
        radial-gradient(2px 2px at 50% 50%, #fff 100%, transparent),
        radial-gradient(1px 1px at 80% 80%, #fff 100%, transparent);
    background-size: 500px 500px;
    opacity: 0.3;
    animation: starMove 100s linear infinite;
}

@keyframes starMove { from { transform: translateY(0); } to { transform: translateY(-500px); } }

/* Pływające mgławice (Mesh Gradient) */
body::before {
    content: '';
    position: fixed;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: 
        radial-gradient(circle at 50% 50%, rgba(88, 101, 242, 0.08), transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(153, 69, 255, 0.05), transparent 30%);
    z-index: -2;
    animation: nebulaSpin 60s linear infinite;
    pointer-events: none;
}

@keyframes nebulaSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* --- 2. CYBER LOADER --- */
.loader-wrapper {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.loader-content {
    position: relative;
    width: 150px;
    height: 150px;
}

.loader-circle {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--accent-primary);
    border-right-color: var(--accent-secondary);
    animation: spinLoader 1.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
    box-shadow: 0 0 30px rgba(88, 101, 242, 0.2);
}

.loader-circle:nth-child(2) {
    inset: 10px;
    border-top-color: var(--success);
    border-right-color: transparent;
    animation: spinLoader 2s linear infinite reverse;
}

.loader-logo {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    border-radius: 15px;
    animation: pulseLogo 2s infinite;
}

.loader-text {
    margin-top: 2rem;
    font-family: 'Inter', monospace;
    letter-spacing: 5px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    animation: blinkText 1s infinite;
}

.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

@keyframes spinLoader { 100% { transform: rotate(360deg); } }
@keyframes pulseLogo { 0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 0.7; transform: translate(-50%, -50%) scale(0.95); } }
@keyframes blinkText { 50% { opacity: 0.3; } }

/* --- 3. HERO SECTION (Cinematic) --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    margin-bottom: 4rem;
    z-index: 10;
    animation: fadeUp 1s ease 0.5s backwards;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(to bottom, #fff, #9ca3af);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -2px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* --- 4. HOLOGRAPHIC CARDS (The Core) --- */
.family-grid {
    display: flex;
    gap: 2.5rem;
    perspective: 1500px; /* Kluczowe dla 3D */
    z-index: 10;
    flex-wrap: wrap;
    justify-content: center;
}

.holo-card {
    position: relative;
    width: 280px;
    height: 420px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.1s ease-out; /* Szybka reakcja na JS tilt */
    transform-style: preserve-3d;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Wewnętrzna poświata (Gradient Border) */
.holo-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(180deg, rgba(255,255,255,0.2), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); /* Dodano standardową właściwość */
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Efekt "Spotlight" w tle karty */
.holo-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 0;
}

.holo-card:hover::after {
    opacity: 1;
}

/* Elementy wewnątrz karty (3D Layers) */
.card-content {
    transform: translateZ(40px); /* Wystaje z karty */
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    pointer-events: none;
}

.card-logo-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s ease;
}

.card-logo {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 22px;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    opacity: 0.8;
}

/* Przycisk na karcie */
.card-btn {
    margin-top: 2rem;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

/* Kolorowe przyciski po najechaniu na kartę */
.holo-card[data-bot="venon"]:hover .card-btn {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.4);
}

.holo-card[data-bot="eco"]:hover .card-btn {
    background: var(--success);
    border-color: var(--success);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.4);
}

.holo-card[data-bot="music"]:hover .card-btn {
    background: var(--danger);
    border-color: var(--danger);
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.4);
}

/* Kolorowe poświaty dla konkretnych botów */
.holo-card[data-bot="venon"]:hover { box-shadow: 0 0 50px rgba(88, 101, 242, 0.3); border-color: rgba(88, 101, 242, 0.5); }
.holo-card[data-bot="eco"]:hover { box-shadow: 0 0 50px rgba(0, 255, 157, 0.3); border-color: rgba(0, 255, 157, 0.5); }
.holo-card[data-bot="music"]:hover { box-shadow: 0 0 50px rgba(255, 71, 87, 0.3); border-color: rgba(255, 71, 87, 0.5); }

.holo-card:hover .card-logo-wrapper {
    transform: scale(1.1) rotate(5deg);
}

/* --- Footer --- */
footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    z-index: 10;
}

.footer-links a {
    color: var(--text-muted);
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-links a:hover { color: #fff; }

/* --- Animations --- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- PAGE TRANSITION EFFECTS (Hyperdrive Zoom) --- */
body.transition-mode {
    overflow: hidden; /* Blokada przewijania podczas animacji */
}

/* Wygaszanie tła i innych elementów */
body.transition-mode .hero-content,
body.transition-mode footer,
body.transition-mode .loader-wrapper,
body.transition-mode .star-field, /* Wygaszamy tło, żeby karta zlała się z czernią */
body.transition-mode .holo-card:not(.card-selected) {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    filter: blur(10px);
    transition: all 0.6s ease-in-out;
    pointer-events: none;
}

/* Animacja wybranej karty */
.holo-card.card-selected {
    position: relative;
    z-index: 9999;
    transition: all 0.8s cubic-bezier(0.6, 0, 0.2, 1) !important; /* Płynniejsza krzywa */
    transform: scale(40) rotate(0deg) !important; /* Ogromny zoom wypełniający ekran */
    background: var(--bg-body) !important; /* Karta zmienia się w tło nowej strony */
    border-color: transparent !important;
    box-shadow: none !important;
    opacity: 1 !important; /* Nie znika, tylko wypełnia ekran */
    pointer-events: none;
}

/* Ukrycie zawartości karty podczas zoomu, żeby nie było pikselozy */
.holo-card.card-selected .card-content {
    transition: opacity 0.2s ease; /* Szybkie znikanie treści */
    opacity: 0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .family-grid { flex-direction: column; gap: 2rem; }
    .holo-card { width: 100%; max-width: 320px; height: 380px; }
}

/* --- Back Button --- */
.back-btn {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(20, 20, 25, 0.6);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: var(--accent-primary);
    transform: translateX(-5px);
}

/* --- Common Classes --- */
.container { max-width: 1200px; margin: 0 auto; padding: 2rem; }
.btn-primary { background: var(--accent-primary); color: #fff; padding: 0.8rem 2rem; border-radius: 12px; text-decoration: none; font-weight: 600; transition: 0.3s; }
.btn-primary:hover { background: #4752c4; box-shadow: 0 5px 20px rgba(88, 101, 242, 0.4); }
.btn-secondary { background: rgba(255,255,255,0.1); color: #fff; padding: 0.8rem 2rem; border-radius: 12px; text-decoration: none; font-weight: 600; transition: 0.3s; }
.btn-secondary:hover { background: rgba(255,255,255,0.2); }

/* --- Features Page Styling (Cyber Upgrade) --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card-premium {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center; /* ZMIANA: Wyśrodkowanie elementów (ikony) */
    text-align: center;  /* ZMIANA: Wyśrodkowanie tekstu */
}

.feature-card-premium:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(88, 101, 242, 0.2);
}

.fc-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(88, 101, 242, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
    border: 1px solid rgba(88, 101, 242, 0.2);
    transition: all 0.4s ease;
}

.feature-card-premium:hover .fc-icon-wrapper {
    background: var(--accent-primary);
    color: #fff;
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 0 30px var(--accent-glow);
}

.fc-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: #fff;
    letter-spacing: -0.5px;
}

.fc-desc {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.fc-list {
    margin-top: auto;
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
    width: 100%; /* ZMIANA: Pełna szerokość dla bordera */
}

.fc-list li {
    padding: 0.5rem 0;
    color: #ccc;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fc-list li::before {
    content: '▹';
    color: var(--accent-primary);
    font-weight: bold;
}

/* --- Commands Page Styling (Cyber Upgrade v2) --- */
.commands-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    align-items: start;
    margin-top: 2rem;
}

/* Sidebar - Glass Panel */
.sidebar {
    background: rgba(20, 20, 25, 0.6);
    padding: 1.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.sidebar h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    padding-left: 0.5rem;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 1rem 1.2rem;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0.5rem;
    position: relative;
    overflow: hidden;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    transform: translateX(5px);
}

.filter-btn.active {
    background: linear-gradient(90deg, rgba(88, 101, 242, 0.15), transparent);
    color: #fff;
    border: 1px solid rgba(88, 101, 242, 0.3);
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.1);
}

.filter-btn.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
}

/* Search Box - HUD Style */
.search-box {
    width: 100%;
    padding: 1.2rem 1.8rem;
    background: rgba(20, 20, 25, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.search-box:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px rgba(88, 101, 242, 0.15);
    background: rgba(20, 20, 25, 0.8);
}

/* Command List - Data Blocks */
.cmd-pro-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.cmd-pro-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.cmd-pro-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: var(--accent-primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.cmd-pro-item:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.1);
}

.cmd-pro-item:hover::before {
    opacity: 1;
}

.cmd-pro-item.active {
    background: rgba(20, 20, 25, 0.8);
    border-color: var(--accent-primary);
    box-shadow: 0 0 40px rgba(88, 101, 242, 0.1);
}

.cmd-pro-header {
    display: grid;
    grid-template-columns: auto 1fr 40px;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    gap: 2rem;
}

.cmd-pro-code {
    font-family: 'JetBrains Mono', monospace;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    background: linear-gradient(135deg, var(--accent-primary), #4752c4);
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
    border: 1px solid rgba(255,255,255,0.1);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: all 0.3s;
}

.cmd-pro-item:hover .cmd-pro-code {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--accent-glow);
}

.cmd-pro-desc-short {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s;
}

.cmd-pro-item:hover .cmd-pro-desc-short {
    color: #fff;
}

.cmd-pro-icon {
    color: var(--text-muted);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    font-size: 0.9rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.cmd-pro-item.active .cmd-pro-icon {
    transform: rotate(180deg);
    background: var(--accent-primary);
    color: #fff;
}

.cmd-pro-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid transparent;
}

.cmd-pro-item.active .cmd-pro-body {
    max-height: 1000px;
    border-top-color: rgba(255, 255, 255, 0.05);
}

.cmd-pro-content {
    padding: 2rem;
    color: #ccc;
    font-size: 1rem;
    line-height: 1.8;
}

.cmd-pro-content p {
    margin-bottom: 1rem;
}

.cmd-pro-content ul {
    background: rgba(255,255,255,0.03);
    padding: 1.5rem;
    border-radius: 16px;
    list-style: none;
    border: 1px solid rgba(255,255,255,0.05);
}

.cmd-pro-content li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
}

.cmd-pro-content li:last-child {
    margin-bottom: 0;
}

.cmd-pro-content li::before {
    content: '→';
    color: var(--accent-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.cmd-pro-content strong {
    color: #fff;
    font-weight: 700;
}

/* Bot Selector - Neon Tabs */
.bot-selector {
    background: rgba(20, 20, 25, 0.6);
    padding: 0.5rem;
    border-radius: 50px;
    display: inline-flex;
    gap: 0.5rem;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 3rem;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.bot-select-btn {
    background: transparent;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 40px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.bot-select-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.bot-select-btn.active {
    background: var(--accent-primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.4);
}

.bot-select-btn img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

/* --- PAGE TRANSITION EFFECTS (Hyperdrive Zoom) --- */
body.transition-mode {
    overflow: hidden; /* Blokada przewijania podczas animacji */
}

/* Wygaszanie tła i innych elementów */
body.transition-mode .hero-content,
body.transition-mode footer,
body.transition-mode .loader-wrapper,
body.transition-mode .star-field, /* Wygaszamy tło, żeby karta zlała się z czernią */
body.transition-mode .holo-card:not(.card-selected) {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    filter: blur(10px);
    transition: all 0.6s ease-in-out;
    pointer-events: none;
}

/* Animacja wybranej karty */
.holo-card.card-selected {
    position: relative;
    z-index: 9999;
    transition: all 0.8s cubic-bezier(0.6, 0, 0.2, 1) !important; /* Płynniejsza krzywa */
    transform: scale(40) rotate(0deg) !important; /* Ogromny zoom wypełniający ekran */
    background: var(--bg-body) !important; /* Karta zmienia się w tło nowej strony */
    border-color: transparent !important;
    box-shadow: none !important;
    opacity: 1 !important; /* Nie znika, tylko wypełnia ekran */
    pointer-events: none;
}

/* Ukrycie zawartości karty podczas zoomu, żeby nie było pikselozy */
.holo-card.card-selected .card-content {
    transition: opacity 0.2s ease; /* Szybkie znikanie treści */
    opacity: 0;
}

/* Responsywność */
@media (max-width: 900px) {
    .commands-layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: relative;
        top: 0;
        display: flex;
        overflow-x: auto;
        gap: 1rem;
        padding: 1rem;
        margin-bottom: 2rem;
        white-space: nowrap;
    }
    .filter-btn {
        width: auto;
        margin-bottom: 0;
        padding: 0.8rem 1.5rem;
    }
    .cmd-pro-header {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
        justify-items: center;
    }
    .cmd-pro-code {
        width: 100%;
        text-align: center;
    }
    .cmd-pro-icon {
        display: none;
    }
    .bot-selector {
        width: 100%;
        flex-direction: column;
        border-radius: 24px;
        background: transparent;
        border: none;
        backdrop-filter: none;
    }
    .bot-select-btn {
        width: 100%;
        justify-content: center;
        background: rgba(20, 20, 25, 0.6);
        border: 1px solid rgba(255,255,255,0.1);
    }
}

/* --- Legal Pages (ToS / Privacy) --- */
.legal-card {
    background: rgba(20, 20, 25, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 3rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    margin-top: 4rem;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.legal-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
}

.legal-header h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    background: linear-gradient(to bottom, #fff, #9ca3af);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.legal-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.legal-content h2 {
    color: #fff;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-content h2::before {
    content: '#';
    color: var(--accent-primary);
    opacity: 0.5;
}

.legal-content h3 {
    color: #fff;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.legal-content p, .legal-content li {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-content ul {
    list-style: none;
    padding-left: 1rem;
}

.legal-content li {
    position: relative;
    padding-left: 1.5rem;
}

.legal-content li::before {
    content: '•';
    color: var(--accent-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.6;
}

.legal-content strong {
    color: #fff;
    font-weight: 600;
}

.alert-box {
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    color: #fff;
}

.alert-box a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: bold;
}

.alert-box a:hover {
    text-decoration: underline;
}

/* --- Discord Widget (Premium Modern) --- */
.tilt-container {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    padding: 2rem;
    z-index: 10;
    position: relative;
}

.dw-premium-container {
    width: 380px;
    background: rgba(20, 20, 25, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transition: transform 0.1s ease-out;
    position: relative;
    transform-style: preserve-3d;
}

.dw-banner {
    height: 120px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    position: relative;
    overflow: hidden;
}

.dw-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('venon.png'); /* Fallback pattern */
    background-size: cover;
    opacity: 0.2;
    mix-blend-mode: overlay;
}

.dw-server-icon {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    background: var(--bg-body);
    position: absolute;
    top: 76px;
    left: 24px;
    padding: 6px;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.dw-server-icon img {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    object-fit: cover;
    background: #1a1a1a;
}

.dw-body {
    padding: 60px 24px 24px; /* Top padding clears the icon */
    background: linear-gradient(to bottom, rgba(255,255,255,0.02), transparent);
}

.dw-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.dw-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.dw-badge {
    background: rgba(88, 101, 242, 0.15);
    color: var(--accent-primary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(88, 101, 242, 0.3);
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.2);
}

.dw-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
}

.dw-stat-item {
    display: flex;
    flex-direction: column;
}

.dw-stat-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--success);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 157, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(0, 255, 157, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 157, 0); }
}

.dw-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.dw-channels {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1.5rem;
    padding: 0 4px;
}

.dw-channel {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.dw-channel:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.dw-channel::before {
    content: '#';
    color: var(--text-muted);
    opacity: 0.5;
    font-weight: bold;
    font-size: 1.1rem;
}

.dw-join-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--accent-primary);
    color: #fff;
    text-align: center;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.3);
    border: 1px solid rgba(255,255,255,0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.dw-join-btn:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(88, 101, 242, 0.5);
}
