body.dark {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #050509;
    color: #e5e5f0;
}

a {
    color: #7aa2ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-header {
    background: #0b0b11;
    border-bottom: 1px solid #222232;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header .logo a {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
}

.main-nav a {
    margin-left: 16px;
    font-size: 0.95rem;
}

.site-main {
    max-width: 960px;
    margin: 24px auto;
    padding: 0 16px 48px;
}

.card {
    background: #101017;
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 16px;
    border: 1px solid #232336;
}

.card h1,
.card h2,
.card h3 {
    margin-top: 0;
}

.button {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    border: none;
    background: #4555ff;
    color: #ffffff;
    cursor: pointer;
    font-size: 0.95rem;
}

.button.secondary {
    background: #222232;
}

.button:disabled {
    opacity: 0.6;
    cursor: default;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #303046;
    background: #080812;
    color: #e5e5f0;
    margin-bottom: 10px;
}

label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 12px;
}

.forum-post {
    display: flex;
    padding: 16px;
}

.forum-post-left {
    width: 180px;
    text-align: center;
    padding-right: 20px;
    border-right: 1px solid #333;
}

.forum-post-right {
    flex: 1;
    padding-left: 20px;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 6px;
    object-fit: cover;
    margin-bottom: 8px;
}

.poster-name {
    font-weight: bold;
    margin-bottom: 4px;
}

.poster-role {
    font-size: 0.9em;
    color: #87a0ff;
    margin-bottom: 8px;
}

.forum-post-top {
    display: flex;
    justify-content: space-between;
}

.forum-post-actions a {
    margin-left: 12px;
    color: #7aa2ff;
}

.forum-post-signature {
    margin-top: 12px;
    font-size: 0.9em;
    color: #a0a0c0;
}

.wysiwyg-toolbar {
    margin-bottom: 6px;
}

.wysiwyg-button {
    background: #FFFFFF;
    border: 1px solid #303046;
    border-radius: 4px;
    padding: 2px 4px;
    margin-right: 4px;
    cursor: pointer;
}
.wysiwyg-button img {
    vertical-align: middle;
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(151%) hue-rotate(231deg) brightness(102%) contrast(100%);
}

.bb-quote {
    border-left: 3px solid #444a7a;
    background: #0b0b15;
    padding: 8px 10px;
    margin: 8px 0;
    border-radius: 4px;
}

.bb-quote-author {
    font-size: 0.85em;
    color: #9aa3ff;
    margin-bottom: 4px;
}

.bb-quote-inner {
    font-size: 0.95em;
}

.bb-code {
    background: #050509;
    border: 1px solid #33354f;
    padding: 8px;
    border-radius: 4px;
    overflow-x: auto;
    font-family: "Fira Code", "Consolas", monospace;
    font-size: 0.9em;
}

.bb-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: 4px;
}

.settings-menu {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.settings-menu li a {
    background: #202030;
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid #303040;
    color: #aab4ff;
    text-decoration: none;
}
.settings-menu li a:hover {
    background: #2c2c46;
}

.settings-section {
    display: none;
}

.settings-section.active {
    display: block;
}

.card.success {
    border: 1px solid #4caf50;
    background: #081807;
    color: #9affaa;
}