* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Cairo', sans-serif; background: linear-gradient(135deg, #0f1419 0%, #1a237e 100%); min-height: 100vh; color: #ff9800; }
.container { max-width: 800px; margin: 0 auto; padding: 20px; }
header { text-align: center; margin-bottom: 40px; }
.header-logo { max-width: 250px; height: auto; margin-bottom: 10px; }
header h2 { font-size: 28px; color: #ffcc80; font-weight: 700; }
header p { font-size: 20px; color: #ffcc80; font-weight: 400; font-style: italic; margin-top: 10px; }
.header-buttons { display: flex; justify-content: center; gap: 15px; margin-top: 20px; }
.form-container { background: rgba(15, 20, 25, 0.9); padding: 30px; border-radius: 15px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5); backdrop-filter: blur(10px); border: 1px solid rgba(255, 152, 0, 0.2); transition: all 0.3s ease; }
label { display: block; margin-bottom: 8px; color: #ff9800; font-weight: 600; }
.label-with-button { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.idea-btn { background: none; border: 1px solid #ff9800; color: #ff9800; padding: 5px 10px; font-size: 12px; border-radius: 15px; cursor: pointer; margin: 0; width: auto; font-weight: normal; }
.idea-btn:hover { background: rgba(255, 152, 0, 0.2); }
textarea, input[type="text"], input[type="password"], input[type="number"], select { width: 100%; padding: 12px 15px; border: 1px solid rgba(255, 152, 0, 0.3); border-radius: 8px; background: rgba(255, 255, 255, 0.05); color: #fff; font-size: 16px; margin-bottom: 20px; font-family: 'Cairo', sans-serif; transition: all 0.3s ease; }
textarea { min-height: 120px; resize: vertical; }
select { -webkit-appearance: none; -moz-appearance: none; appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff9800' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: left 1rem center; background-size: 1em; padding-right: 15px; padding-left: 2.5rem; }
select option { background: #0f1419; color: #f0f0f0; }
input:focus, textarea:focus, select:focus { outline: none; border-color: #ff9800; box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.3); }
input::placeholder, textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
button { background: linear-gradient(135deg, #ff9800 0%, #ff6f00 100%); color: #fff; border: none; padding: 15px 40px; border-radius: 25px; font-size: 18px; font-weight: 700; cursor: pointer; display: block; margin: 20px auto 0; transition: all 0.3s ease; font-family: 'Cairo', sans-serif; box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4); }
button:hover { background: linear-gradient(135deg, #fb8c00 0%, #e65100 100%); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 152, 0, 0.6); }
button:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.settings-btn { background: rgba(15, 20, 25, 0.9); color: #ff9800; padding: 10px 20px; border-radius: 20px; font-size: 14px; margin: 0; display: inline-block; border: 1px solid rgba(255, 152, 0, 0.3); width: auto; }
.settings-btn:hover { background: rgba(255, 152, 0, 0.2); border-color: #ff9800; }
.secondary-btn { background: linear-gradient(135deg, #37474f 0%, #546e7a 100%); width: auto; font-size: 14px; padding: 10px 20px; }
.result-container { background: rgba(15, 20, 25, 0.9); padding: 30px; border-radius: 15px; margin-top: 30px; border: 1px solid rgba(255, 152, 0, 0.2); }
.result-container h2 { color: #ff9800; margin-bottom: 20px; font-weight: 700; text-align: center; }
.result-content-box { background: rgba(255, 255, 255, 0.05); padding: 20px; border-radius: 10px; line-height: 1.9; white-space: pre-wrap; border: 1px solid rgba(255, 152, 0, 0.2); color: #fff; margin-bottom: 20px; font-size: 16px; }
.action-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.success-btn { background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%); width: auto; font-size: 14px; padding: 10px 20px; }
.warning-btn { background: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%); width: auto; font-size: 14px; padding: 10px 20px; }
.loading { display: inline-block; width: 20px; height: 20px; border: 3px solid rgba(255, 255, 255, 0.3); border-radius: 50%; border-top-color: #fff; animation: spin 1s ease-in-out infinite; margin-left: 10px; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
footer { text-align: center; padding: 25px; margin-top: 50px; color: #8a96a8; font-size: 14px; border-top: 1px solid rgba(255, 152, 0, 0.1); }
footer p { margin: 5px 0; }
#charactersContainer { border-top: 1px solid rgba(255, 152, 0, 0.2); padding-top: 20px; }
.character-input-group { border: 1px solid rgba(255, 152, 0, 0.2); padding: 15px; border-radius: 8px; margin-bottom: 15px; }
.character-input-group h4 { margin-bottom: 15px; font-weight: 600; color: #ffcc80; display: flex; justify-content: space-between; align-items: center; }
.character-field { display: grid; grid-template-columns: auto 1fr; gap: 10px 15px; align-items: center; margin-bottom: 10px; }
.develop-btn { background: none; border: 1px solid #37474f; color: #ffcc80; padding: 3px 8px; font-size: 10px; border-radius: 12px; cursor: pointer; margin: 0; width: auto; font-weight: normal; }
.develop-btn:hover { background: #37474f; }
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.7); backdrop-filter: blur(5px); align-items: center; justify-content: center; }
.modal-content { background: #0f1419; margin: auto; padding: 30px; border: 1px solid rgba(255, 152, 0, 0.3); width: 90%; max-width: 600px; border-radius: 15px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5); position: relative; animation: fadeInModal 0.5s ease-out; }
@keyframes fadeInModal { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.close-btn { color: #aaa; position: absolute; left: 20px; top: 10px; font-size: 32px; font-weight: bold; transition: color 0.3s ease; }
.close-btn:hover, .close-btn:focus { color: #ff9800; text-decoration: none; cursor: pointer; }
.modal-content h2 { color: #ff9800; margin-bottom: 20px; text-align: center; }
.idea { background: rgba(255, 255, 255, 0.05); padding: 15px; border-radius: 8px; margin-bottom: 10px; cursor: pointer; transition: background 0.3s ease; border: 1px solid rgba(255, 152, 0, 0.2); }
.idea:hover { background: rgba(255, 152, 0, 0.2); }
.vault-item { display: flex; justify-content: space-between; align-items: center; background: rgba(255, 255, 255, 0.05); padding: 10px 15px; border-radius: 8px; margin-bottom: 10px; border: 1px solid rgba(255, 152, 0, 0.2); }
.vault-item-title { cursor: pointer; flex-grow: 1; }
.vault-item-actions button { background: none; border: none; color: #ff9800; font-size: 16px; margin: 0 5px; padding: 5px; width: auto; }
.vault-item-actions button:hover { color: #fff; }
#vaultContent { max-height: 60vh; overflow-y: auto; }
.series-selection { margin-bottom: 20px; }
@media (max-width: 768px) { .container { padding: 10px; } .header-logo { max-width: 200px; } .form-container, .result-container { padding: 20px; } }