/* -------------------------------
   BLACK NEON THEME (v5.4 ORIGINAL)
------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0a0f;
    font-family: 'Segoe UI', 'Roboto', 'Courier New', monospace;
    color: #e0e0e0;
    padding: 2rem 1rem;
    line-height: 1.5;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.neon-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #00ff8822;
    padding-bottom: 1rem;
}
.neon-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #00ff88, #0088ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 8px #00ff8844;
}
.neon-header p {
    color: #888;
    margin-top: 0.5rem;
}
.neon-header small {
    display: block;
    margin-top: 8px;
    font-size: 0.75rem;
    color: #00ff88aa;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #1f1f2f;
    padding-bottom: 0.5rem;
}
.tab-btn {
    background: #111118;
    border: 1px solid #2a2a3a;
    color: #ccc;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 40px;
    transition: all 0.2s ease;
    font-family: inherit;
}
.tab-btn.active {
    background: #00ff8822;
    border-color: #00ff88;
    color: #00ff88;
    box-shadow: 0 0 8px #00ff8844;
}
.tab-btn:hover:not(.active) {
    border-color: #0088ff;
    color: #0088ff;
}

.tab-pane {
    display: none;
    animation: fade 0.2s ease;
}
.tab-pane.active {
    display: block;
}
@keyframes fade {
    from { opacity: 0; transform: translateY(6px);}
    to { opacity: 1; transform: translateY(0);}
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.field-group {
    background: #0f0f16;
    border: 1px solid #1f1f2c;
    border-radius: 16px;
    padding: 1rem 1.2rem;
    transition: 0.2s;
    position: relative;
}
.field-group:hover {
    border-color: #00ff8844;
}
.full-width {
    grid-column: 1 / -1;
}
.label-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}
label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: #aaa;
}
.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #00ff8822;
    border: 1px solid #00ff88;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    color: #00ff88;
    cursor: pointer;
    transition: 0.2s;
}
.tooltip-icon:hover {
    background: #00ff88;
    color: #000;
    box-shadow: 0 0 8px #00ff88;
}
.tooltip-bubble {
    position: absolute;
    background: #1a1a2a;
    border-left: 3px solid #00ff88;
    padding: 1rem;
    border-radius: 16px;
    font-size: 0.8rem;
    color: #ddd;
    max-width: 320px;
    z-index: 2000;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    display: none;
    flex-direction: column;
    gap: 10px;
}
.tooltip-bubble.show {
    display: flex;
}
.tooltip-bubble .close-tooltip {
    align-self: flex-end;
    background: none;
    border: none;
    color: #00ff88;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
}
.tooltip-bubble .more-link {
    color: #00ff88;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.75rem;
    text-align: right;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
}
.modal-overlay.active {
    display: flex;
}
.modal-content {
    background: #0f0f18;
    border: 1px solid #00ff88;
    border-radius: 28px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 0 30px #00ff8844;
}
.modal-content h3 {
    color: #00ff88;
    margin-bottom: 1rem;
    padding-right: 2rem;
}
.modal-content p, .modal-content li {
    margin-bottom: 0.75rem;
    line-height: 1.5;
    color: #ddd;
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    color: #00ff88;
    font-size: 1.8rem;
    cursor: pointer;
}
.modal-close:hover {
    color: #ff3366;
}
.close-modal-btn {
    background: #00ff8822;
    border: 1px solid #00ff88;
    color: #00ff88;
    padding: 0.5rem 1.5rem;
    border-radius: 40px;
    cursor: pointer;
    margin-top: 1rem;
    font-family: inherit;
    font-weight: bold;
}

input, select, textarea {
    width: 100%;
    background: #050508;
    border: 1px solid #2a2a3a;
    padding: 0.7rem 0.9rem;
    border-radius: 12px;
    color: #f0f0f0;
    font-size: 0.95rem;
    font-family: inherit;
    transition: 0.2s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #00ff88;
    box-shadow: 0 0 6px #00ff8866;
}
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0.5rem 0;
    flex-wrap: wrap;
}
.checkbox-group input {
    width: 20px;
    height: 20px;
    accent-color: #00ff88;
}
hr {
    border: 0;
    border-top: 1px solid #1f1f2c;
    margin: 1rem 0;
    grid-column: 1 / -1;
}
.badge {
    font-size: 0.7rem;
    color: #00ff88aa;
}

.action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0 1.5rem;
}
.btn {
    background: #111118;
    border: 1px solid #2a2a3a;
    padding: 0.8rem 1.8rem;
    border-radius: 40px;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
    color: #e0e0e0;
    font-family: inherit;
}
.btn-primary {
    background: #00ff8822;
    border-color: #00ff88;
    color: #00ff88;
    box-shadow: 0 0 5px #00ff8844;
}
.btn-primary:hover {
    background: #00ff8844;
    transform: scale(1.02);
}
.btn-secondary {
    border-color: #0088ff;
    color: #88ccff;
}
.btn-secondary:hover {
    background: #0088ff22;
}
.btn-warning {
    border-color: #ff3366;
    color: #ff88aa;
}
.btn-warning:hover {
    background: #ff336622;
}
.preview-area {
    background: #050508;
    border-radius: 24px;
    border: 1px solid #2a2a3a;
    padding: 1.5rem;
    margin-top: 2rem;
}
.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    border-bottom: 1px dashed #2a2a3a;
    padding-bottom: 0.5rem;
}
pre {
    background: #020205;
    padding: 1.2rem;
    border-radius: 20px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #cfcfcf;
    max-height: 500px;
    overflow-y: auto;
}
.copy-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #00ff88;
    color: #000;
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    font-weight: bold;
    z-index: 9999;
    box-shadow: 0 0 20px #00ff88;
}
footer {
    text-align: center;
    margin-top: 3rem;
    font-size: 0.7rem;
    color: #444;
}
.inline-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

@media (max-width: 760px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .tab-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
}