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

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }

body {
    min-height: 100dvh; background-color: #1a1a2e;
    background-image: linear-gradient(-45deg, #0f0c29, #302b63, #24243e, #1a1a2e);
    background-size: 400% 400%; background-position: 50% 50%;
    color: #fff; padding: 40px 20px; position: relative;
    overflow-x: hidden; user-select: none; -webkit-user-select: none;
}

p, h1, h2, h3, h4, span, li, a, code, pre { user-select: text; -webkit-user-select: text; cursor: default; }
a, button { cursor: pointer; }

body::before, body::after {
    content: ''; position: fixed; width: 600px; height: 600px;
    border-radius: 50%; z-index: 0; filter: blur(130px); opacity: .4;
    animation: floatBlob 10s ease-in-out infinite alternate;
}
body::before { background: #7b2cbf; top: -150px; left: -150px; }
body::after { background: #00b4d8; bottom: -150px; right: -150px; animation-delay: -5s; }

@keyframes floatBlob {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 50px); }
}

.binary-digit {
    position: fixed; top: -50px; color: #00ff88; font-family: 'JetBrains Mono', monospace;
    font-weight: bold; z-index: 1; pointer-events: none; text-shadow: 0 0 5px rgba(0, 255, 136, .5);
    animation: fall linear forwards;
}
@keyframes fall { to { transform: translateY(110vh); } }

/* LOADER */
#loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #050510; z-index: 10000; display: flex; justify-content: center;
    align-items: center; flex-direction: column; perspective: 1000px; transition: background 1s ease;
}
.tesseract-loader {
    position: relative; width: 120px; height: 120px; transform-style: preserve-3d;
    transition: transform 1.2s cubic-bezier(.7, 0, .2, 1), opacity 1s ease; margin-bottom: 40px;
}
.cube { position: absolute; width: 100%; height: 100%; transform-style: preserve-3d; }
.cube.outer { animation: rotateOuter 8s infinite linear; }
.cube.inner { width: 50px; height: 50px; top: 35px; left: 35px; animation: rotateInner 4s infinite linear; }
.face { position: absolute; width: 100%; height: 100%; }
.outer .face { border: 2px solid rgba(0, 180, 216, .8); background: rgba(0, 180, 216, .05); box-shadow: 0 0 15px rgba(0, 180, 216, .3) inset; }
.inner .face { border: 2px solid #00ff88; background: rgba(0, 255, 136, .2); box-shadow: 0 0 20px #00ff88; }
.outer .front { transform: rotateY(0deg) translateZ(60px); }
.outer .back { transform: rotateY(180deg) translateZ(60px); }
.outer .right { transform: rotateY(90deg) translateZ(60px); }
.outer .left { transform: rotateY(-90deg) translateZ(60px); }
.outer .top { transform: rotateX(90deg) translateZ(60px); }
.outer .bottom { transform: rotateX(-90deg) translateZ(60px); }
.inner .front { transform: rotateY(0deg) translateZ(25px); }
.inner .back { transform: rotateY(180deg) translateZ(25px); }
.inner .right { transform: rotateY(90deg) translateZ(25px); }
.inner .left { transform: rotateY(-90deg) translateZ(25px); }
.inner .top { transform: rotateX(90deg) translateZ(25px); }
.inner .bottom { transform: rotateX(-90deg) translateZ(25px); }

@keyframes rotateOuter { 0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); } 100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(180deg); } }
@keyframes rotateInner { 0% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); } 100% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); } }
.loading-text { font-family: 'JetBrains Mono', monospace; font-size: 1.2rem; letter-spacing: 4px; color: #00ff88; text-transform: uppercase; font-weight: 700; text-shadow: 0 0 10px rgba(0, 255, 136, .5); z-index: 2; }
.loading-text::after { content: '_'; animation: blink .8s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.morph-transition { background: transparent !important; pointer-events: none; }
.morph-transition .tesseract-loader { transform: translateZ(800px) scale(3); opacity: 0; }
.morph-transition .loading-text { opacity: 0; filter: blur(10px); transition: .5s ease; }

/* SPLASH SCREEN */
.splash-wrapper { position: fixed; top: 0; left: 0; width: 100%; height: 100%; display: none; justify-content: center; align-items: center; z-index: 5000; opacity: 0; transition: opacity .5s ease; padding: 20px; }
.splash-wrapper.active { opacity: 1; }
.splash-card { background: rgba(255, 255, 255, .05); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, .1); border-radius: 20px; box-shadow: 0 15px 35px rgba(0, 0, 0, .5); max-width: 600px; width: 100%; padding: 40px; text-align: left; transform: translateY(20px); transition: transform .5s ease; }
.splash-wrapper.active .splash-card { transform: translateY(0); }
.splash-card h2 { color: #fff; font-size: 2rem; margin-bottom: 20px; text-align: center; }
.splash-intro { color: rgba(255, 255, 255, .8); margin-bottom: 25px; line-height: 1.6; }
.rules-list { margin-left: 20px; margin-bottom: 30px; color: rgba(255, 255, 255, .8); line-height: 1.6; }
.rules-list li { margin-bottom: 10px; }
.rules-list strong { color: #00b4d8; }
.consent-box { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 30px; background: rgba(0, 0, 0, .2); padding: 15px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .1); }
.consent-box input[type="checkbox"] { width: 22px; height: 22px; cursor: pointer; accent-color: #00b4d8; margin-top: 2px; }
.consent-box label { font-size: .95rem; color: #fff; cursor: pointer; line-height: 1.4; }
.consent-box a { color: #00b4d8; text-decoration: none; font-weight: 600; }
.consent-box a:hover { text-decoration: underline; }
#btn-agree { width: 100%; padding: 15px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px; color: rgba(255, 255, 255, .4); font-size: 1.1rem; font-weight: 600; cursor: not-allowed; transition: .3s; letter-spacing: 1px; }
#btn-agree.ready { background: linear-gradient(90deg, #00b4d8, #0077b6); border: none; color: #fff; cursor: pointer; box-shadow: 0 5px 20px rgba(0, 180, 216, .3); }
#btn-agree.ready:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0, 180, 216, .5); }

/* DASHBOARD LAYOUT & ANIMATIONEN */
.container { max-width: 1400px; margin: 0 auto; text-align: center; perspective: 1200px; position: relative; z-index: 2; }

.anim-target { opacity: 0; transform: translateY(30px); }
.anim-active { animation: entrance3D .8s cubic-bezier(.2, .8, .2, 1) forwards; }

@keyframes entrance3D {
    0% { opacity: 0; transform: translateY(50px) rotateX(10deg) scale(.95); filter: blur(10px); }
    100% { opacity: 1; transform: translateY(0) rotateX(0) scale(1); filter: blur(0); }
}

h1 { font-size: 3rem; font-weight: 700; margin-bottom: 15px; background: linear-gradient(90deg, #fff, #00b4d8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 0 30px rgba(0, 180, 216, .3); }
.intro-text { max-width: 700px; margin: 0 auto 50px auto; font-size: 1.1rem; line-height: 1.6; color: rgba(255, 255, 255, .8); background: rgba(0, 0, 0, .2); padding: 20px; border-radius: 15px; border: 1px solid rgba(255, 255, 255, .05); }

/* VISUELLE TRENNUNG: SEKTIONEN */
.dashboard-section {
    background: rgba(15, 12, 41, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 50px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}
.section-header { text-align: left; margin-bottom: 25px; }
.section-title { font-size: 2rem; color: #fff; margin-bottom: 5px; }
.section-desc { color: rgba(255,255,255,0.6); font-size: 1rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

/* CARDS */
.card {
    background: rgba(255, 255, 255, .05); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; overflow: hidden;
    transition: all .3s ease; text-decoration: none; color: #fff;
    display: flex; flex-direction: column; position: relative; height: 100%;
}
.card:hover {
    transform: translateY(-5px); background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .3); box-shadow: 0 15px 30px rgba(0, 0, 0, .4);
}
.card-image { width: 100%; height: 160px; overflow: hidden; position: relative; pointer-events: none; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-image img { transform: scale(1.05); }
.card-image::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 50%; background: linear-gradient(to top, rgba(15, 12, 41, .9), transparent); }

.card-content { padding: 20px; text-align: left; flex-grow: 1; display: flex; flex-direction: column; }
.card h2 { font-size: 1.3rem; margin-bottom: 10px; color: #fff; }
.card p { font-size: .9rem; color: rgba(255, 255, 255, .7); margin-bottom: 20px; flex-grow: 1; }

.btn-start {
    margin-top: auto; padding: 10px 20px; background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2); border-radius: 8px;
    text-align: center; font-weight: 600; transition: .3s; color: #fff;
}
.card:hover .btn-start { background: #fff; color: #000; }

/* VISUELLE TRENNUNG: CDN ORDNER & SCRIPTE */
.cdn-folder-block {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(189, 0, 255, 0.2);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    text-align: left;
}
.cdn-folder-title {
    color: #e0e0e0; font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem; margin-bottom: 20px; padding-left: 10px;
    border-left: 4px solid #bd00ff; letter-spacing: 1px;
}
.cdn-card { border-radius: 12px; border: 1px solid rgba(189, 0, 255, 0.2); background: rgba(189, 0, 255, 0.02); }
.cdn-card .card-content { justify-content: space-between; align-items: center; flex-direction: row; padding: 15px 20px; }
.cdn-card h4 { font-family: 'JetBrains Mono', monospace; font-size: 1rem; font-weight: normal; margin: 0; word-break: break-all; color: #fff; }
.cdn-card .btn-start { margin: 0 0 0 15px; padding: 8px 15px; font-size: 0.85rem; border-color: rgba(189, 0, 255, 0.4); color: #bd00ff; }
.cdn-card:hover { border-color: #bd00ff; box-shadow: 0 5px 15px rgba(189, 0, 255, .2); }
.cdn-card:hover .btn-start { background: #bd00ff; color: #fff; }

/* MODAL / GUIDE OVERLAY */
.guide-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 8, 25, .95); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    z-index: 6000; display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: all .4s ease; padding: 20px;
}
.guide-modal-overlay.active { opacity: 1; visibility: visible; }
.guide-modal-card {
    background: rgba(25, 25, 35, 1); border: 1px solid rgba(255, 255, 255, .1); border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, .8); max-width: 900px; width: 100%;
    max-height: 90vh; display: flex; flex-direction: column;
    transform: translateY(40px) scale(.95); transition: all .4s cubic-bezier(.2, .8, .2, 1);
}
.guide-modal-overlay.active .guide-modal-card { transform: translateY(0) scale(1); }

.guide-modal-header {
    padding: 20px 30px; border-bottom: 1px solid rgba(255, 255, 255, .05);
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(0, 0, 0, .3); border-radius: 20px 20px 0 0;
}
.guide-modal-header h2 { font-size: 1.4rem; margin: 0; font-family: 'JetBrains Mono', monospace;}
.btn-close { background: none; border: none; color: #ff4d4d; font-size: 2.2rem; cursor: pointer; line-height: 1; transition: .3s; padding: 0 5px; }
.btn-close:hover { transform: scale(1.1); text-shadow: 0 0 10px rgba(255, 77, 77, .5); }

.guide-modal-body { padding: 30px; overflow-y: auto; text-align: left; flex-grow: 1; }
.guide-modal-body::-webkit-scrollbar { width: 8px; }
.guide-modal-body::-webkit-scrollbar-track { background: rgba(0, 0, 0, .2); border-radius: 10px; }
.guide-modal-body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .2); border-radius: 10px; }
.guide-modal-body::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .4); }

.guide-modal-body h2 { color: #fff; margin-top: 20px; margin-bottom: 15px; font-size: 1.4rem; border-bottom: 1px solid rgba(255, 255, 255, .1); padding-bottom: 10px; }
.guide-modal-body h2:first-child { margin-top: 0; }
.guide-modal-body h3 { color: #00b4d8; margin-top: 25px; margin-bottom: 10px; font-size: 1.1rem; }
.guide-modal-body p, .guide-modal-body ul { color: rgba(255, 255, 255, .8); line-height: 1.7; margin-bottom: 20px; font-size: 1rem; }
.guide-modal-body li { margin-bottom: 8px; margin-left: 20px; }

/* QUICK INJECTORS UI (NEU) */
.payload-injectors {
    background: rgba(0, 255, 136, 0.05); border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px; padding: 20px; margin-bottom: 30px;
}
.injector-row { margin-bottom: 15px; }
.injector-row:last-child { margin-bottom: 0; }
.injector-label { display: block; color: rgba(255,255,255,0.8); font-size: 0.9rem; margin-bottom: 8px; }
.injector-code {
    display: flex; background: #0d0d12; border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px; overflow: hidden;
}
.injector-code code {
    flex-grow: 1; padding: 12px 15px !important; font-size: 0.85rem; color: #00ff88;
    white-space: nowrap; overflow-x: auto;
}
.btn-copy-small {
    background: rgba(255,255,255,0.05); border: none; border-left: 1px solid rgba(255,255,255,0.1);
    color: #fff; padding: 0 20px; cursor: pointer; transition: 0.3s; font-size: 1.1rem;
}
.btn-copy-small:hover { background: #00ff88; color: #000; }

/* CODE & COPY BUTTON (RAW SOURCE) */
.code-wrapper {
    position: relative; background: #282c34; border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1); box-shadow: inset 0 0 20px rgba(0,0,0,0.5); overflow: hidden;
}
.code-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 20px; background: rgba(0,0,0,0.3); border-bottom: 1px solid rgba(255,255,255,0.1);
}
.code-title { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: #8b8b9e; }
.btn-copy-raw {
    background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff; padding: 5px 12px; border-radius: 6px; cursor: pointer;
    font-size: 0.85rem; transition: 0.3s; font-family: 'Poppins', sans-serif;
}
.btn-copy-raw:hover { background: #fff; color: #000; }
.guide-modal-body pre { margin: 0; padding: 0; }
.guide-modal-body code {
    font-family: 'JetBrains Mono', monospace; font-size: 0.95rem; line-height: 1.5;
    padding: 20px !important; display: block; overflow-x: auto;
}

/* MODAL FOOTER & AI SECTION */
.guide-modal-ai { padding: 20px 30px; border-top: 1px solid rgba(255, 255, 255, .05); background: rgba(189, 0, 255, .05); }
.btn-ai { width: 100%; padding: 12px; background: rgba(189, 0, 255, .15); border: 1px solid rgba(189, 0, 255, .4); border-radius: 8px; color: #fff; font-weight: 600; cursor: pointer; transition: .3s; font-size: 1rem; }
.btn-ai:hover { background: rgba(189, 0, 255, .4); box-shadow: 0 0 15px rgba(189, 0, 255, .3); }
.ai-output-box { margin-top: 15px; padding: 15px; background: rgba(0,0,0,0.4); border-left: 3px solid #bd00ff; border-radius: 5px; color: #e0e0e0; font-size: 0.95rem; line-height: 1.6; }

.guide-modal-footer { padding: 20px 30px; border-top: 1px solid rgba(255, 255, 255, .05); display: flex; justify-content: space-between; background: rgba(0, 0, 0, .2); border-radius: 0 0 20px 20px; }
.btn-nav { padding: 10px 20px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 8px; color: #fff; cursor: pointer; transition: .3s; font-weight: 600; font-size: 0.95rem; }
.btn-nav:hover { background: #00ff88; color: #000; border-color: #00ff88; }

.main-footer { opacity: 0; margin-top: 40px; margin-bottom: 20px; padding: 20px 40px; background: rgba(15, 12, 41, 0.4); border: 1px solid rgba(255, 255, 255, .05); border-radius: 15px; display: flex; justify-content: space-between; align-items: center; }
.footer-link { color: rgba(255,255,255,0.6); text-decoration: none; font-size: .95rem; font-weight: 500; transition: .3s; }
.footer-link:hover { color: #fff; }
.footer-copy { color: rgba(255, 255, 255, .4); font-size: .95rem; }

@media (max-width: 600px) {
    .dashboard-section { padding: 20px; }
    .main-footer { flex-direction: column; gap: 10px; text-align: center; }
    .cdn-card .card-content { flex-direction: column; align-items: flex-start; gap: 10px; }
    .cdn-card .btn-start { margin: 0; width: 100%; }
    .injector-code { flex-direction: column; }
    .btn-copy-small { width: 100%; padding: 10px; border-left: none; border-top: 1px solid rgba(255,255,255,0.1); }
}