:root {
    --bg: #0b0f19;
    --card: #161d2f;
    --accent: #47a7ff;
    --text: #ffffff;
    --gray: #94a3b8;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', sans-serif;
    margin: 0; padding: 20px;
}

header { text-align: center; margin-bottom: 50px; }
h1 span { color: var(--accent); text-shadow: 0 0 10px var(--accent); }

#searchBar {
    width: 80%; max-width: 500px;
    padding: 12px 20px;
    border-radius: 25px;
    border: 2px solid #2e3c51;
    background: var(--card);
    color: white; outline: none;
}

#library {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px; max-width: 1000px; margin: 0 auto;
}

.script-card {
    background: var(--card);
    padding: 20px; border-radius: 15px;
    border: 1px solid #2e3c51;
    display: flex; flex-direction: column; justify-content: space-between;
}

.script-card h3 { margin-top: 0; color: var(--accent); }
.script-card p { color: var(--gray); font-size: 0.9rem; }

button {
    background: var(--accent); color: #000;
    border: none; padding: 10px; border-radius: 8px;
    font-weight: bold; cursor: pointer; transition: 0.3s;
}

button:hover { opacity: 0.8; transform: scale(1.02); }

#not-found {
    margin-top: 60px; text-align: center;
    padding: 40px; border-top: 1px solid #2e3c51;
}

/* MODALS */
.modal {
    display: none; position: fixed; z-index: 100;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: var(--card);
    margin: 10% auto; padding: 30px;
    width: 90%; max-width: 500px; border-radius: 20px;
    position: relative;
}

.close { position: absolute; right: 20px; top: 10px; font-size: 28px; cursor: pointer; }

input, textarea {
    width: 100%; margin: 10px 0; padding: 10px;
    background: #000; border: 1px solid #2e3c51;
    color: white; border-radius: 5px; box-sizing: border-box;
}

textarea { height: 150px; font-family: monospace; }
.btn-send { width: 100%; margin-top: 10px; background: #22c55e; }
