/* ============================================
   THE LAVENDER LOUNGE - Chucklefish-inspired Dark Theme
   ============================================ */

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    color: #e0d6ec;
    background: #1a1525;
    min-height: 100vh;
}

a {
    color: #b39ddb;
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: #d1c4e9;
    text-decoration: none;
}

input, textarea, select, button {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
}

/* --- HEADER --- */
#forum-header {
    background-color: #1a1525;
    background-image: linear-gradient(rgba(26, 21, 37, 0.3), rgba(26, 21, 37, 0.3)), url('header-banner.png');
    background-size: cover;
    background-position: center 35%;
    border-bottom: 3px solid #7e57c2;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    display: flex;
    align-items: flex-end;
}

#forum-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 21, 37, 0.2) 0%,
        rgba(26, 21, 37, 0.6) 60%,
        rgba(26, 21, 37, 0.95) 100%
    );
}

#forum-header .header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 20px 24px 20px;
    position: relative;
    z-index: 1;
    width: 100%;
}

#forum-header h1 {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 40px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
    margin-bottom: 6px;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6), 0 0 60px rgba(126, 87, 194, 0.4);
}

#forum-header .header-tagline {
    font-size: 15px;
    color: #d1c4e9;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: lowercase;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

/* --- NAVBAR --- */
#navbar {
    background: #211a33;
    border-bottom: 1px solid #2d2545;
    position: sticky;
    top: 0;
    z-index: 50;
}

#navbar .navbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

#navbar a {
    color: #b0a3c4;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 18px;
    display: inline-block;
    border-radius: 8px;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#navbar a:hover {
    background: rgba(126, 87, 194, 0.2);
    color: #d1c4e9;
    text-decoration: none;
}

#navbar a.admin-link {
    background: rgba(76, 175, 80, 0.15);
    color: #81c784;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

#navbar a.admin-link:hover {
    background: rgba(76, 175, 80, 0.3);
    color: #a5d6a7;
}

#navbar .search-bar {
    padding: 8px 20px;
    background: #1a1525;
}

#navbar .search-bar input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #3d3356;
    background: #2a2240;
    color: #e0d6ec;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}

#navbar .search-bar input:focus {
    border-color: #7e57c2;
}

#navbar .search-bar input::placeholder {
    color: #6b5f80;
}

/* --- BREADCRUMBS --- */
#breadcrumbs {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 20px;
    font-size: 13px;
    color: #7e6e99;
}

#breadcrumbs .crumb a {
    color: #9575cd;
    font-weight: 600;
}

#breadcrumbs .crumb a:hover {
    color: #b39ddb;
}

#breadcrumbs .crumb-sep {
    margin: 0 8px;
    color: #4a3f60;
}

/* --- SHOUTBOX --- */
#shoutbox-wrapper {
    max-width: 1100px;
    margin: 12px auto;
    border: 1px solid #2d2545;
    background: #221c35;
    border-radius: 12px;
    overflow: hidden;
}

#shoutbox-wrapper .section-header {
    background: linear-gradient(135deg, #7e57c2 0%, #5e35b1 100%);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.shoutbox-body {
    display: flex;
    min-height: 130px;
}

.shout-main {
    flex: 3;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #2d2545;
}

.shout-display {
    flex: 1;
    overflow-y: auto;
    max-height: 160px;
    padding: 10px 14px;
    font-size: 13px;
    background: #1e1830;
}

.shout-bubble {
    padding: 5px 0;
    border-bottom: 1px solid rgba(126, 87, 194, 0.1);
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shout-bubble strong {
    white-space: nowrap;
}

.shout-bubble span {
    color: #c4b8d9;
}

.shout-input-row {
    display: flex;
    border-top: 1px solid #2d2545;
    background: #251e3a;
}

.shout-input-row input {
    flex: 1;
    border: none;
    padding: 10px 14px;
    background: #2a2240;
    color: #e0d6ec;
    outline: none;
}

.shout-input-row input::placeholder {
    color: #6b5f80;
}

.shout-input-row button {
    padding: 10px 20px;
    background: #7e57c2;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    transition: background 0.2s;
}

.shout-input-row button:hover {
    background: #9575cd;
}

.shout-sidebar {
    flex: 1;
    background: #1e1830;
    font-size: 13px;
}

.shout-sidebar-title {
    background: #251e3a;
    padding: 10px 14px;
    font-weight: 700;
    color: #9575cd;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    border-bottom: 1px solid #2d2545;
}

#livePulseList {
    padding: 8px 14px;
}

