/* --- FUNDAMENTY --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Inter', sans-serif; 
}

body { 
    background: #0b0b0d; 
    color: #fff; 
    overflow-x: hidden; 
    min-height: 100vh;
}

/* Magiczne tło z fioletową poświatą */
.overlay { 
    position: fixed; 
    inset: 0; 
    background: radial-gradient(circle at 50% -20%, #1a103d 0%, #0b0b0d 100%); 
    z-index: -1; 
}

/* --- NAWIGACJA --- */
nav, .public-nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 20px 8%; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
    background: rgba(11, 11, 13, 0.5);
    backdrop-filter: blur(10px);
}

.logo { font-weight: 900; font-size: 1.5rem; letter-spacing: -1px; }
.logo span { color: #8b5cf6; text-shadow: 0 0 20px rgba(139, 92, 246, 0.5); }

/* --- LANDING PAGE (Główna strona z napisem) --- */
#landing-page {
    display: block;
    width: 100%;
}

.hero { 
    text-align: center; 
    padding: 150px 20px; 
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 { 
    font-size: 4.5rem; 
    font-weight: 900; 
    line-height: 1; 
    margin-bottom: 20px; 
}

.hero h1 span { 
    color: #8b5cf6; 
    background: linear-gradient(to bottom, #a78bfa, #8b5cf6); /* 👈 Tutaj musiał być nawias na końcu! */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p { 
    color: #94a3b8; 
    font-size: 1.2rem; 
    max-width: 600px; 
    margin: 0 auto; 
}

/* --- DASHBOARD (Panel po zalogowaniu) --- */
.dash-layout { display: flex; min-height: 90vh; }

.sidebar { 
    width: 300px; 
    background: rgba(14, 14, 17, 0.8); 
    border-right: 1px solid #1f1f23; 
    padding: 40px 20px; 
}

.side-title { font-size: 0.7rem; font-weight: 800; color: #4b5563; margin-bottom: 20px; letter-spacing: 1px; }

.side-link { 
    width: 100%; text-align: left; padding: 15px; background: transparent; 
    border: none; color: #94a3b8; font-weight: 700; cursor: pointer; 
    border-radius: 12px; margin-bottom: 5px; transition: 0.3s;
}

.side-link:hover { background: rgba(139, 92, 246, 0.1); color: #fff; }
.side-link.active { background: #8b5cf6; color: #fff; box-shadow: 0 0 20px rgba(139, 92, 246, 0.3); }

.content { flex-grow: 1; padding: 60px; }

/* --- KARTY I PRZEDMIOTY --- */
.card { 
    background: #111114; border: 1px solid #1f1f23; padding: 25px; 
    border-radius: 15px; margin-bottom: 20px; 
}

.card input { 
    width: 100%; padding: 12px; margin-bottom: 10px; background: #000; 
    border: 1px solid #333; color: #fff; border-radius: 8px; outline: none;
}

.card input:focus { border-color: #8b5cf6; }

.items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }

.item { 
    background: #16161a; border: 1px solid #1f1f23; padding: 30px; 
    border-radius: 15px; text-align: center; position: relative; 
}

.price-tag { font-size: 1.8rem; font-weight: 900; color: #fff; margin: 10px 0; }

.btn-mini-del { 
    position: absolute; top: 10px; right: 10px; background: none; 
    border: none; color: #ef4444; cursor: pointer; font-weight: 800; 
}

/* --- MODALE --- */
.modal { 
    position: fixed; inset: 0; background: rgba(0,0,0,0.9); 
    display: none; justify-content: center; align-items: center; z-index: 2000; 
}

.modal-content { 
    background: #111114; padding: 40px; border-radius: 20px; 
    width: 100%; max-width: 400px; border: 1px solid #1f1f23; text-align: center; 
}

/* --- PRZYCISKI --- */
.btn-action { 
    padding: 14px 28px; border-radius: 10px; border: none; 
    font-weight: 800; cursor: pointer; transition: 0.3s; 
}

.primary { background: #8b5cf6; color: #fff; }
.primary:hover { transform: scale(1.05); box-shadow: 0 0 30px rgba(139, 92, 246, 0.4); }

.primary.big { font-size: 1.1rem; padding: 20px 50px; }

.btn-panel { 
    background: #1f1f23; border: 1px solid #333; color: #fff; 
    padding: 8px 18px; border-radius: 8px; cursor: pointer; 
}

.url-box { background: #000; padding: 15px; border-radius: 10px; border: 1px solid #333; margin-top: 20px; }
.url-box code { color: #8b5cf6; font-size: 0.7rem; word-break: break-all; }