.pulse-user-row {
    padding: 3px 0;
    font-size: 13px;
    color: #c4b8d9;
}

.pulse-user-row span {
    font-size: 8px;
}

/* --- MAIN LAYOUT --- */
#main-wrapper {
    max-width: 1100px;
    margin: 12px auto;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 0 20px;
}

/* --- SIDEBAR --- */
#sidebar {
    width: 260px;
    flex-shrink: 0;
}

.sidebar-panel {
    border: 1px solid #2d2545;
    background: #221c35;
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
}

.panel-title {
    background: linear-gradient(135deg, #7e57c2 0%, #5e35b1 100%);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    padding: 10px 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.panel-body {
    padding: 14px;
}

.panel-body input,
.panel-body textarea,
.panel-body select {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 10px;
    border: 1px solid #3d3356;
    background: #2a2240;
    color: #e0d6ec;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}

.panel-body input:focus,
.panel-body textarea:focus,
.panel-body select:focus {
    border-color: #7e57c2;
}

.panel-body input::placeholder,
.panel-body textarea::placeholder {
    color: #6b5f80;
}

.panel-body textarea {
    resize: vertical;
    min-height: 90px;
}

.panel-body select {
    cursor: pointer;
    appearance: auto;
}

.auth-status {
    font-size: 12px;
    color: #ef5350;
    text-align: center;
    min-height: 16px;
    margin-bottom: 8px;
}

.auth-btn-row {
    display: flex;
    gap: 8px;
}

.post-error {
    display: none;
    font-size: 12px;
    font-weight: 600;
    color: #ef5350;
    margin-bottom: 10px;
}

/* --- BUTTONS --- */
.btn-primary {
    background: linear-gradient(135deg, #7e57c2 0%, #5e35b1 100%);
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    border-radius: 8px;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #9575cd 0%, #7e57c2 100%);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(126, 87, 194, 0.15);
    color: #b39ddb;
    border: 1px solid #3d3356;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(126, 87, 194, 0.25);
    border-color: #7e57c2;
}

.btn-danger {
    background: rgba(239, 83, 80, 0.15);
    color: #ef5350;
    border: 1px solid rgba(239, 83, 80, 0.3);
    padding: 6px 14px;
    cursor: pointer;
    font-size: 12px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-danger:hover {
    background: rgba(239, 83, 80, 0.25);
}

/* --- CONTENT AREA --- */
#content {
    flex: 1;
    min-width: 0;
}

.category-bar {
    background: #221c35;
    border: 1px solid #2d2545;
    border-radius: 12px 12px 0 0;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cat-label {
    font-weight: 700;
    font-size: 12px;
    color: #9575cd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-bar select {
    padding: 6px 12px;
    border: 1px solid #3d3356;
    font-size: 13px;
    border-radius: 6px;
    background: #2a2240;
    color: #e0d6ec;
    cursor: pointer;
}

/* --- THREAD TABLE --- */
.thread-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #2d2545;
    border-top: none;
    background: #221c35;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.thread-table thead th {
    background: #2d2545;
    color: #b39ddb;
    font-size: 11px;
    font-weight: 700;
    padding: 10px 14px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.thread-table tbody tr {
    border-bottom: 1px solid #2a2240;
    transition: background 0.15s;
}

.thread-table tbody tr:nth-child(even) {
    background: #1e1830;
}

.thread-table tbody tr:nth-child(odd) {
    background: #221c35;
}

.thread-table tbody tr:hover {
    background: #2d2545;
}

.thread-table tbody td {
    padding: 12px 14px;
    font-size: 14px;
    vertical-align: top;
}

.col-status {
    width: 30px;
    text-align: center;
    color: #7e57c2;
}

.col-thread {
    min-width: 200px;
}

.col-author,
.col-replies,
.col-hearts {
    width: 90px;
    text-align: center;
    color: #9e8fbb;
}

.thread-title-link {
    color: #d1c4e9;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
}

.thread-title-link:hover {
    color: #fff;
    text-decoration: none;
}

.thread-snippet {
    font-size: 12px;
    color: #7e6e99;
    margin-top: 4px;
    display: block;
    line-height: 1.4;
}

.thread-category-badge {
    font-size: 10px;
    padding: 2px 8px;
    border: 1px solid #3d3356;
    background: rgba(126, 87, 194, 0.15);
    color: #9575cd;
    display: inline-block;
    margin-top: 5px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.thread-author {
    font-size: 13px;
    font-weight: 700;
}

.thread-author.founder {
    color: #ffb74d;
}

.thread-author.admin {
    color: #ef5350;
}

.thread-author.member {
    color: #b39ddb;
}

/* --- DELETE PILL (shout/admin) --- */
.delete-pill {
    font-size: 11px;
    color: #ef5350;
    background: none;
    border: 1px solid rgba(239, 83, 80, 0.3);
    padding: 1px 8px;
    cursor: pointer;
    margin-left: 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.delete-pill:hover {
    background: rgba(239, 83, 80, 0.15);
}

/* --- MODALS --- */
.modal-overlay {
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 8, 18, 0.85);
    overflow-y: auto;
    backdrop-filter: blur(4px);
}

.modal-box {
    background: #221c35;
    border: 1px solid #2d2545;
    margin: 40px auto;
    width: 90%;
    max-width: 750px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-box.modal-large {
    max-width: 860px;
}

.modal-header {
    background: linear-gradient(135deg, #7e57c2 0%, #5e35b1 100%);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: 0.5px;
}

.modal-close {
    color: rgba(255, 255, 255, 0.6);
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #fff;
    text-decoration: none;
}

.modal-divider {
    border: none;
    border-top: 1px solid #2d2545;
    margin: 0;
}

.modal-body-scroll {
    max-height: 70vh;
    overflow-y: auto;
}

/* --- THREAD DETAIL (inside modal) --- */
.thread-detail-header {
    background: linear-gradient(135deg, #7e57c2 0%, #5e35b1 100%);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.thread-detail-header h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.thread-detail-close {
    color: rgba(255, 255, 255, 0.6);
    font-size: 22px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s;
}

.thread-detail-close:hover {
    color: #fff;
    text-decoration: none;
}

/* --- POST LAYOUT --- */
.post-row {
    display: flex;
    border-bottom: 1px solid #2d2545;
}

.post-user-cell {
    width: 160px;
    flex-shrink: 0;
    background: #1e1830;
    padding: 14px;
    text-align: center;
    border-right: 1px solid #2d2545;
    font-size: 13px;
}

.post-user-cell .user-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 8px auto;
    display: block;
    border: 2px solid #3d3356;
    border-radius: 12px;
}

.post-user-cell .user-name {
    font-weight: 700;
    font-size: 14px;
    display: block;
    margin-bottom: 4px;
}

.post-user-cell .user-name.founder { color: #ffb74d; }
.post-user-cell .user-name.admin { color: #ef5350; }
.post-user-cell .user-name.member { color: #b39ddb; }

.post-user-cell .user-role {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.post-user-cell .user-stats {
    font-size: 11px;
    color: #7e6e99;
    line-height: 1.7;
}

.post-content-cell {
    flex: 1;
    padding: 14px 18px;
    min-width: 0;
    background: #221c35;
}

.post-content-cell .post-meta-bar {
    font-size: 12px;
    color: #6b5f80;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #2a2240;
}

.post-content-cell .post-body {
    line-height: 1.8;
    color: #d0c5e3;
    word-wrap: break-word;
    font-size: 14px;
}

.post-content-cell .post-actions {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #2a2240;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

/* --- QUOTE BOX --- */
.quote-box {
    background: rgba(126, 87, 194, 0.1);
    border-left: 4px solid #7e57c2;
    padding: 12px 16px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #b39ddb;
    border-radius: 0 8px 8px 0;
}

.quote-box .quote-header {
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    color: #9575cd;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.quote-box .quote-text {
    font-style: italic;
    opacity: 0.85;
}

/* --- QUOTE PREVIEW (in reply compose) --- */
.quote-preview {
    background: rgba(126, 87, 194, 0.1);
    border-left: 4px solid #7e57c2;
    padding: 10px 14px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #b39ddb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 8px 8px 0;
}

.quote-preview .cancel-quote {
    background: none;
    border: none;
    color: #9575cd;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.2s;
}

.quote-preview .cancel-quote:hover {
    color: #d1c4e9;
}

/* --- REPLY COMPOSE --- */
.reply-compose {
    border: 1px solid #2d2545;
    margin: 14px 18px 18px 18px;
    border-radius: 12px;
    overflow: hidden;
}

.reply-compose textarea {
    width: 100%;
    min-height: 90px;
    padding: 12px;
    border: 1px solid #3d3356;
    background: #2a2240;
    color: #e0d6ec;
    font-size: 14px;
    resize: vertical;
    border-radius: 8px;
    outline: none;
}

.reply-compose textarea:focus {
    border-color: #7e57c2;
}

.reply-compose textarea::placeholder {
    color: #6b5f80;
}

/* --- HEART BUTTON --- */
.heart-btn {
    background: rgba(233, 30, 99, 0.1);
    border: 1px solid rgba(233, 30, 99, 0.3);
    color: #f06292;
    padding: 5px 14px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    transition: all 0.2s;
}

.heart-btn:hover {
    background: rgba(233, 30, 99, 0.2);
    border-color: rgba(233, 30, 99, 0.5);
}

/* --- ACTION LINKS (edit/delete/quote) --- */
.action-link {
    color: #9575cd;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    font-weight: 600;
    transition: color 0.2s;
}

.action-link:hover {
    color: #d1c4e9;
}

.action-link.danger {
    color: #ef5350;
}

.action-link.danger:hover {
    color: #ff7043;
}

/* --- INLINE EDITOR --- */
.ghost-editor {
    width: 100%;
    min-height: 90px;
    padding: 12px;
    border: 1px solid #3d3356;
    background: #2a2240;
    color: #e0d6ec;
    font-size: 14px;
    resize: vertical;
    border-radius: 8px;
    outline: none;
}

.ghost-editor:focus {
    border-color: #7e57c2;
}

.inline-save-btn {
    background: #7e57c2;
    color: #fff;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    transition: background 0.2s;
}

.inline-save-btn:hover {
    background: #9575cd;
}

.inline-cancel-btn {
    background: rgba(126, 87, 194, 0.15);
    color: #b39ddb;
    border: 1px solid #3d3356;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.inline-cancel-btn:hover {
    background: rgba(126, 87, 194, 0.25);
}

/* --- EDITOR TOOLBAR (rules) --- */
.editor-toolbar {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.editor-toolbar button {
    padding: 6px 14px;
    font-size: 12px;
    background: rgba(126, 87, 194, 0.15);
    color: #b39ddb;
    border: 1px solid #3d3356;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s;
}

.editor-toolbar button:hover {
    background: rgba(126, 87, 194, 0.25);
    border-color: #7e57c2;
}

#rulesEditor {
    width: 100%;
    height: 160px;
    padding: 12px;
    border: 1px solid #3d3356;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    background: #2a2240;
    color: #d1c4e9;
    resize: vertical;
    border-radius: 8px;
    outline: none;
}

#rulesEditor:focus {
    border-color: #7e57c2;
}

/* --- MEMBER LIST --- */
.member-list-row {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid #2a2240;
    font-size: 13px;
    transition: background 0.15s;
}

.member-list-row:hover {
    background: #2d2545;
}

.member-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

.member-status-dot.online { background: #66bb6a; box-shadow: 0 0 6px rgba(102, 187, 106, 0.5); }
.member-status-dot.offline { background: #4a3f60; }

.member-avatar-small {
    width: 32px;
    height: 32px;
    border: 2px solid #3d3356;
    margin-right: 10px;
    border-radius: 8px;
}

.member-name {
    font-weight: 700;
    flex: 1;
    color: #d1c4e9;
}

.member-role-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    background: rgba(126, 87, 194, 0.15);
    color: #9575cd;
    border: none;
}

.member-role-tag.admin {
    background: rgba(239, 83, 80, 0.15);
    color: #ef5350;
}

.member-role-tag.founder {
    background: rgba(255, 183, 77, 0.15);
    color: #ffb74d;
}

#memberSearch {
    width: calc(100% - 28px);
    padding: 10px 14px;
    border: 1px solid #3d3356;
    font-size: 13px;
    margin: 14px 14px 0 14px;
    background: #2a2240;
    color: #e0d6ec;
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;
}

#memberSearch:focus {
    border-color: #7e57c2;
}

#memberSearch::placeholder {
    color: #6b5f80;
}

/* --- NOTIFICATION ITEMS --- */
.notif-item {
    padding: 12px 16px;
    border-bottom: 1px solid #2a2240;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.15s;
}

.notif-item:hover {
    background: #2d2545;
}

.notif-item.read {
    opacity: 0.5;
}

.notif-section-header {
    padding: 8px 16px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #2d2545;
    color: #9575cd;
}

.notif-section-header.history {
    background: #1e1830;
    color: #6b5f80;
}

/* --- NOTIFICATION BADGE --- */
.notification-btn {
    background: linear-gradient(135deg, #7e57c2, #5e35b1);
    color: #fff;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    position: relative;
    width: 100%;
    text-align: center;
    transition: all 0.2s;
    margin-top: 14px;
    box-shadow: 0 2px 8px rgba(126, 87, 194, 0.3);
}

.notification-btn:hover {
    background: linear-gradient(135deg, #9575cd, #7e57c2);
    box-shadow: 0 4px 12px rgba(126, 87, 194, 0.4);
    transform: translateY(-1px);
}

.notif-count {
    background: #e91e63;
    color: #fff;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: 6px;
    font-weight: 700;
}

/* --- USER WELCOME CARD (sidebar) --- */
.user-welcome-card {
    text-align: center;
}

.welcome-card-inner {
    background: rgba(126, 87, 194, 0.08);
    border: 2px solid rgba(126, 87, 194, 0.25);
    border-radius: 10px;
    padding: 20px 16px;
    margin-bottom: 14px;
}

.user-welcome-card h3 {
    font-size: 20px;
    color: #b39ddb;
    margin-bottom: 8px;
    font-weight: 700;
    line-height: 1.3;
}

.user-welcome-card .role-label {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: #9e8fbb;
}

.user-welcome-card .role-label strong {
    letter-spacing: 1.5px;
}

.user-welcome-card .role-label.founder strong { color: #ffb74d; }
.user-welcome-card .role-label.admin strong { color: #ef5350; }
.user-welcome-card .role-label.member strong { color: #9575cd; }

.user-stats-list {
    text-align: left;
    font-size: 14px;
    color: #d1c4e9;
    line-height: 2.1;
    padding: 0 4px;
}

.user-stats-list strong {
    color: #9e8fbb;
}

/* --- FORUM STATS FOOTER --- */
#forum-stats {
    max-width: 1100px;
    margin: 16px auto;
    background: #221c35;
    border: 1px solid #2d2545;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 13px;
    color: #9e8fbb;
    text-align: center;
}

/* --- PAGE FOOTER --- */
#page-footer {
    background: #15111f;
    border-top: 1px solid #2d2545;
    margin-top: 30px;
    padding: 30px 20px;
    text-align: center;
}

#page-footer .footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

#page-footer .footer-links a {
    color: #7e6e99;
    font-size: 13px;
    margin: 0 12px;
    font-weight: 600;
    transition: color 0.2s;
}

#page-footer .footer-links a:hover {
    color: #b39ddb;
}

#page-footer .footer-copy {
    color: #4a3f60;
    font-size: 12px;
}

#page-footer p {
    color: #4a3f60;
    font-size: 12px;
}

/* --- ADMIN DASHBOARD --- */
#adminDashboard {
    max-width: 1100px;
    margin: 16px auto;
    padding: 0 20px;
}

.admin-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin-header-row h2 {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    color: #66bb6a;
    border-bottom: 3px solid #66bb6a;
    padding-bottom: 6px;
}

.admin-table {
    font-size: 13px;
}

.admin-table td {
    font-size: 13px;
    color: #c4b8d9;
}

/* --- MOBILE --- */
.mobile-only {
    display: none;
}

.mobile-post-form {
    background: #221c35;
    border: 1px solid #2d2545;
    padding: 14px;
    margin-bottom: 12px;
    border-radius: 12px;
}

.mobile-post-form input,
.mobile-post-form textarea,
.mobile-post-form select {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 10px;
    border: 1px solid #3d3356;
    background: #2a2240;
    color: #e0d6ec;
    font-size: 14px;
    border-radius: 8px;
    outline: none;
}

.mobile-post-form input::placeholder,
.mobile-post-form textarea::placeholder {
    color: #6b5f80;
}

@media (max-width: 768px) {
    #main-wrapper {
        flex-direction: column;
        padding: 0 12px;
    }

    #sidebar {
        width: 100%;
        order: 2;
    }

    #content {
        order: 1;
    }

    .mobile-only {
        display: block;
    }

    .col-replies,
    .col-hearts {
        display: none;
    }

    .post-user-cell {
        width: 100px;
        padding: 10px 8px;
    }

    .post-user-cell .user-avatar {
        width: 56px;
        height: 56px;
    }

    .post-user-cell .user-stats {
        display: none;
    }

    .shoutbox-body {
        flex-direction: column;
    }

    .shout-sidebar {
        border-top: 1px solid #2d2545;
    }

    .shout-main {
        border-right: none;
    }

    #forum-header h1 {
        font-size: 26px;
    }

    #forum-header {
        aspect-ratio: 16 / 6;
    }

    #forum-header .header-inner {
        padding: 30px 16px 18px 16px;
    }
}

/* --- SCROLLBAR STYLING --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1525;
}

::-webkit-scrollbar-thumb {
    background: #3d3356;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a3f60;
}
