/*
 * ═══════════════════════════════════════════════════════════════
 * SOLARA THEME
 * Created by: Lavender
 * Built on: Curves UI foundation by MattyWjeisz
 * Custom design for Solara RPG
 * ═══════════════════════════════════════════════════════════════
 */

/* =================================================================
 * TABLE OF CONTENTS:
 * -----------------------------------------------------------------
 * 1.  Fonts & Variables
 * 2.  Global Styles & Base
 * 3.  Layout & Structural Elements
 * 4.  Navigation & Dropdowns
 * 5.  Hero Banner & Logo
 * 6.  Forum Display & Tables
 * 7.  Post & Thread Styles
 * 8.  Forms & Buttons
 * 9.  UI Components & Effects
 * 10. Animations & Keyframes
 * 11. Custom Scrollbar
 * 12. OOC Forum Specific Styles
 * 13. IC Forum Specific Styles
 * 14. Responsive Design
 * 15. Footer Styles
 * 16. Recent Threads Dashboard
 * 17. Login Page
 * 18. Board Closed Page
 * 19. Redirect Page
 * 20. Forums Background Wrapper
 * 21. Decorative Background Spheres
 * 22. Mini Profile Cards
 *     22b. OOC Mini Profile Cards (Player Profiles)
 *     22c. IC Mini Profile Cards (Character Profiles)
 * =================================================================
 */


/* =================================================================
   1. FONTS & VARIABLES
   ================================================================= */

/* --- Font Imports --- */
@import url(https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400;1,500;1,600&family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&display=swap);

@font-face {
    font-family: 'Adelia';
    src: url(../../../images/fonts/adelia.woff) format('woff'),
         url(../../../images/fonts/adelia.ttf) format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* --- Root Variables --- */
:root {
    /* ═══════════════════════════════════════════════════════════════
       COHESIVE COLOR PALETTE
       Based on: darkprince, robotic gods, admiral blue, temptest
       ═══════════════════════════════════════════════════════════════ */

    /* Primary Palette - 4 Core Text Colors */
    --solara-primary: #b8c5db;           /* Softer highlight - hover states */
    --solara-secondary: #92a1ba;         /* robotic gods - main readable text */
    --solara-tertiary: #77839f;          /* temptest - secondary text */
    --solara-muted: #646f89;             /* darkprince - muted/timestamps */
    --solara-deep: #5d6781;              /* admiral blue - subtle accents */

    /* Background Colors */
    --solara-accent: #312877;
    --solara-dark: rgba(6, 13, 42, 0.6);
    --solara-bg-base: #060d2a;
    --solara-bg-dark: rgb(4, 9, 35);

    /* Glow Effects - Keeping muted cyan */
    --solara-glow: rgba(77, 181, 248, 0.2);
    --solara-glow-strong: rgba(77, 181, 248, 0.35);

    /* Text Colors - Consolidated */
    --solara-text-primary: #92a1ba;      /* robotic gods - main text */
    --solara-text-secondary: #77839f;    /* temptest - body text */
    --solara-text-muted: #646f89;        /* darkprince - muted text */
    --solara-text-link: #77839f;         /* temptest - links */
    --solara-text-link-hover: #b8c5db;   /* softer hover - easy on eyes */

    /* Solid Background Properties */
    --solara-panel: rgba(6, 13, 42, 0.95);
    --solara-panel-light: rgba(10, 18, 48, 0.9);
    --solara-panel-dark: rgba(4, 10, 32, 0.98);
    --panel-border: 1px solid rgba(49, 40, 119, 0.15);
    --panel-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 40px rgba(6, 13, 42, 0.4);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'EB Garamond', serif;
    --font-nav: 'Playfair Display', serif;
    --font-accent: 'EB Garamond', serif;
    --font-logo: 'Adelia', 'Great Vibes', cursive;

    /* Borders & Spacing */
    --solara-border-subtle: rgba(49, 40, 119, 0.08);

    /* Dashboard Card Styles */
    --small-card-font-style: italic;
    --small-card-text-transform: lowercase;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Z-Index Scale */
    --z-background: -1;
    --z-content: 1;
    --z-dropdown: 100;
    --z-navbar: 9000;
    --z-dropdown-content: 9100;

    /* Scrollbar */
    --solara-scrollbar-track: rgba(4, 9, 35, 0.9);
    --solara-scrollbar-thumb: rgba(20, 35, 65, 1);
    --solara-scrollbar-thumb-hover: rgba(35, 55, 90, 1);

    /* Bootstrap Overrides - Colors */
    --bs-primary: #4db5f8;               /* Keeping muted cyan */
    --bs-primary-rgb: 77, 181, 248;
    --bs-secondary: #92a1ba;             /* robotic gods */
    --bs-secondary-rgb: 146, 161, 186;
    --bs-success: rgba(74, 200, 140, 0.2);
    --bs-info: #4db5f8;
    --bs-warning: rgba(248, 210, 160, 0.2);
    --bs-danger: rgba(240, 100, 100, 0.2);
    --bs-light: rgb(12, 18, 45);
    --bs-light-rgb: 12, 18, 45;
    --bs-dark: #060d2a;
    --bs-dark-rgb: 6, 13, 42;
    --bs-white: rgb(8, 14, 38);
    --bs-white-rgb: 8, 14, 38;

    /* Bootstrap Overrides - Body */
    --bs-body-bg: transparent;
    --bs-body-bg-rgb: 6, 13, 42;
    --bs-body-color: var(--solara-text-secondary);
    --bs-body-color-rgb: 119, 131, 159;  /* temptest RGB */
    --bs-body-font-family: 'EB Garamond', serif;

    /* Bootstrap Overrides - Links */
    --bs-link-color: var(--solara-text-secondary);
    --bs-link-hover-color: var(--solara-primary);
    --bs-link-decoration: none;
    --bs-link-hover-decoration: none;

    /* Bootstrap Overrides - Cards */
    --bs-card-bg: rgba(6, 13, 42, 0.95);
    --bs-card-border-color: rgba(100, 180, 220, 0.1);
    --bs-card-border-radius: 0;
    --bs-card-border-width: 1px;
    --bs-card-box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --bs-card-cap-bg: rgba(6, 19, 56, 0.5);
    --bs-card-color: var(--solara-text-secondary);

    /* Bootstrap Overrides - Forms */
    --bs-border-color: rgba(100, 180, 220, 0.15);
    --bs-border-radius: 0;
    --bs-form-control-bg: rgba(6, 19, 56, 0.6);
    --bs-form-control-disabled-bg: rgba(6, 19, 56, 0.3);
    --bs-form-select-bg: rgba(6, 19, 56, 0.6);
    --bs-form-select-indicator-color: var(--solara-text-secondary);

    /* Bootstrap Overrides - Buttons */
    --bs-btn-bg: rgba(6, 19, 56, 0.5);
    --bs-btn-border-color: rgba(100, 180, 220, 0.15);
    --bs-btn-color: var(--solara-text-secondary);
    --bs-btn-hover-bg: rgba(6, 19, 56, 0.7);
    --bs-btn-hover-border-color: rgba(100, 180, 220, 0.3);
    --bs-btn-hover-color: var(--solara-primary);
    --bs-btn-focus-box-shadow: 0 0 10px rgba(77, 181, 248, 0.3);
    --bs-btn-border-radius: 0;

    /* Bootstrap Overrides - Text Muted */
    --bs-secondary-color: var(--solara-text-muted);
    --bs-tertiary-color: var(--solara-text-muted);
}

/* =================================================================
   SOLARA UTILITIES
   Custom utility system - replaces Bootstrap CSS
   ================================================================= */

/* --- Containers --- */
.container,
.container-fluid,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
    position: relative;
    z-index: 10;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.container-sm { max-width: 540px; }
.container-md { max-width: 1300px; }
.container-lg { max-width: 960px; }
.container-xl { max-width: 1140px; }
.container-xxl { max-width: 1320px; }
.container { max-width: 1300px; }

/* --- Row & Columns --- */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

.col { flex: 1 0 0%; }
.col-auto { flex: 0 0 auto; width: auto; }
.col-1 { flex: 0 0 auto; width: 8.333333%; }
.col-2 { flex: 0 0 auto; width: 16.666667%; }
.col-3 { flex: 0 0 auto; width: 25%; }
.col-4 { flex: 0 0 auto; width: 33.333333%; }
.col-5 { flex: 0 0 auto; width: 41.666667%; }
.col-6 { flex: 0 0 auto; width: 50%; }
.col-7 { flex: 0 0 auto; width: 58.333333%; }
.col-8 { flex: 0 0 auto; width: 66.666667%; }
.col-9 { flex: 0 0 auto; width: 75%; }
.col-10 { flex: 0 0 auto; width: 83.333333%; }
.col-11 { flex: 0 0 auto; width: 91.666667%; }
.col-12 { flex: 0 0 auto; width: 100%; }

/* --- Spacing: Margin --- */
.m-0 { margin: 0; }
.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-3 { margin: 1rem; }
.m-4 { margin: 1.5rem; }
.m-5 { margin: 3rem; }
.m-auto { margin: auto; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mt-auto { margin-top: auto; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mb-auto { margin-bottom: auto; }

.ms-0 { margin-left: 0; }
.ms-1 { margin-left: 0.25rem; }
.ms-2 { margin-left: 0.5rem; }
.ms-3 { margin-left: 1rem; }
.ms-4 { margin-left: 1.5rem; }
.ms-5 { margin-left: 3rem; }
.ms-auto { margin-left: auto; }

.me-0 { margin-right: 0; }
.me-1 { margin-right: 0.25rem; }
.me-2 { margin-right: 0.5rem; }
.me-3 { margin-right: 1rem; }
.me-4 { margin-right: 1.5rem; }
.me-5 { margin-right: 3rem; }
.me-auto { margin-right: auto; }

.mx-0 { margin-left: 0; margin-right: 0; }
.mx-1 { margin-left: 0.25rem; margin-right: 0.25rem; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.mx-3 { margin-left: 1rem; margin-right: 1rem; }
.mx-4 { margin-left: 1.5rem; margin-right: 1.5rem; }
.mx-5 { margin-left: 3rem; margin-right: 3rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.my-0 { margin-top: 0; margin-bottom: 0; }
.my-1 { margin-top: 0.25rem; margin-bottom: 0.25rem; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.my-3 { margin-top: 1rem; margin-bottom: 1rem; }
.my-4 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.my-5 { margin-top: 3rem; margin-bottom: 3rem; }
.my-auto { margin-top: auto; margin-bottom: auto; }

/* --- Spacing: Padding --- */
.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 1rem; }
.pt-4 { padding-top: 1.5rem; }
.pt-5 { padding-top: 3rem; }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: 0.25rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 1rem; }
.pb-4 { padding-bottom: 1.5rem; }
.pb-5 { padding-bottom: 3rem; }

.ps-0 { padding-left: 0; }
.ps-1 { padding-left: 0.25rem; }
.ps-2 { padding-left: 0.5rem; }
.ps-3 { padding-left: 1rem; }
.ps-4 { padding-left: 1.5rem; }
.ps-5 { padding-left: 3rem; }

.pe-0 { padding-right: 0; }
.pe-1 { padding-right: 0.25rem; }
.pe-2 { padding-right: 0.5rem; }
.pe-3 { padding-right: 1rem; }
.pe-4 { padding-right: 1.5rem; }
.pe-5 { padding-right: 3rem; }

.px-0 { padding-left: 0; padding-right: 0; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 1rem; padding-right: 1rem; }
.px-4 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-5 { padding-left: 3rem; padding-right: 3rem; }

.py-0 { padding-top: 0; padding-bottom: 0; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

/* --- Display --- */
.d-none { display: none; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.d-grid { display: grid; }

/* --- Flexbox --- */
.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.justify-content-start { justify-content: flex-start; }
.justify-content-end { justify-content: flex-end; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-around { justify-content: space-around; }
.align-items-start { align-items: flex-start; }
.align-items-end { align-items: flex-end; }
.align-items-center { align-items: center; }
.align-items-stretch { align-items: stretch; }
.align-self-start { align-self: flex-start; }
.align-self-end { align-self: flex-end; }
.align-self-center { align-self: center; }
.flex-fill { flex: 1 1 auto; }
.flex-grow-0 { flex-grow: 0; }
.flex-grow-1 { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-shrink-1 { flex-shrink: 1; }
.gap-0 { gap: 0; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }
.gap-5 { gap: 3rem; }

/* --- Typography --- */
.fw-light { font-weight: 300; }
.fw-lighter { font-weight: 300; }
.fw-normal { font-weight: 400; }
.fw-medium { font-weight: 500; }
.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }
.fw-bolder { font-weight: 700; }
.fst-italic { font-style: italic; }
.fst-normal { font-style: normal; }
.text-start { text-align: left; }
.text-end { text-align: right; }
.text-center { text-align: center; }
.text-lowercase { text-transform: lowercase; }
.text-uppercase { text-transform: uppercase; }
.text-capitalize { text-transform: capitalize; }
.text-decoration-none { text-decoration: none; }
.text-wrap { white-space: normal; }
.text-nowrap { white-space: nowrap; }
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-primary { color: var(--solara-primary); }
.text-secondary { color: var(--solara-secondary); }
.text-muted { color: var(--solara-text-muted); }
.text-body { color: var(--solara-text-secondary); }
.text-white { color: #ffffff; }
.fs-1 { font-size: 2.5rem; }
.fs-2 { font-size: 2rem; }
.fs-3 { font-size: 1.75rem; }
.fs-4 { font-size: 1.5rem; }
.fs-5 { font-size: 1.25rem; }
.fs-6 { font-size: 1rem; }
.small { font-size: 0.875rem; }
.lh-1 { line-height: 1; }
.lh-sm { line-height: 1.25; }
.lh-base { line-height: 1.5; }
.lh-lg { line-height: 2; }

/* --- Background --- */
.bg-transparent { background-color: transparent; }
.bg-dark { background: var(--solara-bg-dark); }
.bg-white { background: var(--solara-panel); }
.bg-light { background: var(--solara-panel-light); }

/* --- Border --- */
.border { border: var(--panel-border); }
.border-0 { border: 0; }
.border-top { border-top: var(--panel-border); }
.border-bottom { border-bottom: var(--panel-border); }
.rounded { border-radius: 0; }
.rounded-0 { border-radius: 0; }
.rounded-1 { border-radius: 0; }
.rounded-2 { border-radius: 0; }
.rounded-3 { border-radius: 0; }
.rounded-circle { border-radius: 50%; }
.rounded-pill { border-radius: 0; }

/* --- Sizing --- */
.w-25 { width: 25%; }
.w-50 { width: 50%; }
.w-75 { width: 75%; }
.w-100 { width: 100%; }
.w-auto { width: auto; }
.h-25 { height: 25%; }
.h-50 { height: 50%; }
.h-75 { height: 75%; }
.h-100 { height: 100%; }
.h-auto { height: auto; }
.mw-100 { max-width: 100%; }
.mh-100 { max-height: 100%; }
.vh-100 { height: 100vh; }
.vw-100 { width: 100vw; }

/* --- Position --- */
.position-static { position: static; }
.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }
.position-sticky { position: sticky; }
.top-0 { top: 0; }
.top-50 { top: 50%; }
.top-100 { top: 100%; }
.bottom-0 { bottom: 0; }
.start-0 { left: 0; }
.end-0 { right: 0; }

/* --- Shadow --- */
.shadow-none { box-shadow: none; }
.shadow-sm { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }
.shadow { box-shadow: var(--panel-shadow); }

/* --- Visibility --- */
.visible { visibility: visible; }
.invisible { visibility: hidden; }
.overflow-auto { overflow: auto; }
.overflow-hidden { overflow: hidden; }

/* --- Responsive: Small (576px+) --- */
@media (min-width: 576px) {
    .d-sm-none { display: none; }
    .d-sm-inline { display: inline; }
    .d-sm-inline-block { display: inline-block; }
    .d-sm-block { display: block; }
    .d-sm-flex { display: flex; }
    .col-sm { flex: 1 0 0%; }
    .col-sm-auto { flex: 0 0 auto; width: auto; }
    .col-sm-6 { flex: 0 0 auto; width: 50%; }
    .col-sm-12 { flex: 0 0 auto; width: 100%; }
    .p-sm-0 { padding: 0; }
    .p-sm-1 { padding: 0.25rem; }
    .p-sm-2 { padding: 0.5rem; }
    .p-sm-3 { padding: 1rem; }
    .p-sm-4 { padding: 1.5rem; }
    .p-sm-5 { padding: 3rem; }
}

/* --- Responsive: Medium (768px+) --- */
@media (min-width: 768px) {
    .d-md-none { display: none; }
    .d-md-inline { display: inline; }
    .d-md-inline-block { display: inline-block; }
    .d-md-block { display: block; }
    .d-md-flex { display: flex; }
    .col-md { flex: 1 0 0%; }
    .col-md-auto { flex: 0 0 auto; width: auto; }
    .col-md-4 { flex: 0 0 auto; width: 33.333333%; }
    .col-md-6 { flex: 0 0 auto; width: 50%; }
    .col-md-8 { flex: 0 0 auto; width: 66.666667%; }
    .col-md-12 { flex: 0 0 auto; width: 100%; }
    .p-md-0 { padding: 0; }
    .p-md-1 { padding: 0.25rem; }
    .p-md-2 { padding: 0.5rem; }
    .p-md-3 { padding: 1rem; }
    .p-md-4 { padding: 1.5rem; }
    .p-md-5 { padding: 3rem; }
}

/* --- Responsive: Large (992px+) --- */
@media (min-width: 992px) {
    .d-lg-none { display: none; }
    .d-lg-inline { display: inline; }
    .d-lg-inline-block { display: inline-block; }
    .d-lg-block { display: block; }
    .d-lg-flex { display: flex; }
    .col-lg { flex: 1 0 0%; }
    .col-lg-auto { flex: 0 0 auto; width: auto; }
    .col-lg-3 { flex: 0 0 auto; width: 25%; }
    .col-lg-4 { flex: 0 0 auto; width: 33.333333%; }
    .col-lg-6 { flex: 0 0 auto; width: 50%; }
    .col-lg-8 { flex: 0 0 auto; width: 66.666667%; }
    .col-lg-9 { flex: 0 0 auto; width: 75%; }
    .col-lg-12 { flex: 0 0 auto; width: 100%; }
    .p-lg-0 { padding: 0; }
    .p-lg-1 { padding: 0.25rem; }
    .p-lg-2 { padding: 0.5rem; }
    .p-lg-3 { padding: 1rem; }
    .p-lg-4 { padding: 1.5rem; }
    .p-lg-5 { padding: 3rem; }
}

/* --- Responsive: XL (1200px+) --- */
@media (min-width: 1200px) {
    .d-xl-none { display: none; }
    .d-xl-inline { display: inline; }
    .d-xl-inline-block { display: inline-block; }
    .d-xl-block { display: block; }
    .d-xl-flex { display: flex; }
    .col-xl { flex: 1 0 0%; }
    .col-xl-auto { flex: 0 0 auto; width: auto; }
    .col-xl-6 { flex: 0 0 auto; width: 50%; }
    .col-xl-12 { flex: 0 0 auto; width: 100%; }
    .p-xl-0 { padding: 0; }
    .p-xl-1 { padding: 0.25rem; }
    .p-xl-2 { padding: 0.5rem; }
    .p-xl-3 { padding: 1rem; }
    .p-xl-4 { padding: 1.5rem; }
    .p-xl-5 { padding: 3rem; }
}

/* --- Responsive: XXL (1400px+) --- */
@media (min-width: 1400px) {
    .d-xxl-none { display: none; }
    .d-xxl-inline { display: inline; }
    .d-xxl-inline-block { display: inline-block; }
    .d-xxl-block { display: block; }
    .d-xxl-flex { display: flex; }
    .col-xxl { flex: 1 0 0%; }
    .col-xxl-auto { flex: 0 0 auto; width: auto; }
    .col-xxl-6 { flex: 0 0 auto; width: 50%; }
    .col-xxl-12 { flex: 0 0 auto; width: 100%; }
    .p-xxl-0 { padding: 0; }
    .p-xxl-1 { padding: 0.25rem; }
    .p-xxl-2 { padding: 0.5rem; }
    .p-xxl-3 { padding: 1rem; }
    .p-xxl-4 { padding: 1.5rem; }
    .p-xxl-5 { padding: 3rem; }
}

/* --- Cards --- */
.card {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    background: var(--solara-panel);
    border: var(--panel-border);
    border-radius: 0;
    box-shadow: var(--panel-shadow);
    color: var(--solara-text-secondary);
}

.card-body { flex: 1 1 auto; padding: 1.5rem; }
.card-header { padding: 1rem 1.5rem; background: var(--solara-panel-dark); border-bottom: var(--panel-border); }
.card-footer { padding: 1rem 1.5rem; background: var(--solara-panel-dark); border-top: var(--panel-border); }
.card-title { margin-bottom: 0.75rem; font-family: var(--font-heading); font-style: italic; color: var(--solara-text-primary); }

/* --- Nav Tabs (Bootstrap tabs in forms) --- */
.nav,
.nav-tabs,
ul.nav,
ul.nav-tabs,
.card .nav,
.card .nav-tabs,
.card-body .nav,
.card-body .nav-tabs {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
    list-style-type: none;
}

.nav-tabs {
    border-bottom: 1px solid rgba(100, 180, 220, 0.15);
    gap: 5px;
}

.nav li,
.nav-tabs li,
.nav .nav-item,
.nav-tabs .nav-item,
.card .nav-tabs .nav-item {
    display: block;
    list-style: none;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.nav-tabs .nav-link {
    display: block;
    padding: 10px 20px;
    font-family: var(--font-nav);
    font-style: italic;
    font-size: 14px;
    color: var(--solara-text-muted);
    text-decoration: none;
    background: transparent;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 0;
    transition: all var(--transition-normal);
}

.nav-tabs .nav-link:hover {
    color: var(--solara-text-secondary);
    background: rgba(6, 19, 56, 0.3);
    border-color: rgba(100, 180, 220, 0.1);
}

.nav-tabs .nav-link.active {
    color: var(--solara-primary);
    background: rgba(6, 19, 56, 0.5);
    border-color: rgba(100, 180, 220, 0.15);
}

/* --- Tab Content (Bootstrap tab functionality) --- */
.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane.show {
    display: block;
}

.tab-pane.fade {
    opacity: 0;
    transition: opacity 0.15s linear;
}

.tab-pane.fade.show {
    opacity: 1;
}

/* --- Alerts --- */
.alert {
    position: relative;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 0;
    background: var(--solara-panel);
    border: var(--panel-border);
    color: var(--solara-text-secondary);
}

.alert-heading { font-family: var(--font-heading); font-style: italic; font-weight: 400; color: var(--solara-primary); }
.alert-warning { border-left: 3px solid rgba(248, 210, 160, 0.5); }
.alert-danger { border-left: 3px solid rgba(240, 100, 100, 0.5); }
.alert-success { border-left: 3px solid rgba(74, 200, 140, 0.5); }
.alert-info { border-left: 3px solid rgba(77, 181, 248, 0.5); }

/* --- Horizontal Rule (Divider) --- */
hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg,
        rgba(80, 160, 190, 0.4) 0%,
        rgba(80, 160, 190, 0.25) 40%,
        rgba(80, 160, 190, 0.1) 70%,
        transparent 100%
    );
    margin: 1.5rem 0;
}

/* --- Error Messages (red_alert) --- */
.red_alert,
.error_message,
div[class*="error"]:not(select):not(input),
.card.border-danger {
    background: linear-gradient(90deg, rgb(12, 18, 45) 0%, rgb(4, 9, 35) 100%);
    border: 1px solid rgba(240, 100, 100, 0.3);
    border-left: 3px solid rgba(240, 100, 100, 0.6);
    border-radius: 0;
    padding: 25px 30px;
    color: var(--solara-text-secondary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
}

.red_alert li,
.error_message li {
    font-size: 16px;
    color: var(--solara-text-secondary);
    margin: 10px 0;
}

.red_alert p,
.error_message p {
    font-family: var(--font-nav);
    font-style: italic;
    font-size: 15px;
    color: var(--solara-text-muted);
    margin-bottom: 15px;
}

/* Error/Alert HR divider - muted cyan fading both sides, centered */
.red_alert hr,
.error_message hr,
div[class*="error"] hr,
.alert hr,
.alert-danger hr,
.alert-warning hr,
hr.alert-divider {
    display: block;
    width: 100%;
    height: 1px;
    margin: 20px auto;
    border: none;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(80, 160, 190, 0.15) 15%,
        rgba(80, 160, 190, 0.4) 50%,
        rgba(80, 160, 190, 0.15) 85%,
        transparent 100%
    );
}

/* Alert title styling */
.alert-title,
.alert h6,
.alert-danger h6,
.alert-warning h6 {
    font-family: var(--font-nav);
    font-style: italic;
    font-weight: 400;
    font-size: 16px;
    color: var(--solara-text-secondary);
    text-align: center;
    margin: 0;
}

/* Alert list styling */
.alert-list,
.alert ul,
.alert-danger ul {
    margin: 0;
    padding: 0;
    list-style-position: inside;
    text-align: center;
}

.alert-list li,
.alert ul li,
.alert-danger ul li {
    font-size: 15px;
    line-height: 1.7;
    color: var(--solara-text-secondary);
    margin: 8px 0;
}

/* --- Base Select Element Styling (prevent white flash) --- */
select {
    appearance: none;
    padding: 8px 32px 8px 12px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--solara-text-secondary);
    background-color: rgba(6, 19, 56, 0.6);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239aa8c4' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
    border: 1px solid rgba(100, 180, 220, 0.15);
    border-radius: 0;
    cursor: pointer;
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

select:hover {
    border-color: rgba(100, 180, 220, 0.25);
}

select:focus {
    outline: none;
    border-color: rgba(100, 180, 220, 0.4);
    background-color: rgba(6, 19, 56, 0.7);
}

/* Select dropdown options */
select option {
    background: rgb(8, 14, 40);
    color: var(--solara-text-secondary);
    padding: 10px 12px;
}

select option:hover {
    background: rgba(60, 140, 180, 0.25);
    color: var(--solara-text-primary);
}

select option:checked,
select option:focus,
select option[selected] {
    background: rgba(60, 140, 180, 0.3);
    background: linear-gradient(0deg, rgba(60, 140, 180, 0.3) 0%, rgba(60, 140, 180, 0.3) 100%);
    color: var(--solara-text-primary);
}

/* Override browser default blue highlight */
select:focus option:checked {
    background: rgba(60, 140, 180, 0.35) linear-gradient(0deg, rgba(60, 140, 180, 0.35) 0%, rgba(60, 140, 180, 0.35) 100%);
    color: var(--solara-primary);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    text-decoration: none;
    border: var(--panel-border);
    border-radius: 0;
    background: var(--solara-panel);
    color: var(--solara-text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn:hover { background: var(--solara-panel-light); color: var(--solara-primary); }
.btn-primary { background: var(--solara-accent); border-color: var(--solara-accent); color: var(--solara-text-primary); }
.btn-primary:hover { background: rgba(49, 40, 119, 0.8); }
.btn-sm { padding: 0.25rem 0.5rem; font-size: 0.75rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }

/* --- Forms --- */
.form-control,
.form-select {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--solara-text-secondary);
    background: var(--solara-panel-dark);
    border: var(--panel-border);
    border-radius: 0;
    transition: border-color var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: rgba(100, 180, 220, 0.4);
    box-shadow: 0 0 0 2px rgba(77, 181, 248, 0.1);
}

.form-label { display: block; margin-bottom: 0.5rem; font-size: 0.875rem; color: var(--solara-text-secondary); }
.form-check { display: flex; align-items: center; gap: 0.5rem; }
.form-check-input { width: 1rem; height: 1rem; background: var(--solara-panel-dark); border: var(--panel-border); border-radius: 0; }

/* --- Accessibility --- */
.visually-hidden,
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =================================================================
   2. GLOBAL STYLES & BASE
   ================================================================= */
/* --- HTML Root --- */
html {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    overflow-y: scroll;
    box-sizing: border-box;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--solara-scrollbar-thumb) var(--solara-scrollbar-track);
    background-color: var(--solara-bg-base);
}

/* --- Font Loading (FOUT Prevention) --- */
html.fonts-loading #container {
    opacity: 0;
}

html.fonts-loaded #container {
    opacity: 1;
    transition: opacity var(--transition-normal);
}

/* --- Body Base --- */
body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: unset;
    box-sizing: border-box;
    position: relative;
    font-family: var(--font-body);
    font-style: normal;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--solara-text-primary);
    background-color: var(--solara-bg-base);
    cursor: url(../../../images/solara-cursor.png) 24 24, auto;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(https://solara-rpg.com/images/solara-banner.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -3;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(6, 19, 56, 0.2) 0%,
        rgba(10, 22, 55, 0.3) 30%,
        rgba(15, 25, 55, 0.4) 60%,
        rgba(18, 28, 58, 0.5) 100%
    );
    z-index: -2;
    pointer-events: none;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* --- Custom Cursors --- */
a, button, input, textarea, select, 
label[for], [role="button"], [onclick], .clickable,
.sticky-navbar, .nav-item, .nav-left a, .nav-right a,
.dropdown-toggle, .site-logo-link, .nav-welcome a, 
.scroll-to-top-icon, .dropdown-menu a, .forum-title-link,
.subforum a, .username-link, .post_controls a, .postbit_buttons a,
.pagination a, .pagination_current, .breadcrumb a,
.btn, .button, .solara-btn, .login-button, .solara-tab-btn,
.subject a, .thread-title a, td[class*="subject"] a, .logo-link,
input[type="submit"], input[type="reset"], input[type="button"],
input[type="checkbox"], input[type="radio"],
input[type="text"], input[type="password"], input[type="email"],
.expcolimage, img[src*="collapse"], img[src*="expand"],
input[name*="inlinemod"], .sceditor-container, 
.sceditor-toolbar a, .sceditor-button,
.modal-content, .modal-header .close, .modal-footer button,
.navigation a, .smalltext a, .largetext a, .tfoot a, .tcat a,
#footer a, .usercpmenu a, .usercpnav a, .pm_alert a, .pm_list a,
.calendar_event a, .calendar a, .memberlist a, .reputation a,
.rep_controlls a, .thread_rating a, .rating_table a,
.attachment a, .attachments a, .codeblock a, .phpblock a,
.buddy_list a, .ignore_list a, .whosonline a, 
.latestthreads a, .portal a {
    cursor: crosshair !important;
}

a:hover, a:focus, a:active,
button:hover, button:focus,
input:hover, input:focus,
textarea:hover, textarea:focus,
select:hover, select:focus {
    cursor: crosshair !important;
}

/* Non-interactive elements use default cursor */
body::before, .ooc-forum-box-wrapper::before, .ooc-forum-box-wrapper::after,
.ic-forum-box::after, .forum-title::after, .logo {
    pointer-events: none;
    cursor: url(../../../images/solara-cursor.png) 24 24, auto;
}

/* Scrollbar cursors */
::-webkit-scrollbar,
::-webkit-scrollbar-track,
::-webkit-scrollbar-corner {
    cursor: url(../../../images/solara-cursor.png) 24 24, auto;
}

::-webkit-scrollbar-thumb {
    cursor: crosshair !important;
}

/* Disabled state */
[disabled], .disabled, :disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* --- Selection --- */
::selection {
    background: rgba(192, 218, 255, 0.3);
}

/* --- Typography Base --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: normal;
    text-transform: lowercase;
    color: var(--solara-text-secondary);
}

/* --- Links --- */
a {
    color: var(--solara-text-link);
    text-decoration: none;
    text-shadow: 0 0 8px rgba(224, 248, 255, 0);
    transition: all var(--transition-slow);
}

a:hover, a:focus, a:active {
    color: var(--solara-primary);
    text-decoration: none;
}

/* --- Focus Reset --- */
:focus, *:focus {
    outline: none;
    box-shadow: none;
}

/* --- Base Component Styles --- */
.card {
}

.btn {
    font-style: italic;
    text-shadow: 0 0 8px rgba(224, 248, 255, 0);
    transition: all var(--transition-slow);
}

.btn:hover {
    text-shadow: 0 0 5px var(--solara-glow), 0 0 10px var(--solara-glow-strong);
}

/* =================================================================
   3. LAYOUT & STRUCTURAL ELEMENTS
   ================================================================= */

/* --- Main Content Wrappers --- */
.main-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.wrapper {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    background: rgb(12, 18, 42);
    border: 1px solid rgba(100, 180, 220, 0.1);
    border-radius: 0;
}

#content {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    padding: 30px;
    box-sizing: border-box;
    background: rgb(12, 18, 42);
    border: 1px solid rgba(100, 180, 220, 0.1);
    border-radius: 0;
}

.forum-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1330px;
    width: 100%;
    margin: 60px auto 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.forum-wrapper .tborder {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
}

/* --- Welcome Quote Section --- */
.welcome-quote {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 30px 20px;
    box-sizing: border-box;
    text-align: center;
    position: relative;
    z-index: var(--z-content);
    background: transparent;
    border: none;
    border-radius: 0;
}

.quote-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 800px;
    margin: 0 auto;
}

.quote-text {
    font-family: var(--font-logo);
    font-size: 26px;
    color: rgba(77, 181, 248, 0.7);
    text-shadow: 0 0 12px rgba(77, 181, 248, 0.25);
    letter-spacing: 2px;
    line-height: 1.2;
}

.quote-section-bottom {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 30px 20px;
    box-sizing: border-box;
    text-align: center;
    position: relative;
    z-index: var(--z-content);
    background: transparent;
    border: none;
}



/* --- OOC Dashboard Container --- */
.ooc-dashboard {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0 25px 25px 25px;
    box-sizing: border-box;
    background: transparent;
    border: none;
    border-radius: 0;
}


.ooc-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    width: 100%;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    float: none;
    clear: both;
}

/* --- Dashboard Card Base --- */
.ooc-dashboard-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: auto;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    text-align: left;
    color: var(--solara-secondary);
    font-family: var(--font-nav);
    font-style: normal;
    text-transform: none;
    background: linear-gradient(90deg, rgb(12, 18, 45) 0%, rgb(4, 9, 35) 100%);
    border: 1px solid rgba(100, 180, 220, 0.08);
    border-radius: 0;
}

.ooc-dashboard-card .icon-pin {
    color: var(--solara-secondary);
    margin-bottom: 8px;
}

.dashboard-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 15px 15px 10px 15px;
    box-sizing: border-box;
    font-family: var(--font-heading);
    font-size: 16px;
    font-style: italic;
    font-weight: 400;
    color: var(--solara-text-secondary);
    text-transform: lowercase;
    background: rgb(4, 9, 35);
    border-bottom: 1px solid rgba(100, 180, 220, 0.08);
}

.dashboard-card-content {
    flex-grow: 1;
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--solara-text-secondary);
    line-height: 1.6;
}

/* --- Large Dashboard Cards (1-4) --- */
.ooc-dashboard-grid > .ooc-dashboard-card:nth-child(1),
.ooc-dashboard-grid > .ooc-dashboard-card:nth-child(2),
.ooc-dashboard-grid > .ooc-dashboard-card:nth-child(3),
.ooc-dashboard-grid > .ooc-dashboard-card:nth-child(4) {
    grid-column: span 3;
    height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--solara-scrollbar-thumb) var(--solara-scrollbar-track);
}

/* Large cards scrollbar */
.ooc-dashboard-grid > .ooc-dashboard-card:is(:nth-child(1), :nth-child(2), :nth-child(3), :nth-child(4))::-webkit-scrollbar {
    width: 8px;
}

.ooc-dashboard-grid > .ooc-dashboard-card:is(:nth-child(1), :nth-child(2), :nth-child(3), :nth-child(4))::-webkit-scrollbar-track {
    background: var(--solara-scrollbar-track);
}

.ooc-dashboard-grid > .ooc-dashboard-card:is(:nth-child(1), :nth-child(2), :nth-child(3), :nth-child(4))::-webkit-scrollbar-thumb {
    background: var(--solara-scrollbar-thumb);
    border-radius: 0;
}

.ooc-dashboard-grid > .ooc-dashboard-card:is(:nth-child(1), :nth-child(2), :nth-child(3), :nth-child(4))::-webkit-scrollbar-thumb:hover {
    background: var(--solara-scrollbar-thumb-hover);
}

/* Large cards sticky header */
.ooc-dashboard-grid > .ooc-dashboard-card:is(:nth-child(1), :nth-child(2), :nth-child(3), :nth-child(4)) .dashboard-card-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--solara-bg-dark);
}

/* Large cards content */
.ooc-dashboard-grid > .ooc-dashboard-card:is(:nth-child(1), :nth-child(2), :nth-child(3), :nth-child(4)) .dashboard-card-content {
    padding: 15px 15px 15px 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Large cards text alignment */
.ooc-dashboard-grid > .ooc-dashboard-card:nth-child(1) .dashboard-card-content,
.ooc-dashboard-grid > .ooc-dashboard-card:nth-child(2) .dashboard-card-content,
.ooc-dashboard-grid > .ooc-dashboard-card:nth-child(3) .dashboard-card-content {
    text-align: justify;
}

.ooc-dashboard-grid > .ooc-dashboard-card:nth-child(2) .dashboard-card-content ul {
    text-align: left;
}

/* Large cards bold text */
.ooc-dashboard-grid > .ooc-dashboard-card:nth-child(1) b,
.ooc-dashboard-grid > .ooc-dashboard-card:nth-child(2) b {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 500;
    color: var(--solara-tertiary);
}

/* --- Middle Row Small Cards (5-7) --- */
.ooc-dashboard-grid > .ooc-dashboard-card:is(:nth-child(5), :nth-child(6), :nth-child(7)) {
    grid-column: span 2;
    height: 180px;
}

.ooc-dashboard-grid > .ooc-dashboard-card:is(:nth-child(5), :nth-child(6)) .dashboard-card-content {
    padding: 0;
}

/* Card 7 - Time & Events */
.ooc-dashboard-grid > .ooc-dashboard-card:nth-child(7) {
    align-items: stretch;
}

.time-and-events-content {
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.time-section {
    color: var(--solara-text-secondary);
}

#live-time {
    font-family: var(--font-heading);
    font-size: 28px;
    font-style: italic;
    line-height: 1.1;
}

#live-date {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

.time-and-events-content .event-divider {
    display: block;
    width: 80%;
    height: 1px;
    margin: 12px auto;
    border: none;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(80, 160, 190, 0.15) 15%,
        rgba(80, 160, 190, 0.4) 50%,
        rgba(80, 160, 190, 0.15) 85%,
        transparent 100%
    );
}

.event-section {
    font-family: var(--font-body);
    font-size: 12px;
    font-style: italic;
    color: var(--solara-text-secondary);
    line-height: 1.4;
}

.event-section strong {
    color: var(--solara-text-secondary);
    font-weight: 700;
}

/* --- Card 6 - Census --- */
.ooc-dashboard-census {
    display: flex;
    flex-direction: column;
    align-items: stretch !important;
}

.ooc-dashboard-census .census-list-solara {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    flex-grow: 1;
    width: auto;
    margin: 0;
    padding: 0;
    list-style: none;
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
    overflow: hidden;
}

.ooc-dashboard-census .census-list-solara li {
    display: flex;
    position: relative;
    overflow: hidden;
    background-color: rgb(15, 22, 50);
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
    z-index: 5;
}

.ooc-dashboard-census .census-list-solara li:hover {
    z-index: 10;
}

.ooc-dashboard-census .census-list-solara li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
    z-index: 1;
}

.ooc-dashboard-census .census-list-solara li::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 19, 56, 0.75);
    z-index: 2;
}

.ooc-dashboard-census .census-list-solara li:hover::after {
    background-color: rgba(6, 19, 56, 0.5);
    transition: background-color 0.3s ease;
}

.ooc-dashboard-census .census-list-solara a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 5px;
    position: relative;
    z-index: 3;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    font-family: var(--font-body);
    font-style: normal;
    font-size: 13px;
    color: var(--solara-secondary);
    transition: color 0.2s ease;
}

.ooc-dashboard-census .census-list-solara a:hover {
    color: var(--solara-primary);
}

/* Census background images */
.ooc-dashboard-census .census-list-solara li:nth-child(1)::before {
    background-image: url(https://i.ibb.co/Y48wZr3B/dreamstime-l-138075534.jpg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1);
}

.ooc-dashboard-census .census-list-solara li:nth-child(2)::before {
    background-image: url(https://i.ibb.co/Q3LxrrJF/nenad-kaevik-y-J1-EUSifz-w-unsplash.jpg);
}

.ooc-dashboard-census .census-list-solara li:nth-child(3)::before {
    background-image: url(https://i.ibb.co/9mP3WmZr/alexey-demidov-CWkx-TVil-SAA-unsplash.jpg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1);
}

.ooc-dashboard-census .census-list-solara li:nth-child(4)::before {
    background-image: url(https://i.ibb.co/dwFz1y3H/erik-mclean-Si-IUlm-Vjv-Wg-unsplash.jpg);
}

.ooc-dashboard-census .census-list-solara li:nth-child(5)::before {
    background-image: url(https://i.ibb.co/bMk43y9X/victoria-roberts-wo-BJc-Mb-Iryw-unsplash.jpg);
}

.ooc-dashboard-census .census-list-solara li:nth-child(6)::before {
    background-image: url(https://i.ibb.co/L5kWMG3/johannes-plenio-Rw-HVp-4-Lw-Po-unsplash.jpg);
}

/* --- Bottom Row Small Cards (8-10) --- */
.ooc-dashboard-grid > .ooc-dashboard-card:is(:nth-child(8), :nth-child(9), :nth-child(10)) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    grid-column: span 2;
    height: 120px;
}

.ooc-dashboard-grid > .ooc-dashboard-card:is(:nth-child(8), :nth-child(9), :nth-child(10)) .dashboard-card-content {
    display: flex;
    flex-grow: 1;
    padding: 0;
}

.ooc-dashboard-grid > .ooc-dashboard-card:is(:nth-child(8), :nth-child(9), :nth-child(10)) .month-box-link {
    display: flex;
    flex-grow: 1;
    align-items: flex-end;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 12px;
    text-decoration: none;
    background-color: rgb(15, 22, 50);
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
}

.ooc-dashboard-grid > .ooc-dashboard-card:is(:nth-child(8), :nth-child(9), :nth-child(10)) .month-box-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Month box background images */
.ooc-dashboard-grid > .ooc-dashboard-card:nth-child(8) .month-box-image,
.ooc-dashboard-grid > .ooc-dashboard-card:nth-child(9) .month-box-image,
.ooc-dashboard-grid > .ooc-dashboard-card:nth-child(10) .month-box-image {
    background-image: url(https://i.ibb.co/nNMfymwV/IMG-2521.jpg);
}

.ooc-dashboard-grid > .ooc-dashboard-card:is(:nth-child(8), :nth-child(9), :nth-child(10)) .month-box-link span {
    position: relative;
    z-index: 3;
    font-family: var(--font-body);
    font-style: italic;
    font-size: 15px;
    color: var(--solara-text-secondary);
    transition: color 0.4s ease-out;
}

.ooc-dashboard-grid > .ooc-dashboard-card:is(:nth-child(8), :nth-child(9), :nth-child(10)) .month-box-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 19, 56, 0.75);
    z-index: 2;
    transition: background-color 0.3s ease;
}

.ooc-dashboard-grid > .ooc-dashboard-card:is(:nth-child(8), :nth-child(9), :nth-child(10)):hover .month-box-link::after {
    background-color: rgba(6, 19, 56, 0.5);
}

.ooc-dashboard-grid > .ooc-dashboard-card:is(:nth-child(8), :nth-child(9), :nth-child(10)):hover .month-box-link span {
    color: var(--solara-primary);
}


/* =================================================================
   4. NAVIGATION & DROPDOWNS
   ================================================================= */

.sticky-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    z-index: var(--z-navbar);
    background: var(--solara-bg-dark);
    border-bottom: 1px solid rgba(100, 180, 220, 0.08);
    border-radius: 0;
    box-shadow: var(--panel-shadow);
}



.sticky-navbar .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 100%;
    height: 100%;
}

/* --- Nav Sections --- */
.sticky-navbar .nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
    padding-left: 10px;
    order: 1;
}

.sticky-navbar .nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    order: 2;
}

.sticky-navbar .nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
    padding-right: 20px;
    order: 3;
}

.sticky-navbar .nav-right > * {
    margin: 0 !important;
    padding: 0 !important;
}

/* --- Nav Links Base Styles --- */
.sticky-navbar .nav-item,
.sticky-navbar .nav-left a,
.sticky-navbar .nav-right a,
.sticky-navbar .dropdown-toggle,
.sticky-navbar .site-logo-link,
.sticky-navbar .nav-welcome a {
    display: flex;
    align-items: center;
    height: 100%;
    font-family: var(--font-nav);
    font-style: italic;
    font-size: 14px;
    font-weight: 400;
    text-transform: lowercase;
    text-decoration: none;
    color: var(--solara-secondary);
    transition: color 0.15s ease, text-shadow 0.15s ease;
}

.sticky-navbar .nav-item:hover,
.sticky-navbar .nav-left a:hover,
.sticky-navbar .nav-right a:hover,
.sticky-navbar .dropdown-toggle:hover,
.sticky-navbar .site-logo-link:hover,
.sticky-navbar .nav-welcome a:hover {
    color: var(--solara-primary);
    text-shadow: 0 0 10px var(--solara-glow), 0 0 20px var(--solara-glow-strong);
}

/* --- Scroll to Top Icon --- */
.sticky-navbar .scroll-to-top-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-decoration: none;
}

.sticky-navbar .scroll-to-top-icon svg {
    width: 20px;
    height: 20px;
    fill: rgba(60, 150, 200, 0.6);
    filter: none;
    transition: fill 0.15s ease, filter 0.15s ease;
}

.sticky-navbar .scroll-to-top-icon:hover svg {
    fill: rgba(80, 170, 220, 0.8);
    filter: drop-shadow(0 0 8px rgba(60, 150, 200, 0.4));
}

/* --- Navbar Breadcrumb Navigation --- */
.sticky-navbar .nav-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    margin-left: 0;
    padding-left: 12px;
    border-left: 1px solid rgba(80, 160, 190, 0.2);
    font-family: var(--font-nav);
    font-style: italic;
    font-size: 14px;
    text-transform: lowercase;
    color: var(--solara-text-muted);
    height: auto;
    line-height: 1.4;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 50vw;
}

.sticky-navbar .nav-breadcrumb .navigation,
.sticky-navbar .nav-breadcrumb div.navigation,
.sticky-navbar .nav-breadcrumb > div {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    line-height: inherit;
    font-size: inherit;
}

.sticky-navbar .nav-breadcrumb .navigation a,
.sticky-navbar .nav-breadcrumb a {
    color: var(--solara-text-secondary);
    text-decoration: none;
    font-size: inherit;
    display: inline;
    transition: color 0.15s ease;
}

.sticky-navbar .nav-breadcrumb .navigation a:hover,
.sticky-navbar .nav-breadcrumb a:hover {
    color: var(--solara-primary);
}

/* Hide navigation images and strong tags styling */
.sticky-navbar .nav-breadcrumb img {
    display: none;
}

.sticky-navbar .nav-breadcrumb strong {
    font-weight: 400;
    color: var(--solara-text-muted);
}

/* --- Dropdown Container --- */
.sticky-navbar .dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    z-index: var(--z-dropdown);
}

.sticky-navbar .user-dropdown {
    z-index: calc(var(--z-dropdown) + 10);
}

/* --- Dropdown Toggle --- */
.sticky-navbar .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 100%;
    padding: 0 8px;
    font-family: var(--font-nav);
    font-style: italic;
    font-size: 14px;
    font-weight: 400;
    text-transform: lowercase;
    text-decoration: none;
    color: var(--solara-secondary);
    cursor: crosshair;
    user-select: none;
    transition: color 0.15s ease, text-shadow 0.15s ease;
}

.sticky-navbar .dropdown-toggle:hover,
.sticky-navbar .dropdown.open .dropdown-toggle {
    color: var(--solara-primary);
    text-shadow: 0 0 10px var(--solara-glow), 0 0 20px var(--solara-glow-strong);
}

/* --- Dropdown Menu (Hidden by default) --- */
.sticky-navbar .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 140px;
    margin: 0;
    padding: 8px 0;
    z-index: 9999;
    background: var(--solara-panel-dark);
    border: var(--panel-border);
    border-radius: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(100, 150, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: block;
}

.sticky-navbar .dropdown-menu-right {
    left: auto;
    right: 0;
    transform: none;
}

/* Show dropdown when .open class is added */
.sticky-navbar .dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* --- Dropdown Menu Items (STATIC - no sliding) --- */
.sticky-navbar .dropdown-menu a,
.sticky-navbar .dropdown-section a,
.sticky-navbar .dropdown-item {
    display: block;
    height: auto;
    padding: 5px 12px;
    font-family: var(--font-nav);
    font-style: italic;
    font-size: 13px;
    text-transform: lowercase;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.2;
    color: var(--solara-tertiary);
    transition: color 0.15s ease;
}

.sticky-navbar .dropdown-menu a:hover,
.sticky-navbar .dropdown-section a:hover,
.sticky-navbar .dropdown-item:hover {
    color: var(--solara-primary);
    background: rgba(93, 103, 129, 0.15);  /* admiral blue at 15% */
    text-shadow: none;
}

/* --- User Dropdown --- */
.sticky-navbar .user-dropdown .dropdown-toggle,
.sticky-navbar .user-name {
    color: var(--solara-secondary);
    font-weight: 400;
    text-shadow: none;
}

.sticky-navbar .user-dropdown .dropdown-toggle:hover,
.sticky-navbar .user-name:hover {
    color: var(--solara-primary);
    text-shadow: 0 0 10px var(--solara-glow), 0 0 20px var(--solara-glow-strong);
}

/* --- Guest Welcome Block (Nav) --- */
.sticky-navbar .nav-welcome {
    display: flex;
    align-items: center;
    height: 100%;
}

.sticky-navbar .nav-welcome .nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sticky-navbar .nav-welcome .nav-links a {
    font-family: var(--font-nav);
    font-style: italic;
    font-size: 14px;
    text-decoration: none;
    color: var(--solara-secondary);
    transition: color 0.15s ease, text-shadow 0.15s ease;
}

.sticky-navbar .nav-welcome .nav-links a:hover {
    color: var(--solara-primary);
    text-shadow: 0 0 10px var(--solara-glow), 0 0 20px var(--solara-glow-strong);
}

.sticky-navbar .nav-welcome .nav-divider {
    font-family: Arial, sans-serif;
    font-style: normal;
    font-size: 11px;
    color: var(--solara-secondary);
    opacity: 0.3;
}

/* --- Dropdown Indicator Arrow --- */
/* Arrow rotates up smoothly when dropdown is open */
.sticky-navbar .dropdown-toggle::after {
    content: '▾';
    display: inline-block;
    margin-left: 4px;
    font-size: 10px;
    font-style: normal;
    font-family: Arial, sans-serif;
    color: var(--solara-secondary);
    opacity: 0.6;
    transform: rotate(0deg);
    transform-origin: center;
    transition: transform 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.sticky-navbar .dropdown.open .dropdown-toggle::after,
.sticky-navbar .dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
    color: var(--solara-primary);
    opacity: 1;
}

/* --- FORCE Dropdown to Show When Open --- */
.sticky-navbar .dropdown.open > .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    display: block !important;
}

/* =================================================================
   5. HERO BANNER & LOGO
   ================================================================= */

/* --- Hero Overlay --- */
#hero-overlay {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50vh;
    margin-top: 0;
    padding-top: 40px;
    box-sizing: border-box;
    text-align: center;
    z-index: var(--z-content);
    background-color: var(--solara-bg-base);
    background-image: url(https://solara-rpg.com/images/solara-banner.jpg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    opacity: 1;
    visibility: visible;
    cursor: inherit;
}


/* Full height hero on homepage */
body.homepage #hero-overlay {
    height: 100vh;
    padding-top: 60px;
}

/* --- Logo Link --- */
.logo-link {
    position: absolute;
    top: 120px;
    left: 200px;
    display: block;
    z-index: 2;
    text-decoration: none;
    transition: all var(--transition-normal);
}

body:not(.homepage) .logo-link {
    top: 80px;
}

.logo-link .logo {
    margin: 0;
    font-family: var(--font-logo);
    font-size: 80px;
    color: rgba(217, 210, 251, 0.7);
    text-shadow: 0 0 8px rgba(217, 210, 251, 0.6), 0 0 16px rgba(217, 210, 251, 0.4);
    pointer-events: none;
    transition: none;
    animation: softPulse 4s ease-in-out infinite;
    opacity: 0; /* Prevent flash before fonts load */
}

.logo-link:hover .logo {
    color: rgba(217, 210, 251, 0.7);
    text-shadow: 0 0 8px rgba(217, 210, 251, 0.6), 0 0 16px rgba(217, 210, 251, 0.4);
}

html.fonts-loaded .logo-link .logo {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* --- Banner Divider --- */
.banner-divider {
    position: relative;
    width: 100%;
    height: 20px;
    z-index: var(--z-content);
    background: var(--solara-bg-base);
}

/* =================================================================
   6. FORUM DISPLAY & TABLES
   ================================================================= */

/* --- Hide Default Expanders --- */
.expcolimage, .expander {
    display: none;
}

/* --- Table Base --- */
table.tborder {
    position: relative;
    z-index: 2;
    width: 100%;
    border-spacing: 0;
    border-collapse: separate;
    margin-bottom: 20px;
    overflow: hidden;
    background: linear-gradient(90deg, rgb(12, 18, 45) 0%, rgb(4, 9, 35) 100%);
    border: 1px solid rgba(100, 180, 220, 0.08);
    border-radius: 0;
}

.forum-wrapper table.tborder {
    border-radius: 0;
}

/* --- Table Header --- */
.thead {
    background: rgba(6, 19, 56, 0.8);
    border: none;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 18px;
    font-weight: 400;
    text-transform: lowercase;
    color: var(--solara-secondary);
    cursor: default;
}

.thead td {
    position: relative;
    padding: 15px 20px;
    border-bottom: var(--panel-border);
}

.thead strong {
    font-size: 18px;
    font-weight: 400;
}

.thead a {
    display: inline-block;
    font-size: 18px;
    color: var(--solara-secondary);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.thead a:hover {
    color: var(--solara-primary);
    text-shadow: 0 0 15px var(--solara-glow), 0 0 25px var(--solara-glow-strong);
    transform: translateX(4px);
}

.thead .smalltext {
    margin-top: 4px;
    font-family: var(--font-body);
    font-style: italic;
    font-size: 13px;
    text-transform: none;
    color: var(--solara-secondary);
    line-height: 1.4;
    opacity: 0.9;
}

/* --- Table Rows --- */
.trow1, .trow2 {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

table:not(.tborder) .trow1,
table:not(.tborder) .trow2 {
    margin-bottom: 8px;
    padding: 12px;
    background: var(--solara-panel);
    border: var(--panel-border);
    border-radius: 0;
}

/* --- Forum Row Wrapper --- */
.forum-row-wrapper {
    padding: 20px 15px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all var(--transition-normal);
}

.forum-row-wrapper.trow1 {
    background: rgba(6, 19, 56, 0.5);
}

.forum-row-wrapper.trow2 {
    background: rgba(6, 19, 56, 0.45);
}

tr:hover .forum-row-wrapper {
    background: rgba(6, 19, 56, 0.7);
}

tr:last-child .forum-row-wrapper {
    border-bottom: none;
}

.forum-row-wrapper .smalltext {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 13px;
    color: var(--solara-secondary);
    line-height: 1.4;
}

.forum-row-wrapper .smalltext a {
    color: var(--solara-secondary);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.forum-row-wrapper .smalltext a:hover {
    color: var(--solara-primary);
}

/* --- Forum Status Icon --- */
.forum_status {
    display: inline-block;
    width: 32px;
    height: 32px;
    background-size: contain;
    opacity: 0.8;
    filter: drop-shadow(0 0 4px var(--solara-glow));
    transition: all var(--transition-normal);
}

tr:hover .forum_status {
    opacity: 1;
    filter: drop-shadow(0 0 12px var(--solara-glow-strong));
}

/* --- Forum Title & Description --- */
.forum-title-link {
    display: inline-block;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 16px;
    font-weight: 400;
    text-transform: lowercase;
    text-decoration: none;
    color: var(--solara-secondary);
    line-height: 1.3;
    transition: all var(--transition-normal);
}

.forum-title-link:hover {
    color: var(--solara-primary);
}

.forum-description {
    margin-top: 6px;
    font-family: var(--font-body);
    font-style: italic;
    font-size: 13px;
    color: var(--solara-secondary);
    line-height: 1.5;
}

/* --- Stats Display --- */
.stat-number {
    display: block;
    margin-bottom: 4px;
    font-family: var(--font-nav);
    font-style: italic;
    font-size: 24px;
    font-weight: 400;
    color: var(--solara-secondary);
    line-height: 1;
}

.stat-label {
    display: block;
    font-family: var(--font-nav);
    font-style: italic;
    font-size: 12px;
    text-transform: lowercase;
    color: var(--solara-secondary);
    opacity: 0.8;
}

.last-post-info {
    display: none;
}

/* --- Subforums --- */
.subforums {
    margin-top: 10px;
    font-size: 13px;
}

.subforum {
    display: inline-block;
    margin-right: 10px;
}

.subforum-list {
    margin-top: 4px;
    font-family: var(--font-nav);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

.subforum-list a {
    color: var(--solara-text-secondary);
    transition: all var(--transition-normal);
}

.subforum-list a:hover {
    color: var(--solara-primary);
    text-shadow: none;
}

/* --- Forum Display Container --- */
.forumdisplay-container {
    position: relative;
    z-index: 1;
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.forum-navigation {
    margin-bottom: 20px;
}

/* --- Forum Header Section --- */
.forum-header-section {
    position: relative;
    z-index: 2;
    display: block;
    text-align: center;
    margin-bottom: 30px;
    padding: 15px 20px;
    background: rgb(4, 9, 35);
    border: 1px solid rgba(100, 180, 220, 0.08);
    border-radius: 0;
}

.forum-title h1 {
    margin: 0;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 32px;
    font-weight: 400;
    color: var(--solara-secondary);
    text-transform: lowercase;
}

/* Hide post thread button - parent forum only shows subforums */
.forum-header-section .forum-actions {
    display: none;
}

.forum-title .forum-desc {
    margin-top: 5px;
    font-family: var(--font-body);
    font-style: italic;
    font-size: 13px;
    color: var(--solara-text-secondary);
}

.forum-actions .btn-new {
    display: inline-block;
    padding: 10px 20px;
    font-family: var(--font-nav);
    font-style: italic;
    font-size: 14px;
    text-transform: lowercase;
    background: rgba(6, 19, 56, 0.6);
    border: 1px solid rgba(100, 180, 220, 0.25);
    color: var(--solara-secondary);
    border-radius: 0;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.forum-actions .btn-new:hover {
    background: rgba(6, 19, 56, 0.85);
    color: var(--solara-primary);
    text-shadow: 0 0 8px var(--solara-glow);
    border-color: rgba(100, 180, 220, 0.4);
}

/* --- Thread List Container --- */
.thread-list-container {
    padding: 10px;
    background: var(--solara-panel);
    border: var(--panel-border);
    border-radius: 0;
    box-shadow: var(--panel-shadow);
}

.thread-list-container .row {
    padding: 15px 10px;
    align-items: center;
    border-bottom: 1px solid var(--solara-border-subtle);
    transition: all var(--transition-normal);
}

.thread-list-container .row:last-child {
    border-bottom: none;
}

.thread-list-container .row:hover {
    background: rgba(6, 19, 56, 0.6);
}

/* --- Thread Status Icon --- */
.thread_status {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 5px;
    vertical-align: middle;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.8;
    filter: drop-shadow(0 0 3px var(--solara-glow));
    transition: all var(--transition-normal);
}

.thread-list-container .row:hover .thread_status {
    opacity: 1;
    filter: drop-shadow(0 0 8px var(--solara-glow-strong));
}

/* --- Thread Title Link --- */
.thread-title-link {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 18px;
    text-transform: lowercase;
    text-decoration: none;
    color: var(--solara-text-link);
    line-height: 1.3;
    transition: all var(--transition-normal);
}

.thread-title-link:hover {
    color: var(--solara-primary);
}

.thread-starter {
    margin-top: 3px;
    font-family: var(--font-body);
    font-style: italic;
    font-size: 13px;
    color: var(--solara-text-secondary);
}

/* --- Mobile Thread Display --- */
.thread-title-mobile {
    margin-bottom: 5px;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 18px;
    text-transform: lowercase;
    color: var(--solara-text-link);
}

.thread-title-mobile a {
    color: inherit;
    text-decoration: none;
}

.thread-title-mobile a:hover {
    color: var(--solara-primary);
    text-shadow: 0 0 8px var(--solara-glow);
}

.thread-starter-mobile {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 13px;
    color: var(--solara-text-secondary);
}

.last-post-mobile {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--solara-text-secondary);
    line-height: 1.4;
}

.last-post-mobile .lastpostbit {
    font-style: italic;
}

/* --- Last Post Cell --- */
.lastpost-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
}

.lastpost-avatar {
    flex-shrink: 0;
}

.lastpost-avatar img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: var(--panel-border);
    transition: all var(--transition-normal);
}

.row:hover .lastpost-avatar img,
tr:hover .lastpost-avatar img {
    transform: scale(1.1);
    box-shadow: 0 0 10px var(--solara-glow-strong);
}

.lastpost-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    text-align: left;
    font-family: var(--font-body);
}

.lastpost-thread-link {
    display: inline-block;
    max-width: 100%;
    font-style: italic;
    font-size: 15px;
    color: var(--solara-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lastpost-thread-link:hover {
    color: var(--solara-primary);
}

.lastpost-meta {
    margin-top: 4px;
    font-size: 12px;
    color: var(--solara-secondary);
    line-height: 1.3;
    opacity: 0.8;
}

.lastpost-meta a {
    font-style: normal;
    color: var(--solara-secondary);
    text-transform: none !important;
}

.lastpost-meta a:hover {
    color: var(--solara-primary);
}

.lastpost-never {
    font-style: italic;
    opacity: 0.7;
}

/* --- Small Last Post Links --- */
.lastpost-thread-link-small {
    display: inline-block;
    max-width: 100%;
    font-style: italic;
    font-size: 13px;
    color: var(--solara-text-link);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all var(--transition-normal);
}

.lastpost-thread-link-small:hover {
    color: var(--solara-primary);
}

.lastpost-meta-small {
    font-size: 11px;
    color: var(--solara-text-secondary);
    opacity: 0.8;
}

.lastpost-meta-small a {
    font-style: normal;
    color: var(--solara-text-secondary);
    text-transform: none !important;
    transition: all var(--transition-normal);
}

.lastpost-meta-small a:hover {
    color: var(--solara-primary);
}

.lastpost-meta-small .timeago {
    font-style: italic;
}

/* --- IC Forum Box Overrides --- */
.ic-forum-box .lastpost-never {
    color: var(--solara-text-muted);
    opacity: 1.0;
}

.ic-forum-box .subforum-list {
    margin-bottom: 5px;
}

.ic-forum-box .subforum-list a {
    color: var(--solara-text-secondary);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.ic-forum-box:hover .subforum-list a {
    color: var(--solara-primary);
    text-shadow: 0 0 5px var(--solara-glow);
}

/* --- Forum Footer --- */
.forum-footer {
    display: none;
}

.pagination-container {
    text-align: center;
}

.forum-info-section {
    padding: 15px 20px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--solara-text-secondary);
    line-height: 1.6;
    background: var(--solara-panel-light);
    border: var(--panel-border);
    border-radius: 0;
    box-shadow: var(--panel-shadow);
}

/* --- Multipage Button --- */
.btn-multipage {
    padding: 6px 12px;
    font-family: var(--font-nav);
    font-style: italic;
    font-size: 14px;
    font-weight: normal;
    text-transform: lowercase;
    color: var(--solara-secondary);
    background: var(--solara-panel);
    border: var(--panel-border);
    border-radius: 0;
    transition: all var(--transition-normal);
}

.btn-multipage:hover {
    background: rgba(6, 19, 56, 0.75);
    color: var(--solara-primary);
    text-shadow: 0 0 10px var(--solara-glow), 0 0 20px var(--solara-glow-strong);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* =================================================================
   SUBFORUM LIST STYLES (Clean Div-Based Layout)
   ================================================================= */

/* --- Subforums Section Container --- */
.subforums-section {
    position: relative;
    z-index: 2;
    margin-bottom: 30px;
}

.subforums-header {
    position: relative;
    z-index: 2;
    padding: 15px 20px;
    margin-bottom: 15px;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 18px;
    font-weight: 400;
    color: var(--solara-text-secondary);
    text-transform: lowercase;
    background: rgb(4, 9, 35);
    border: 1px solid rgba(100, 180, 220, 0.08);
    border-radius: 0;
}

.subforums-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* --- Individual Subforum Row --- */
.subforum-row {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(90deg, rgb(12, 18, 45) 0%, rgb(4, 9, 35) 100%);
    border: 1px solid rgba(100, 180, 220, 0.08);
    border-radius: 0;
    transition: all var(--transition-normal);
    width: 100%;
    box-sizing: border-box;
}

/* Hide empty subforum rows */
.subforum-row:empty {
    display: none;
}

.subforum-row:hover {
    background: linear-gradient(90deg, rgba(16, 24, 52, 0.95) 0%, rgba(8, 14, 42, 1) 100%);
    border-color: rgba(100, 180, 220, 0.15);
}

/* Lastpost "Never" styling */
.subforum-lastpost-never,
.lastpost-never {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 13px;
    color: var(--solara-text-muted);
    opacity: 0.7;
}

/* --- Subforum Icon --- */
.subforum-icon {
    flex-shrink: 0;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subforum-icon img {
    width: 28px;
    height: 28px;
    opacity: 0.7;
    filter: drop-shadow(0 0 3px var(--solara-glow));
    transition: all var(--transition-normal);
}

.subforum-row:hover .subforum-icon img {
    opacity: 1;
    filter: drop-shadow(0 0 8px var(--solara-glow-strong));
}

/* --- Subforum Info --- */
.subforum-info {
    flex: 1;
    min-width: 0;
}

.subforum-title {
    display: block;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 20px;
    font-weight: 400;
    color: var(--solara-text-secondary);
    text-decoration: none;
    text-transform: lowercase;
    transition: all var(--transition-normal);
}

.subforum-title:hover {
    color: var(--solara-primary);
    text-shadow: 0 0 10px var(--solara-glow);
}

.subforum-desc {
    margin-top: 5px;
    font-family: var(--font-body);
    font-style: italic;
    font-size: 13px;
    color: var(--solara-text-muted);
    line-height: 1.5;
}

/* Hide empty forum container divs in descriptions */
.subforum-desc .ooc-forums:empty,
.subforum-desc .ic-forums:empty {
    display: none;
}

/* --- Subforum Stats --- */
.subforum-stats {
    display: flex;
    flex-shrink: 0;
    gap: 25px;
}

.subforum-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.subforum-stats .stat-number {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 22px;
    color: var(--solara-text-muted);
}

.subforum-stats .stat-label {
    font-family: var(--font-nav);
    font-size: 11px;
    color: var(--solara-text-muted);
    text-transform: lowercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

/* --- Subforum Last Post --- */
.subforum-lastpost {
    flex-shrink: 0;
    width: 200px;
    max-width: 200px;
    padding-left: 20px;
    border-left: 1px solid rgba(100, 180, 220, 0.1);
    overflow: hidden;
}

.subforum-lastpost .smalltext {
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.2;
    color: var(--solara-text-muted);
}

.subforum-lastpost .smalltext a {
    color: var(--solara-text-secondary);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.subforum-lastpost .smalltext a:hover {
    color: var(--solara-primary);
}

.subforum-lastpost .smalltext strong {
    display: inline-block;
    margin-bottom: 40px;
    font-weight: 400;
    font-style: italic;
    color: var(--solara-text-secondary);
}

/* Hide all lastpost avatars site-wide */
.lastpost-avatar {
    display: none;
}

/* --- Inline Subforums (displayed within parent forum row) --- */
.subforum-inline-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.subforum-inline {
    display: inline-block;
}

.subforum-inline-link {
    display: inline-block;
    padding: 4px 10px;
    font-family: var(--font-body);
    font-style: italic;
    font-size: 12px;
    color: var(--solara-text-secondary);
    text-decoration: none;
    background: rgba(6, 19, 56, 0.5);
    border: 1px solid rgba(100, 180, 220, 0.1);
    border-radius: 0;
    transition: all var(--transition-normal);
}

.subforum-inline-link:hover {
    color: var(--solara-primary);
    background: rgba(12, 24, 56, 0.7);
    border-color: rgba(100, 180, 220, 0.2);
}

/* Comma separator for inline subforums */
.subforum-inline + .subforum-inline::before {
    content: "";
}

/* --- Category Section Styles --- */
.category-section {
    margin-bottom: 40px;
}

.category-header {
    padding: 15px 25px;
    margin-bottom: 15px;
    background: rgb(4, 9, 35);
    border: 1px solid rgba(100, 180, 220, 0.1);
    border-radius: 0;
}

.category-title {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 22px;
    font-weight: 400;
    color: var(--solara-secondary);
    text-transform: lowercase;
}

.category-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Legacy Bootstrap card override for compatibility */
.forumdisplay-container .card.catmod,
.forumdisplay-container .card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.forumdisplay-container .card .card-body {
    padding: 0;
    background: transparent;
}

/* --- Subforum Table --- */
.forumdisplay-container table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

/* --- Forum Row Wrapper --- */
.forum-row-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(90deg, rgb(12, 18, 45) 0%, rgb(4, 9, 35) 100%);
    border: 1px solid rgba(100, 180, 220, 0.08);
    border-radius: 0;
    margin-bottom: 10px;
    transition: all var(--transition-normal);
}

.forum-row-wrapper:hover {
    background: linear-gradient(90deg, rgba(16, 24, 52, 0.95) 0%, rgba(8, 14, 42, 1) 100%);
    border-color: rgba(100, 180, 220, 0.15);
}

/* Hide default table cells */
.forumdisplay-container td.trow1,
.forumdisplay-container td.trow2 {
    background: transparent !important;
    border: none !important;
    padding: 0;
}

/* Hide folder/status icon cell */
.forumdisplay-container td[width="1"] {
    display: none;
}

/* --- Forum Status Icon --- */
.forum_status {
    flex-shrink: 0;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.forum_status img,
.forum_status .statusicon {
    width: 32px;
    height: 32px;
    opacity: 0.7;
    filter: drop-shadow(0 0 3px var(--solara-glow));
    transition: all var(--transition-normal);
}

.forum-row-wrapper:hover .forum_status img,
.forum-row-wrapper:hover .forum_status .statusicon {
    opacity: 1;
    filter: drop-shadow(0 0 8px var(--solara-glow-strong));
}

/* --- Forum Info Section --- */
.forum_info {
    flex: 1;
    min-width: 0;
}

.forum-title-link {
    display: inline-block;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 20px;
    font-weight: 400;
    color: var(--solara-text-primary);
    text-decoration: none;
    text-transform: lowercase;
    transition: all var(--transition-normal);
}

.forum-title-link:hover {
    color: var(--solara-primary);
    text-shadow: 0 0 10px var(--solara-glow);
}

.forum-description {
    margin-top: 5px;
    font-family: var(--font-body);
    font-style: italic;
    font-size: 13px;
    color: var(--solara-text-secondary);
    line-height: 1.5;
}

/* --- Forum Stats --- */
.forum_stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
    padding: 0 15px;
}

.forum_stats .stat-number {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 22px;
    color: var(--solara-text-primary);
}

.forum_stats .stat-label {
    font-family: var(--font-nav);
    font-size: 11px;
    color: var(--solara-text-secondary);
    text-transform: lowercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

/* --- Last Post Cell in Subforums --- */
.forum-row-wrapper .lastpost-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
    padding-left: 15px;
    border-left: 1px solid rgba(100, 180, 220, 0.1);
}

.forum-row-wrapper .lastpost-avatar img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(100, 180, 220, 0.15);
    transition: all var(--transition-normal);
}

.forum-row-wrapper:hover .lastpost-avatar img {
    transform: scale(1.05);
    box-shadow: 0 0 10px var(--solara-glow);
}

.forum-row-wrapper .lastpost-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.forum-row-wrapper .lastpost-thread-link {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 14px;
    color: var(--solara-text-secondary);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all var(--transition-normal);
}

.forum-row-wrapper .lastpost-thread-link:hover {
    color: var(--solara-primary);
}

.forum-row-wrapper .lastpost-meta {
    margin-top: 4px;
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--solara-text-muted);
    line-height: 1.4;
}

.forum-row-wrapper .lastpost-meta a {
    color: var(--solara-text-secondary);
    text-decoration: none;
}

.forum-row-wrapper .lastpost-meta a:hover {
    color: var(--solara-primary);
}

/* =================================================================
   THREAD LIST STYLES (Clean Div-Based Layout)
   ================================================================= */

/* --- Thread List Section --- */
.thread-list-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
}

/* --- Individual Thread Row --- */
.thread-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: linear-gradient(90deg, rgb(12, 18, 45) 0%, rgb(4, 9, 35) 100%);
    border: 1px solid rgba(100, 180, 220, 0.08);
    border-radius: 0;
    transition: all var(--transition-normal);
}

.thread-row:hover {
    background: linear-gradient(90deg, rgba(16, 24, 52, 0.95) 0%, rgba(8, 14, 42, 1) 100%);
    border-color: rgba(100, 180, 220, 0.15);
}

/* --- Thread Status Icon --- */
.thread-status {
    flex-shrink: 0;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thread-status .thread_status {
    display: inline-block;
    width: 20px;
    height: 20px;
    opacity: 0.7;
    transition: all var(--transition-normal);
}

.thread-row:hover .thread_status {
    opacity: 1;
    filter: drop-shadow(0 0 5px var(--solara-glow));
}

/* --- Thread Icon --- */
.thread-icon {
    flex-shrink: 0;
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thread-icon img {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

/* --- Thread Info --- */
.thread-info {
    flex: 1;
    min-width: 0;
}

.thread-subject {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 16px;
    line-height: 1.4;
}

.thread-subject a {
    color: var(--solara-text-primary);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.thread-subject a:hover {
    color: var(--solara-primary);
    text-shadow: 0 0 8px var(--solara-glow);
}

.thread-author {
    margin-top: 4px;
    font-family: var(--font-body);
    font-style: italic;
    font-size: 12px;
    color: var(--solara-text-secondary);
}

.thread-author a {
    color: var(--solara-text-secondary);
    text-decoration: none;
}

.thread-author a:hover {
    color: var(--solara-primary);
}

/* --- Thread Stats (Replies/Views) --- */
.thread-replies,
.thread-views {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    padding: 0 10px;
}

.thread-replies .stat-number,
.thread-views .stat-number {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 18px;
    color: var(--solara-text-primary);
}

.thread-replies .stat-label,
.thread-views .stat-label {
    font-family: var(--font-nav);
    font-size: 10px;
    color: var(--solara-text-secondary);
    text-transform: lowercase;
    opacity: 0.8;
}

/* --- Thread Last Post --- */
.thread-lastpost {
    min-width: 180px;
    padding-left: 15px;
    border-left: 1px solid rgba(100, 180, 220, 0.1);
    text-align: right;
}

.thread-lastpost .lastpost-date {
    display: block;
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--solara-text-secondary);
}

.thread-lastpost .lastpost-by {
    display: block;
    margin-top: 3px;
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--solara-text-muted);
}

.thread-lastpost .lastpost-by a {
    color: var(--solara-text-secondary);
    text-decoration: none;
}

.thread-lastpost .lastpost-by a:hover {
    color: var(--solara-primary);
}

/* --- Legacy inline_row support (for compatibility) --- */
.inline_row td {
    padding: 15px 12px;
    background: linear-gradient(90deg, rgb(12, 18, 45) 0%, rgb(4, 9, 35) 100%) !important;
    border: none !important;
    border-bottom: 1px solid rgba(100, 180, 220, 0.06) !important;
    vertical-align: middle;
}

.inline_row:hover td {
    background: linear-gradient(90deg, rgba(16, 24, 52, 0.95) 0%, rgba(8, 14, 42, 1) 100%) !important;
}

.inline_row .author,
.inline_row .smalltext {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 12px;
    color: var(--solara-text-secondary);
}

.inline_row .lastpost {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--solara-text-secondary);
    line-height: 1.5;
}

.inline_row .lastpost a {
    color: var(--solara-text-secondary);
    text-decoration: none;
}

.inline_row .lastpost a:hover {
    color: var(--solara-primary);
}

/* =================================================================
   POST THREAD BUTTON STYLES
   ================================================================= */

/* --- Post Thread Button --- */
.btn-post-thread {
    display: inline-block;
    padding: 10px 20px;
    font-family: var(--font-nav);
    font-style: italic;
    font-size: 13px;
    font-weight: 400;
    color: var(--solara-text-primary);
    text-decoration: none;
    text-transform: lowercase;
    letter-spacing: 0.5px;
    background: var(--solara-bg-dark);
    border: 1px solid rgba(100, 180, 220, 0.15);
    border-radius: 0;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-post-thread:hover {
    color: var(--solara-primary);
    background: rgba(12, 20, 48, 0.95);
    border-color: rgba(100, 180, 220, 0.25);
    text-shadow: 0 0 8px var(--solara-glow);
}

/* Legacy forum-actions support */
.forum-actions a,
.forum-actions input[type="submit"],
.forum-actions .button,
.forum-actions .btn,
.forum-actions .btn-new {
    display: inline-block;
    padding: 10px 20px;
    font-family: var(--font-nav);
    font-style: italic;
    font-size: 13px;
    font-weight: 400;
    color: var(--solara-text-primary);
    text-decoration: none;
    text-transform: lowercase;
    letter-spacing: 0.5px;
    background: var(--solara-bg-dark);
    border: 1px solid rgba(100, 180, 220, 0.15);
    border-radius: 0;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.forum-actions a:hover,
.forum-actions input[type="submit"]:hover,
.forum-actions .button:hover,
.forum-actions .btn:hover,
.forum-actions .btn-new:hover {
    color: var(--solara-primary);
    background: rgba(12, 20, 48, 0.95);
    border-color: rgba(100, 180, 220, 0.25);
    text-shadow: 0 0 8px var(--solara-glow);
}

/* Hide duplicate post thread buttons if they appear */
.forum-actions a + a,
.forum-actions .button + .button,
.forum-actions input[type="submit"] + input[type="submit"] {
    display: none;
}

/* --- Search & Sort Cards --- */
#search, #sortby, #mod-f {
    transition: height var(--transition-normal) ease-out;
}

#search .card-body,
#sortby .card-body,
#mod-f .card-body {
    padding: 15px;
    background: rgba(6, 19, 56, 0.4);
    border: var(--panel-border);
    border-radius: 0;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.3);
}

#search input[type="text"],
#search select,
#sortby select,
#mod-f select {
    padding: 8px 12px;
    font-size: 14px;
    color: var(--solara-text-primary);
    background: rgba(6, 19, 56, 0.3);
    border: var(--panel-border);
    border-radius: 0;
}

#search input[type="text"]:focus,
#search select:focus,
#sortby select:focus,
#mod-f select:focus {
    border-color: var(--solara-primary);
    box-shadow: 0 0 0 0.25rem rgba(192, 218, 255, 0.25);
}

/* --- Announcements --- */
.announcement {
    margin-bottom: 20px;
    padding: 15px 20px;
    font-family: var(--font-body);
    color: var(--solara-text-secondary);
    line-height: 1.6;
    background: var(--solara-panel-light);
    border: var(--panel-border);
    border-radius: 0;
    box-shadow: var(--panel-shadow);
}

.announcement .smalltext {
    font-size: 13px;
    color: var(--solara-text-muted);
}

.announcement h2,
.announcement h3 {
    margin-bottom: 10px;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 20px;
    color: var(--solara-primary);
}

.announcement a {
    color: var(--solara-text-link);
}

.announcement a:hover {
    color: var(--solara-primary);
    text-shadow: 0 0 5px var(--solara-glow);
}


/* =================================================================
   7. POST & THREAD STYLES
   ================================================================= */

/* --- Showthread Page Container (Bootstrap) --- */
body > .container-md {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    margin: 0 auto;
    padding: 25px;
}

/* --- Override Bootstrap bg-white and bg-light utilities --- */
.bg-white,
.bg-light {
    background: linear-gradient(90deg, rgb(12, 18, 45) 0%, rgb(4, 9, 35) 100%) !important;
}

/* --- Thread Header Card --- */
.card.catmod p {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 400;
    color: var(--solara-text-secondary);
}

.card.catmod .text-muted {
    color: var(--solara-text-muted) !important;
}

.card.catmod .bi-hash {
    color: var(--solara-primary);
}

/* --- Thread Title Styling --- */
.container-md h1,
.container-md > .card p[style*="font-size: 20px"],
.card.catmod p[style*="font-size"] {
    font-family: var(--font-heading) !important;
    font-style: italic;
    color: var(--solara-text-secondary) !important;
}

/* --- Subscribe Link Fix --- */
a[href*="usercp.php?action=addsubscription"],
a[href*="usercp.php?action=removesubscription"] {
    display: inline-block;
    padding: 8px 16px;
    font-family: var(--font-body);
    font-style: italic;
    font-size: 13px;
    text-transform: lowercase;
    color: var(--solara-secondary) !important;
    text-decoration: none;
    background: rgba(6, 19, 56, 0.5) !important;
    border: 1px solid rgba(100, 180, 220, 0.15);
    border-radius: 0;
    transition: all var(--transition-normal);
}

a[href*="usercp.php?action=addsubscription"]:hover,
a[href*="usercp.php?action=removesubscription"]:hover {
    color: var(--solara-primary) !important;
    background: rgba(6, 19, 56, 0.7) !important;
    border-color: rgba(100, 180, 220, 0.3);
}

/* --- Thread Subscribe/Reply Buttons --- */
.card.catmod a,
.card.catmod button {
    font-family: var(--font-body);
    font-style: italic;
    text-transform: lowercase;
    color: var(--solara-secondary);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.card.catmod a:hover,
.card.catmod button:hover {
    color: var(--solara-primary);
}

/* --- New Reply Button --- */
a[href*="newreply.php"],
.new_reply_button a {
    display: inline-block;
    padding: 8px 16px;
    font-family: var(--font-body);
    font-style: italic;
    font-size: 13px;
    color: var(--solara-secondary);
    text-decoration: none;
    background: rgba(6, 19, 56, 0.5);
    border: 1px solid rgba(100, 180, 220, 0.15);
    border-radius: 0;
    transition: all var(--transition-normal);
}

a[href*="newreply.php"]:hover,
.new_reply_button a:hover {
    color: var(--solara-primary);
    background: rgba(6, 19, 56, 0.7);
    border-color: rgba(100, 180, 220, 0.3);
}

/* --- Moderation Options Container --- */
.container-md form[action="moderation.php"] {
    margin: 15px 0;
    padding: 15px;
    background: rgba(6, 19, 56, 0.4);
    border: 1px solid rgba(100, 180, 220, 0.1);
    border-radius: 0;
}

.container-md form[action="moderation.php"] label {
    font-family: var(--font-body);
    font-style: italic;
    color: var(--solara-text-secondary);
}

/* --- Moderation Collapse Panel --- */
#collapse-showmod {
    padding: 15px;
    background: rgba(6, 19, 56, 0.4);
    border: 1px solid rgba(100, 180, 220, 0.1);
    border-radius: 0;
}

#collapse-showmod label {
    font-family: var(--font-body);
    font-style: italic;
    color: var(--solara-text-secondary);
}

#collapse-showmod .form-select {
    background-color: rgba(6, 19, 56, 0.6);
    border-color: rgba(100, 180, 220, 0.15);
    color: var(--solara-text-secondary);
}

/* --- Bootstrap Collapse Animation (prevent white flash) --- */
.collapse,
.collapsing {
    background: transparent;
}

.collapsing {
    overflow: hidden;
    transition: height 0.25s ease;
}

/* Ensure collapsed content has proper background */
.collapse.show,
[id*="collapse"].show,
[id*="collapse"]:not(.collapse) {
    background: rgba(6, 19, 56, 0.4);
}

/* Moderation toggle button */
[data-bs-toggle="collapse"],
[data-toggle="collapse"],
.btn[aria-expanded] {
    background: rgba(6, 19, 56, 0.5);
    border: 1px solid rgba(100, 180, 220, 0.15);
    color: var(--solara-text-secondary);
    transition: all var(--transition-normal);
}

[data-bs-toggle="collapse"]:hover,
[data-toggle="collapse"]:hover,
.btn[aria-expanded]:hover {
    background: rgba(6, 19, 56, 0.7);
    border-color: rgba(100, 180, 220, 0.25);
    color: var(--solara-primary);
}

[data-bs-toggle="collapse"][aria-expanded="true"],
[data-toggle="collapse"][aria-expanded="true"],
.btn[aria-expanded="true"] {
    background: rgba(6, 19, 56, 0.6);
    border-color: rgba(100, 180, 220, 0.3);
}

/* --- Posts Container --- */
.posts-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

/* =================================================================
   POSTBIT STYLING (Bootstrap Card Layout)
   ================================================================= */

/* --- Post Outer Container --- */
.post {
    margin-bottom: 20px;
}

/* --- Post Card Hover --- */
.post .card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* --- Post Header Row (Avatar, Username, User Details) --- */
.post .card > .row:first-child,
.post .card .p-4 > .row:first-child {
    border-bottom-color: rgba(100, 180, 220, 0.1) !important;
}

/* --- User Avatar --- */
.post .card img.avatar,
.post .card .avatar img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid rgba(100, 180, 220, 0.15);
    border-radius: 0;
    transition: all var(--transition-normal);
}

.post .card:hover img.avatar,
.post .card:hover .avatar img {
    border-color: rgba(100, 180, 220, 0.3);
    box-shadow: 0 0 15px var(--solara-glow);
}

/* --- Username Link --- */
.post .postbit-u,
.post .postbit-u a,
.post .card h5 a {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 18px;
    font-weight: 400 !important;
    color: var(--solara-primary);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.post .postbit-u a:hover,
.post .card h5 a:hover {
    color: var(--solara-text-primary);
    text-shadow: 0 0 10px var(--solara-glow);
}

/* --- User Title (rank) --- */
.post .card .col .usertitle {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 13px;
    color: var(--solara-text-muted);
}

/* --- Postbit button text styling --- */
.post_controls span,
.dropdown-item span,
.postbit_mirage span,
.postbit_edit span,
.postbit_qdelete span,
.postbit_qrestore span,
.postbit_quote span {
    font-style: italic;
    text-transform: lowercase;
}

/* --- User Details (post count, etc) --- */
.post .card .user_details,
.post .card .col-auto .text-muted {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--solara-text-muted) !important;
}

/* --- Character Details (Mini Profile) --- */
.character-details {
    text-align: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--solara-border-subtle);
}

.character-lyric {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 11px;
    color: var(--solara-text-muted);
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.character-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.character-stats .stat-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.character-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}

.character-stats .stat-label {
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--solara-text-muted);
    margin-bottom: 2px;
}

.character-stats .stat-value {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--solara-text-secondary);
}

/* --- Post Date/Time Row --- */
.post .card .row.mt-3 .text-muted,
.post .card time.timeago {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 12px;
    color: var(--solara-text-muted) !important;
}

/* --- Post URL (post number link) --- */
.post .card .posturl a,
.post .card .row.mt-3 .text-end a {
    color: var(--solara-text-muted);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.post .card .posturl a:hover,
.post .card .row.mt-3 .text-end a:hover {
    color: var(--solara-primary);
}

/* --- Post Body (Message Content) --- */
.post .post_body {
    font-family: var(--font-body);
    font-size: 15px !important;
    font-weight: 400 !important;
    color: var(--solara-text-secondary);
    line-height: 1.7;
}

.post .post_body a {
    color: var(--solara-primary);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.post .post_body a:hover {
    color: var(--solara-text-primary);
    text-shadow: 0 0 8px var(--solara-glow);
}

/* --- Post Signature --- */
.post .post_body .signature {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(100, 180, 220, 0.1);
    font-size: 13px;
    color: var(--solara-text-muted);
}

/* --- Post Meta (IP Logged) --- */
.post .post_meta {
    margin-top: 15px;
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--solara-text-muted);
}

/* --- Post Controls (Edit, Quote, Reply buttons) --- */
.post .post_controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.post .post_controls a,
.post .post_controls button {
    display: inline-block;
    padding: 6px 12px;
    font-family: var(--font-body);
    font-style: italic;
    font-size: 12px;
    text-transform: lowercase;
    color: var(--solara-text-secondary);
    text-decoration: none;
    background: rgba(6, 19, 56, 0.4);
    border: 1px solid rgba(100, 180, 220, 0.1);
    border-radius: 0;
    transition: all var(--transition-normal);
}

.post .post_controls a:hover,
.post .post_controls button:hover {
    color: var(--solara-primary);
    background: rgba(6, 19, 56, 0.6);
    border-color: rgba(100, 180, 220, 0.25);
    text-shadow: 0 0 8px var(--solara-glow);
}

/* --- Post Controls Images/Icons --- */
.post .post_controls img {
    height: 14px;
    width: auto;
    opacity: 0.7;
    transition: opacity var(--transition-normal);
}

.post .post_controls a:hover img {
    opacity: 1;
}

/* --- Edited Message Notice --- */
.post .post_body .edited_post,
.post .post_body .editedmsg {
    margin-top: 15px;
    padding: 10px;
    font-size: 12px;
    font-style: italic;
    color: var(--solara-text-muted);
    background: rgba(6, 19, 56, 0.3);
    border-radius: 0;
}

/* --- Attachments --- */
.post .post_body .attachments {
    margin-top: 15px;
    padding: 15px;
    background: rgba(6, 19, 56, 0.3);
    border: 1px solid rgba(100, 180, 220, 0.08);
    border-radius: 0;
}

/* --- Mobile Post Styling --- */
.d-block.d-lg-none .post .card {
    background: linear-gradient(90deg, rgb(12, 18, 45) 0%, rgb(4, 9, 35) 100%);
    border: 1px solid rgba(100, 180, 220, 0.08);
}

.d-block.d-lg-none .post .card h5 {
    margin-bottom: 0;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 16px;
}

/* --- Showthread Page Container --- */
.showthread-container {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    margin: 0 auto;
    padding: 25px;
}

/* --- Showthread Page --- */
body.showthread #content {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

body.showthread h1,
body.showthread .thread-title,
.showthread-container h1 {
    display: block;
    margin: 20px 0 30px 0;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 28px;
    font-weight: 400;
    text-align: center;
    text-transform: lowercase;
    color: var(--solara-text-secondary);
}

/* --- Thread Actions Bar --- */
.thread-actions,
.showthread-container > div:first-of-type {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 12px 20px;
    background: var(--solara-panel);
    border: var(--panel-border);
    border-radius: 0;
}

.thread-actions a,
.thread-subscribe a {
    font-family: var(--font-nav);
    font-style: italic;
    font-size: 13px;
    color: var(--solara-text-secondary);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.thread-actions a:hover,
.thread-subscribe a:hover {
    color: var(--solara-primary);
}

/* --- Posts Container --- */
#posts,
.posts-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --- Individual Post --- */
#posts > div,
.post-wrapper {
    background: var(--solara-panel);
    border: var(--panel-border);
    border-radius: 0;
    box-shadow: var(--panel-shadow);
    overflow: hidden;
}

/* --- Post Table Layout --- */
#posts table.tborder,
.post-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    background: transparent;
    border: none;
}

/* --- Post Author Sidebar --- */
#posts td.trow1:first-child,
#posts td.trow2:first-child,
#posts .post_author,
.postbit-author {
    width: 200px;
    min-width: 200px;
    padding: 20px 15px;
    vertical-align: top;
    text-align: center;
    background: rgba(6, 19, 56, 0.5);
    border-right: 1px solid rgba(100, 180, 220, 0.08);
}

/* --- Author Avatar --- */
#posts .author_avatar img,
#posts td img[src*="avatar"],
.postbit-author .avatar {
    display: block;
    max-width: 120px;
    height: auto;
    margin: 0 auto 15px auto;
    border: 1px solid rgba(100, 180, 220, 0.1);
    border-radius: 0;
}

/* --- Author Username --- */
#posts .largetext a,
#posts .author_information .largetext,
.postbit-author .username {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 18px;
    color: var(--solara-primary);
    text-decoration: none;
}

#posts .largetext a:hover {
    color: var(--solara-text-primary);
    text-shadow: 0 0 10px var(--solara-glow);
}

/* --- Author Info (title, posts, etc) --- */
#posts .author_information .smalltext,
#posts td.trow1 .smalltext,
#posts td.trow2 .smalltext,
.postbit-author .user-info {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 12px;
    color: var(--solara-text-muted);
    line-height: 1.6;
}

/* --- Post Body Area --- */
#posts td.trow1:last-child,
#posts td.trow2:last-child,
#posts .post_body,
.postbit-body {
    vertical-align: top;
    padding: 0;
    background: transparent;
}

/* --- Post Header (date, post number) --- */
#posts .post_head,
#posts .thead,
.postbit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    font-family: var(--font-body);
    font-style: italic;
    font-size: 13px;
    color: var(--solara-text-muted);
    background: rgba(6, 19, 56, 0.3);
    border-bottom: 1px solid rgba(100, 180, 220, 0.08);
}

#posts .post_head a,
.postbit-header a {
    color: var(--solara-text-muted);
    text-decoration: none;
}

#posts .post_head strong a,
.postbit-header strong a {
    color: var(--solara-text-muted);
}

#posts .post_head a:hover,
#posts .post_head strong a:hover,
.postbit-header a:hover,
.postbit-header strong a:hover {
    color: var(--solara-primary);
}

/* --- Post Content --- */
#posts .post_body > div,
#posts .post_content,
.postbit-content {
    padding: 20px;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--solara-text-secondary);
    line-height: 1.7;
}

/* --- Post Controls (Edit, Reply, etc) --- */
#posts .post_controls,
#posts .tfoot,
.postbit-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: transparent;
    border: none;
}

/* --- Hide weird mark from empty author cells in action rows --- */
#posts tr.tfoot td:first-child,
#posts tr td.tfoot:first-child,
#posts .tfoot td:empty,
#posts tr:has(.tfoot) td:first-child:not(.tfoot),
.post .row > div:first-child:empty,
.post .card > .row > .col-2:first-child {
    background: transparent !important;
    border: none !important;
    width: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    visibility: hidden;
}

/* --- Post Action Buttons (Edit, Delete, Reply, etc) --- */
#posts .post_controls a,
#posts .tfoot a,
.postbit-controls a,
.post a[href*="editpost"],
.post a[href*="deletepost"],
.post a[href*="newreply"],
.post .text-end a,
.post_controls a.postbit_mirage,
.post_controls a.postbit_edit,
.post_controls a.postbit_qdelete,
.post_controls a.postbit_qrestore,
.post_controls a.postbit_quote,
a.postbit_mirage.dropdown-item,
a.postbit_edit.dropdown-item,
a.postbit_qdelete.dropdown-item,
a.postbit_qrestore.dropdown-item,
a.postbit_quote.dropdown-item {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 11px;
    text-transform: none;
    color: var(--solara-secondary);
    text-decoration: none;
    transition: all var(--transition-normal);
}

#posts .post_controls a:hover,
#posts .tfoot a:hover,
.postbit-controls a:hover,
.post a[href*="editpost"]:hover,
.post a[href*="deletepost"]:hover,
.post a[href*="newreply"]:hover,
.post .text-end a:hover {
    color: var(--solara-primary);
}

/* --- Override Bootstrap .dropdown-item in post controls --- */
.post_controls .dropdown-item,
.post .dropdown-item,
.post .dropdown-menu .dropdown-item,
.post .dropdown-menu a.dropdown-item,
#posts .dropdown-item,
#posts .dropdown-menu .dropdown-item {
    display: inline-block;
    width: auto;
    padding: 4px 10px;
    clear: none;
    background: transparent;
    border: none;
    font-family: var(--font-body);
    font-style: italic;
    font-size: 11px;
    text-transform: none;
    color: var(--solara-text-secondary);
    text-decoration: none;
    white-space: nowrap;
}

.post_controls .dropdown-item:hover,
.post .dropdown-item:hover,
#posts .dropdown-item:hover {
    background: transparent;
    color: var(--solara-primary);
}

/* --- Hide inline moderation checkbox on posts only --- */
.post input[type="checkbox"][name*="inlinemod"],
#posts input[type="checkbox"][name*="inlinemod"],
.post .form-check-input,
.post input[type="checkbox"],
.post input[type="radio"],
#posts .form-check-input,
#posts .form-check,
.posts-wrapper .form-check-input,
.posts-wrapper input[type="checkbox"],
.card input[type="checkbox"][name*="inlinemod"],
.post_controls input[type="checkbox"],
.post .card input[type="checkbox"] {
    display: none;
    visibility: hidden;
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
    pointer-events: none;
}

/* --- Style inline moderation checkboxes on thread listings --- */
tbody input[type="checkbox"],
tr input[type="checkbox"],
td input[type="checkbox"],
.thread-row input[type="checkbox"],
input.form-check-input[id*="inlinemod"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: rgba(6, 13, 42, 0.8);
    border: 1px solid rgba(100, 180, 220, 0.2);
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.5;
}

tbody input[type="checkbox"]:hover,
tr input[type="checkbox"]:hover,
td input[type="checkbox"]:hover,
.thread-row input[type="checkbox"]:hover,
input.form-check-input[id*="inlinemod"]:hover {
    opacity: 1;
    border-color: rgba(100, 180, 220, 0.4);
    box-shadow: 0 0 8px rgba(77, 181, 248, 0.2);
}

tbody input[type="checkbox"]:checked,
tr input[type="checkbox"]:checked,
td input[type="checkbox"]:checked,
.thread-row input[type="checkbox"]:checked,
input.form-check-input[id*="inlinemod"]:checked {
    opacity: 1;
    background: rgba(49, 40, 119, 0.6);
    border-color: rgba(100, 180, 220, 0.5);
    box-shadow: 0 0 10px rgba(77, 181, 248, 0.3);
}

tbody input[type="checkbox"]:checked::after,
tr input[type="checkbox"]:checked::after,
td input[type="checkbox"]:checked::after,
.thread-row input[type="checkbox"]:checked::after,
input.form-check-input[id*="inlinemod"]:checked::after {
    content: '✓';
    display: block;
    text-align: center;
    font-size: 11px;
    line-height: 14px;
    color: var(--solara-primary);
}

/* --- Moderation Options --- */
.moderation_options,
.inline-moderation {
    margin: 20px 0;
    padding: 15px 20px;
    background: linear-gradient(90deg, rgb(12, 18, 45) 0%, rgb(4, 9, 35) 100%);
    border: 1px solid rgba(100, 180, 220, 0.08);
    border-radius: 0;
}

.moderation_options select,
.inline-moderation select {
    padding: 8px 12px;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--solara-text-secondary);
    background: rgba(6, 19, 56, 0.6);
    border: 1px solid rgba(100, 180, 220, 0.15);
    border-radius: 0;
}

.moderation_options input[type="submit"],
.inline-moderation input[type="submit"] {
    padding: 8px 16px;
    font-family: var(--font-nav);
    font-style: italic;
    font-size: 13px;
    color: var(--solara-text-secondary);
    background: rgba(6, 19, 56, 0.6);
    border: 1px solid rgba(100, 180, 220, 0.15);
    border-radius: 0;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.moderation_options input[type="submit"]:hover,
.inline-moderation input[type="submit"]:hover {
    color: var(--solara-primary);
    border-color: rgba(100, 180, 220, 0.3);
}

/* --- Thread Footer Labels (not usernames) --- */
.card.moderation-options .card-header,
.card.moderation-options p:first-child,
.card.body.bg-white .card-body > strong:first-child {
    font-family: var(--font-nav);
    font-style: italic;
    font-size: 14px;
    font-weight: 400;
    color: var(--solara-text-muted);
    text-transform: lowercase;
}

/* Users browsing label only - not the usernames */
.card.body.bg-white .card-body {
    font-size: 14px;
}

/* --- Showthread Wrapper (generic #content targeting) --- */
#content {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    margin: 0 auto;
    padding: 25px;
}

/* --- Thread Title (h1 or navigation breadcrumb) --- */
#content > table:first-of-type,
#content > .navigation {
    margin-bottom: 20px;
}

/* --- Generic Showthread Table Styling --- */
#content > table.tborder {
    width: 100%;
    margin-bottom: 20px;
    background: var(--solara-panel);
    border: var(--panel-border);
    border-radius: 0;
    box-shadow: var(--panel-shadow);
    border-collapse: collapse;
    overflow: hidden;
}

#content > table.tborder > tbody > tr > td {
    padding: 15px 20px;
    border: none;
    border-bottom: 1px solid rgba(100, 180, 220, 0.08);
}

#content > table.tborder > tbody > tr:last-child > td {
    border-bottom: none;
}

/* --- Post Wrapper Table --- */
#content table.tborder table.tborder {
    width: 100%;
    margin: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* --- Post Author Cell (first column) --- */
#content table.tborder td.trow1[valign="top"]:first-child,
#content table.tborder td.trow2[valign="top"]:first-child,
#content table.tborder td[width="15%"],
#content table.tborder td[style*="width: 15%"] {
    width: 200px !important;
    min-width: 200px;
    padding: 20px 15px;
    vertical-align: top;
    text-align: center;
    background: rgba(6, 19, 56, 0.5);
    border-right: 1px solid rgba(100, 180, 220, 0.08);
}

/* --- Post Body Cell (second column) --- */
#content table.tborder td.trow1[valign="top"]:last-child,
#content table.tborder td.trow2[valign="top"]:last-child,
#content table.tborder td[width="85%"],
#content table.tborder td[style*="width: 85%"] {
    vertical-align: top;
    padding: 0;
    background: transparent;
}

/* --- Post Container --- */
.post {
    display: block;
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
    background: var(--solara-panel);
    border: var(--panel-border);
    border-radius: 0;
    box-shadow: var(--panel-shadow);
    transition: all var(--transition-normal);
}

.post:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.post table {
    width: 100%;
    table-layout: fixed;
    border-spacing: 0;
    border-collapse: collapse;
}

/* --- Post Author Column --- */
.post_author,
.postbit_author,
td.trow1[width="15%"],
td.trow2[width="15%"] {
    width: 200px;
    padding: 20px 15px;
    vertical-align: top;
    text-align: center;
    background: rgba(6, 19, 56, 0.65);
    border-right: var(--panel-border);
}

.post_author .largetext,
.postbit_author .largetext,
.post_author .username,
.postbit_author .username {
    display: block;
    margin-bottom: 10px;
    font-family: var(--font-nav);
    font-style: italic;
    font-size: 18px;
    font-weight: 400;
    text-transform: lowercase;
    color: var(--solara-primary);
}

.post_author img.avatar,
.postbit_author img.avatar,
.post_author .postavatar img,
.postbit_author .postavatar img {
    display: block;
    max-width: 150px;
    height: auto;
    margin: 0 auto 15px auto;
    border: var(--panel-border);
    border-radius: 0;
}

.post_author .smalltext,
.postbit_author .smalltext {
    margin: 3px 0;
    font-family: var(--font-body);
    font-style: italic;
    font-size: 12px;
    color: var(--solara-secondary);
    line-height: 1.4;
}

/* --- Post Body Column --- */
.post_body,
.postbit_body,
td.trow1[width="85%"],
td.trow2[width="85%"] {
    width: auto;
    padding: 0;
    vertical-align: top;
    background: transparent;
}

/* --- Post Header --- */
.post_head,
.postbit_postdate {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    font-family: var(--font-body);
    font-style: italic;
    font-size: 13px;
    color: var(--solara-secondary);
    background: rgba(6, 19, 56, 0.3);
    border-bottom: var(--panel-border);
}

/* --- Post Content --- */
.post_content,
.postbit_content {
    padding: 20px;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--solara-text-secondary);
    line-height: 1.7;
}

/* --- Post Controls --- */
.post_controls,
.postbit_buttons {
    display: block;
    padding: 12px 20px;
    text-align: right;
    background: transparent;
    border-top: none;
}

.post_controls a,
.postbit_buttons a {
    display: inline-block;
    margin-left: 15px;
    font-family: var(--font-body);
    font-style: italic;
    font-size: 13px;
    text-transform: lowercase;
    color: var(--solara-secondary);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.post_controls a:hover,
.postbit_buttons a:hover {
    color: var(--solara-primary);
    text-shadow: 0 0 10px var(--solara-glow), 0 0 20px var(--solara-glow-strong);
}

/* --- Thread Tools --- */
.thread_tools,
.thread-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px 20px;
    background: linear-gradient(90deg, rgb(12, 18, 45) 0%, rgb(4, 9, 35) 100%);
    border: 1px solid rgba(100, 180, 220, 0.08);
    border-radius: 0;
}

/* --- Thread Status Images --- */
.thread_status img {
    opacity: 0.7;
    transition: opacity var(--transition-normal);
}

.thread_status img:hover {
    opacity: 1;
}

/* --- Moderation Options Box --- */
.card.moderation-options {
    position: relative;
    z-index: 10;
    background: linear-gradient(90deg, rgb(12, 18, 45) 0%, rgb(4, 9, 35) 100%);
    border: 1px solid rgba(100, 180, 220, 0.08);
}

.card.moderation-options p {
    font-family: var(--font-body);
    font-style: italic;
    color: var(--solara-text-secondary);
}

/* --- Users Browsing This Thread Footer --- */
.card.body.bg-white {
    position: relative;
    z-index: 10;
    isolation: isolate;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(90deg, rgb(12, 18, 45) 0%, rgb(4, 9, 35) 100%) !important;
    border: 1px solid rgba(100, 180, 220, 0.08);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.card.body.bg-white .card-body {
    background: transparent !important;
    font-family: var(--font-body);
    font-style: italic;
    color: var(--solara-text-secondary);
}

.card.body.bg-white a {
    color: var(--solara-primary);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.card.body.bg-white a:hover {
    color: var(--solara-accent);
}

/* --- Quick Reply Form --- */
#quick_reply_form {
    position: relative;
    z-index: 10;
    display: block;
    visibility: visible;
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(90deg, rgb(12, 18, 45) 0%, rgb(4, 9, 35) 100%);
    border: 1px solid rgba(100, 180, 220, 0.08);
    border-radius: 0;
    text-align: right;
}

/* Remove nested box styling - keep it clean */
#quick_reply_form .row,
#quick_reply_form > .row,
#quick_reply_form .bg-white,
#quick_reply_form .row.bg-white,
form[name="quick_reply_form"] .bg-white,
form[name="quick_reply_form"] .row {
    background: transparent;
    border: none;
    box-shadow: none;
}

#quick_reply_form textarea,
#quick_reply_form textarea.form-control {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 250px;
    padding: 12px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--solara-text-primary);
    background: rgb(6, 14, 38);
    border: 1px solid rgba(100, 180, 220, 0.08);
    border-radius: 0;
    resize: vertical;
}

#quick_reply_form textarea:focus {
    background: rgba(6, 19, 56, 0.5);
    border-color: rgba(100, 180, 220, 0.3);
    box-shadow: none;
    outline: none;
}

/* --- Form Attachment/Image Upload Box --- */
.row.g-3,
.row.align-items-end,
form .row {
    align-items: flex-end;
}

.row.g-3 > .col-auto,
form .row > .col-auto,
form .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Attachment upload boxes */
.post_attachment,
.attachbox,
.new_attachment,
input[type="file"],
.custom-file,
.form-control[type="file"] {
    padding: 12px 15px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--solara-text-secondary);
    background: rgba(6, 19, 56, 0.4);
    border: 1px solid rgba(100, 180, 220, 0.1);
    border-radius: 0;
}

/* --- Attachments Container --- */
.attachments-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 15px;
}

.attachments-upload-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Upload progress bar */
.upload-progress-bar,
#upload_bar {
    height: 4px;
    margin-bottom: 0;
    background: rgba(80, 160, 190, 0.6);
    border-radius: 0;
    transition: width 0.3s ease;
}

/* Dropzone area styling */
.dropzone-area,
#dropzone,
.dropzone,
[id="dropzone"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 35px 20px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--solara-text-muted);
    text-align: center;
    background: rgba(6, 19, 56, 0.4);
    border: 1px dashed rgba(100, 180, 220, 0.2);
    border-radius: 0;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.dropzone-area:hover,
#dropzone:hover,
.dropzone:hover {
    background: rgba(6, 19, 56, 0.5);
    border-color: rgba(100, 180, 220, 0.35);
}

.dropzone-area img,
#dropzone img {
    opacity: 0.5;
    margin-bottom: 10px;
}

input[type="file"]::file-selector-button {
    padding: 8px 16px;
    margin-right: 12px;
    font-family: var(--font-nav);
    font-style: italic;
    font-size: 13px;
    color: var(--solara-text-secondary);
    background: rgba(6, 19, 56, 0.6);
    border: 1px solid rgba(100, 180, 220, 0.15);
    border-radius: 0;
    cursor: pointer;
    transition: all var(--transition-normal);
}

input[type="file"]::file-selector-button:hover {
    color: var(--solara-primary);
    background: rgba(6, 19, 56, 0.8);
    border-color: rgba(100, 180, 220, 0.3);
}

/* --- Pagination --- */
.pagination {
    margin: 10px 0;
    font-family: var(--font-nav);
    font-style: italic;
    font-size: 14px;
}

.pagination a {
    margin: 0 2px;
    padding: 4px 8px;
    color: var(--solara-secondary);
    background: var(--solara-panel);
    border: var(--panel-border);
    border-radius: 0;
    transition: all var(--transition-normal);
}

.pagination a:hover {
    color: var(--solara-primary);
    background: rgba(6, 19, 56, 0.75);
    text-shadow: 0 0 10px var(--solara-glow), 0 0 20px var(--solara-glow-strong);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.pagination .current {
    margin: 0 2px;
    padding: 4px 8px;
    font-weight: normal;
    color: var(--solara-primary);
    background: rgba(6, 19, 56, 0.75);
    border: var(--panel-border);
    border-radius: 0;
}

/* --- Breadcrumb / Navigation Path --- */
.navigation-wrapper {
    position: relative;
    z-index: 2;
    margin-bottom: 10px;
}

.navigation,
.breadcrumb,
div.navigation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25em;
    padding: 12px 0;
    margin-bottom: 10px;
    font-family: var(--font-nav);
    font-style: italic;
    font-size: 14px;
    text-transform: lowercase;
    color: var(--solara-text-muted);
    background: transparent;
    border: none;
    line-height: 1.6;
}

.navigation a,
.breadcrumb a,
div.navigation a {
    color: var(--solara-text-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.navigation a:hover,
.breadcrumb a:hover,
div.navigation a:hover {
    color: var(--solara-primary);
}

/* Breadcrumb separator */
.breadcrumb-item + .breadcrumb-item::before,
.navigation .nav-sep {
    color: var(--solara-text-muted);
    opacity: 0.5;
    padding: 0 0.4em;
}

/* Current page styling */
.navigation span,
.breadcrumb .active,
.breadcrumb-item.active {
    color: var(--solara-text-muted);
}

/* Hide default navigation images */
.navigation img,
div.navigation img {
    display: none;
}

/* --- Blockquote --- */
blockquote {
    margin: 10px 0;
    padding: 15px;
    font-family: var(--font-body);
    color: var(--solara-secondary);
    background: var(--solara-panel-dark);
    border: var(--panel-border);
    border-radius: 0;
    box-shadow: var(--panel-shadow);
}

blockquote cite {
    display: block;
    margin: 0 0 10px 0;
    padding-bottom: 3px;
    font-family: var(--font-accent);
    font-style: normal;
    font-size: 13px;
    font-weight: 400;
    border-bottom: var(--solara-border-subtle);
}

/* =================================================================
   8. FORMS & BUTTONS
   ================================================================= */

/* --- Base Button Styles (non-Bootstrap) --- */
input[type="submit"],
input[type="reset"],
input[type="button"],
.button {
    padding: 8px 16px;
    font-family: var(--font-nav);
    font-style: italic;
    font-size: 13px;
    text-transform: lowercase;
    color: var(--solara-text-secondary);
    background: rgba(6, 19, 56, 0.5);
    border: 1px solid rgba(100, 180, 220, 0.15);
    border-radius: var(--bs-border-radius);
    cursor: pointer;
    transition: all var(--transition-normal);
}

input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
.button:hover {
    color: var(--solara-primary);
    background: rgba(6, 19, 56, 0.7);
    border-color: rgba(100, 180, 220, 0.3);
    text-shadow: 0 0 8px var(--solara-glow);
}

/* --- Primary Button --- */
.btn-primary {
    font-family: var(--font-accent);
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
    color: var(--solara-primary);
    background: var(--solara-deep);
    border-color: var(--solara-deep);
    transition: all var(--transition-normal);
}

.btn-primary:hover,
.btn-primary:active {
    background: var(--solara-muted);
    border-color: var(--solara-tertiary);
}

/* --- Reply Button --- */
.btn-reply {
    font-family: var(--font-accent);
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
    color: var(--solara-bg-base);
    background: var(--solara-secondary);
    transition: all var(--transition-normal);
}

.btn-reply:hover {
    color: var(--solara-bg-base);
    background: var(--solara-primary);
}

/* --- New Reply / New Thread Form Padding --- */
form[name="input"] .card-body {
    padding: 1.5rem;
}

form[name="input"] .tab-content,
form[name="input"] .tab-pane {
    padding: 0 1rem;
}

form[name="input"] textarea#message,
form[name="input"] textarea.form-control {
    width: calc(100% - 2rem);
    margin: 1rem;
}

@media (min-width: 992px) {
    form[name="input"] .card-body {
        padding: 3rem;
    }

    form[name="input"] .tab-content,
    form[name="input"] .tab-pane {
        padding: 0;
    }
}

/* --- SCEditor (Rich Text Editor) --- */
.sceditor-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: linear-gradient(90deg, rgb(12, 18, 45) 0%, rgb(4, 9, 35) 100%);
    border: 1px solid rgba(100, 180, 220, 0.08);
    border-radius: 0;
}

.sceditor-container iframe,
.sceditor-container textarea {
    color: var(--solara-text-secondary);
    background: rgb(6, 14, 38);
}

/* --- Upload/Dropzone after editor - match textarea width --- */
form[name="input"] .attachments-container,
form[name="input"] .dropzone,
form[name="input"] [id="dropzone"] {
    width: calc(100% - 2rem);
    max-width: calc(100% - 2rem);
    box-sizing: border-box;
    margin: 0.5rem 1rem 1rem 1rem;
}

/* --- Second Tab (Post Options) Styling --- */
form[name="input"] #tab-2,
form[name="input"] .tab-pane:not(:first-child) {
    padding: 1.5rem;
    font-size: 12px;
    color: var(--solara-text-muted);
}

/* =================================================================
   9. UI COMPONENTS & EFFECTS
   ================================================================= */

/* --- Username Link --- */
.username-link {
    color: var(--solara-secondary);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.username-link:hover {
    color: var(--solara-primary);
    text-shadow: 0 0 10px var(--solara-glow), 0 0 20px var(--solara-glow-strong);
}

/* --- Map Card --- */
.map-card .dashboard-card-content {
    display: flex;
    padding: 0;
}

.map-card .dashboard-card-content a {
    display: block;
    position: relative;
    flex-grow: 1;
    overflow: hidden;
    border-radius: 0;
}

.map-card .dashboard-card-content img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.4s ease;
}

.map-card .dashboard-card-content a::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background-color: rgba(6, 19, 56, 0.75);
    transition: background-color 0.4s ease;
}

.map-card .dashboard-card-content span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    font-family: var(--font-body);
    font-style: normal;
    font-size: 16px;
    color: var(--solara-text-secondary);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.8);
    line-height: normal;
    pointer-events: none;
    transition: color 0.4s ease, text-shadow 0.4s ease;
}

.map-card .dashboard-card-content a:hover::after {
    background-color: rgba(6, 19, 56, 0.5);
}

.map-card .dashboard-card-content a:hover span {
    color: var(--solara-text-primary);
    text-shadow: 0 0 8px var(--solara-glow), 0 0 15px var(--solara-glow-strong);
}

/* =================================================================
   10. ANIMATIONS & KEYFRAMES
   ================================================================= */

/* --- Soft Pulse (Logo) --- */
@keyframes softPulse {
    0%, 100% {
        text-shadow: 0 0 8px rgba(217, 210, 251, 0.5), 0 0 16px rgba(217, 210, 251, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(217, 210, 251, 0.8), 0 0 30px rgba(217, 210, 251, 0.5);
    }
}

/* --- Stars Movement (Background) --- */
@keyframes stars-move {
    0% { background-position: 0 0; }
    100% { background-position: 700px 700px; }
}

/* --- Large Pulse Effect --- */
@keyframes pulseLarge {
    0%, 100% {
        transform: translate(-50%, -50%) scale(0.6);
        opacity: 0.7;
        box-shadow:
            0 0 15px rgba(220, 191, 255, 0.5),
            0 0 30px rgba(220, 191, 255, 0.3);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 1;
        box-shadow:
            0 0 30px rgba(220, 191, 255, 0.8),
            0 0 60px rgba(220, 191, 255, 0.5),
            0 0 90px rgba(220, 191, 255, 0.3);
    }
}

/* --- Large Ripple Effect --- */
@keyframes rippleLarge {
    0%, 100% {
        transform: scale(0.7);
        opacity: 0.8;
        border-color: rgba(220, 191, 255, 0.8);
    }
    50% {
        transform: scale(1.3);
        opacity: 0.3;
        border-color: rgba(220, 191, 255, 0.4);
    }
}

/* --- Text Pulse Effect --- */
@keyframes textPulse {
    0%, 100% {
        opacity: 0.85;
        text-shadow: 0 0 10px rgba(220, 191, 255, 0.6), 0 0 20px rgba(220, 191, 255, 0.3);
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 15px rgba(220, 191, 255, 0.8), 0 0 30px rgba(220, 191, 255, 0.5), 0 0 45px rgba(220, 191, 255, 0.3);
    }
}

/* --- Outer Pulse Effect --- */
@keyframes outerPulse {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

/* --- Particle Float Effect --- */
@keyframes particleFloat {
    0% {
        transform: translateY(-20vh);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(120vh);
        opacity: 0;
    }
}

/* =================================================================
   11. CUSTOM SCROLLBAR
   ================================================================= */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--solara-scrollbar-track);
    border-radius: 0;
}

::-webkit-scrollbar-thumb {
    background: var(--solara-scrollbar-thumb);
    border: 2px solid var(--solara-scrollbar-track);
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--solara-scrollbar-thumb-hover);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* =================================================================
   12. OOC FORUM SPECIFIC STYLES
   ================================================================= */

/* --- OOC Forum Divider --- */
.ooc-forum-divider {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 10px 20px;
    box-sizing: border-box;
    text-align: center;
    overflow: hidden;
    background: rgba(18, 24, 52, 0.6);
    border: none;
    border-top: 1px solid rgba(100, 180, 220, 0.1);
    border-bottom: 1px solid rgba(100, 180, 220, 0.1);
    border-radius: 0;
}


.ooc-divider-text {
    margin: 0;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 18px;
    font-weight: 400;
    text-transform: lowercase;
    letter-spacing: 1px;
    color: var(--solara-secondary);
}


/* --- OOC Forums Container --- */
.ooc-forums-container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 25px;
    box-sizing: border-box;
    background: transparent;
    border: none;
    border-radius: 0;
}


/* --- OOC Forums Grid --- */
.ooc-forums-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: auto;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    float: none;
    clear: both;
}

/* --- OOC Forum Box Wrapper --- */
.ooc-forum-box-wrapper {
    display: flex;
    flex-direction: column;
    position: relative;
    grid-column: span 1;
    width: auto;
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    float: none;
    background: linear-gradient(90deg, rgb(12, 18, 45) 0%, rgb(4, 9, 35) 100%);
    border: 1px solid rgba(100, 180, 220, 0.08);
    border-radius: 0;
}

.ooc-forum-box-wrapper::before,
.ooc-forum-box-wrapper::after {
    content: none;
    font-size: 0;
    opacity: 0;
    pointer-events: none;
}

/* --- OOC Forum Box --- */
.ooc-forum-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    flex-grow: 1;
    height: 140px;
    padding: 15px;
    text-align: center;
}

.ooc-forum-box .forum-title-link {
    display: inline-block;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 16px;
    color: var(--solara-text-secondary);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.ooc-forum-box .forum-title-link:hover {
    color: var(--solara-primary);
}

.ooc-forum-box .forum-description {
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--solara-text-muted);
}

.ooc-forum-box .forum-stats {
    width: 100%;
    margin-top: auto;
    padding-top: 10px;
    font-family: var(--font-nav);
    font-style: italic;
    font-size: 12px;
    text-align: left;
    text-transform: lowercase;
    color: var(--solara-text-muted);
}

/* --- Hide Default Category Tables --- */
.ooc-category .tborder {
    display: none;
}


/* =================================================================
   13. IC FORUM SPECIFIC STYLES
   ================================================================= */

/* --- IC Forum Divider --- */
.ic-forum-divider {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 8px 25px;
    text-align: center;
    overflow: hidden;
    background: rgba(18, 24, 52, 0.6);
    border: none;
    border-top: 1px solid rgba(100, 180, 220, 0.1);
    border-bottom: 1px solid rgba(100, 180, 220, 0.1);
    border-radius: 0;
}


/* --- IC Category Divider --- */
.ic-category-divider {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 40px;
    padding-left: 10px;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 20px;
    text-align: left;
    text-transform: lowercase;
    color: var(--solara-secondary);
}

.ic-category-divider i {
    color: var(--solara-primary);
}

/* --- IC Forums Container --- */
.ic-forums-container {
    position: relative;
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 25px;
    box-sizing: border-box;
    background: transparent;
    border: none;
    border-radius: 0;
}


/* --- IC Forums Grid --- */
.ic-forums-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding-top: 20px;
}

/* --- IC Forum Box --- */
.ic-forum-box {
    position: relative;
    width: 100%;
    min-height: 250px;
    overflow: hidden;
    background: linear-gradient(90deg, rgb(12, 18, 45) 0%, rgb(4, 9, 35) 100%);
    border: 1px solid rgba(100, 180, 220, 0.08);
    border-radius: 0;
}

.ic-forum-box.lone-row {
    grid-column: 1 / -1;
    min-height: 250px;
    align-items: center;
}

.ic-forum-box a {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
    outline: none;
    box-shadow: none;
}

/* IC Forum Box Overlay */
.ic-forum-box::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background-color: rgba(6, 19, 56, 0.6);
}

/* --- IC Forum Image --- */
.ic-forum-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    object-fit: cover;
}

/* --- IC Forum Box Content --- */
.ic-forum-box-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 10px 25px;
    background: rgba(12, 18, 42, 0.95);
    border-bottom: 1px solid rgba(100, 180, 220, 0.1);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* --- IC Forum Box Left (Title & Description) --- */
.ic-forum-box-left {
    flex: 1;
}

.ic-forum-box-title {
    margin: 0 0 2px 0;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 26px;
    font-weight: 400;
    text-transform: lowercase;
    line-height: 1.2;
    color: var(--solara-text-secondary);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}


.ic-forum-box-description {
    margin: 0;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--solara-text-muted);
    line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    opacity: 0.9;
}

/* --- IC Forum Box Right (Stats & Last Post) --- */
.ic-forum-box-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    margin-left: 20px;
}

.ic-forum-box-stats {
    margin-bottom: 10px;
    font-family: var(--font-nav);
    font-style: italic;
    font-size: 12px;
    text-transform: lowercase;
    white-space: nowrap;
    color: var(--solara-text-muted);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    opacity: 0.9;
}

/* --- IC Forum Last Post --- */
.ic-forum-box .lastpost-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ic-forum-box .lastpost-avatar img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    object-fit: cover;
    border: 1px solid rgba(100, 180, 220, 0.1);
    border-radius: 50%;
    transition: all var(--transition-normal);
}

.ic-forum-box:hover .lastpost-avatar img {
    transform: scale(1.1);
}

.ic-forum-box .lastpost-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
    text-align: left;
    font-family: var(--font-body);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.ic-forum-box .lastpost-thread-link {
    font-style: italic;
    font-size: 14px;
    color: var(--solara-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: none;
    transition: color var(--transition-normal);
}

.ic-forum-box .lastpost-thread-link:hover {
    color: var(--solara-primary);
}

.ic-forum-box .lastpost-meta {
    font-size: 11px;
    color: var(--solara-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.8;
}

.ic-forum-box .lastpost-meta > * {
    display: inline !important;
}

.ic-forum-box .lastpost-meta a {
    font-style: normal;
    color: var(--solara-secondary);
    text-shadow: none;
    transition: color var(--transition-normal);
}

.ic-forum-box .lastpost-meta a:hover {
    color: var(--solara-primary);
}


/* =================================================================
   14. RESPONSIVE DESIGN
   ================================================================= */

/* --- Large Screens (max-width: 1340px) --- */
@media screen and (max-width: 1340px) {
    .wrapper,
    .welcome-quote,
    .quote-section-bottom,
    .forum-wrapper,
    .ooc-dashboard,
    .forumdisplay-container,
    .ooc-forums-container,
    .ic-forums-container {
        max-width: calc(100% - 40px);
        margin-left: 20px;
        margin-right: 20px;
    }
}

/* --- Medium Screens (max-width: 1200px) --- */
@media screen and (max-width: 1200px) {
    /* Dashboard Grid */
    .ooc-dashboard-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }

    .ooc-dashboard-card:nth-child(1),
    .ooc-dashboard-card:nth-child(2),
    .ooc-dashboard-card:nth-child(3),
    .ooc-dashboard-card:nth-child(4),
    .ooc-dashboard-card:nth-child(5),
    .ooc-dashboard-card:nth-child(6),
    .ooc-dashboard-card:nth-child(7),
    .ooc-dashboard-card:nth-child(8),
    .ooc-dashboard-card:nth-child(9),
    .ooc-dashboard-card:nth-child(10) {
        grid-column: span 2;
    }

    /* Forum Grids */
    .ooc-forums-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ic-forums-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* IC Forum Box */
    .ic-forum-box-title {
        font-size: 28px;
    }

    .ic-forum-box-description {
        font-size: 14px;
    }

    /* Thread List */
    .thread-list-container .col,
    .thread-list-container .col-auto {
        padding-left: 5px;
        padding-right: 5px;
    }

    .thread-list-container .thread_status {
        width: 20px;
        height: 20px;
    }

    .thread-title-link {
        font-size: 16px;
    }

    .thread-starter {
        font-size: 12px;
    }

    /* Stats */
    .stat-number {
        font-size: 20px;
    }

    .stat-label {
        font-size: 10px;
    }

    .last-post-info {
        font-size: 12px;
    }
}

/* --- Tablet & Small Screens (max-width: 767px) --- */
@media screen and (max-width: 767px) {
    /* Navbar */
    .sticky-navbar {
        height: 35px;
    }

    .sticky-navbar .nav-left {
        padding-left: 5px;
    }

    .sticky-navbar .nav-right {
        gap: 8px;
        padding-right: 10px;
    }

    .sticky-navbar .nav-item,
    .sticky-navbar .nav-left a,
    .sticky-navbar .nav-right a,
    .sticky-navbar .nav-welcome a,
    .sticky-navbar .dropdown-toggle,
    .sticky-navbar .user-name,
    .sticky-navbar .site-logo-link {
        font-size: 12px;
    }

    .sticky-navbar .scroll-to-top-icon svg {
        width: 16px;
        height: 16px;
    }

    .sticky-navbar .dropdown-menu {
        min-width: 130px;
    }

    .sticky-navbar .dropdown-menu a {
        padding: 4px 8px;
        font-size: 12px;
    }

    /* Hero & Logo */
    #hero-overlay {
        padding-top: 80px;
        padding-left: 20px;
        align-items: flex-start;
        justify-content: flex-start;
        text-align: left;
    }

    .logo-link {
        top: 100px;
        left: 50%;
        transform: translateX(-50%);
    }

    .logo-link .logo {
        font-size: 48px;
    }

    /* Wrappers & Containers */
    .wrapper,
    #content {
        padding: 15px;
        margin: 10px;
    }

    .wrapper,
    .welcome-quote,
    .quote-section-bottom,
    .forum-wrapper,
    .ooc-dashboard,
    .forumdisplay-container,
    .ooc-forums-container,
    .ic-forums-container {
        max-width: calc(100% - 20px);
        margin-left: 10px;
        margin-right: 10px;
        padding: 10px;
    }

    /* Forum Rows */
    .forum-row-wrapper {
        padding: 15px 10px;
    }

    .forum-title-link {
        font-size: 18px;
    }

    .stat-number {
        font-size: 20px;
    }

    /* Table Headers */
    .thead {
        font-size: 16px;
    }

    .thead strong,
    .thead a {
        font-size: 16px;
    }

    .thead td {
        padding: 12px 15px;
    }

    .thead .smalltext {
        font-size: 12px;
    }

    /* Login */
    .login-minimal {
        max-width: 320px;
        margin: 25px auto;
        padding: 20px;
    }

    /* Quote Sections */
    .welcome-quote,
    .quote-section-bottom {
        padding: 25px 15px;
    }

    .quote-text {
        font-size: 24px;
    }

    .quote-section-bottom .quote-content {
        gap: 15px;
    }

    /* OOC Dashboard */
    .ooc-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ooc-dashboard-card {
        grid-column: 1 / -1 !important;
        min-height: auto;
        height: auto;
    }

    .ooc-dashboard-card:is(:nth-child(5), :nth-child(6), :nth-child(7), :nth-child(8), :nth-child(9), :nth-child(10)) {
        padding: 0;
    }

    .ooc-dashboard-card.standard-small-dashboard-card,
    .ooc-dashboard-card.bottom-small-dashboard-card {
        justify-content: flex-start;
        align-items: flex-start;
        text-align: left;
    }

    .ooc-dashboard-map-full {
        flex-direction: column;
    }

    .map-image {
        flex: 0 0 150px;
    }

    /* Forum Grids */
    .ooc-forums-grid,
    .ic-forums-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 10px;
    }

    .ooc-forum-box-wrapper {
        padding: 5px;
    }

    /* IC Forum Boxes */
    .ic-forum-box {
        min-height: 190px;
    }

    .ic-forum-box-content {
        padding: 10px 20px;
    }

    .ic-forum-box-title {
        font-size: 24px;
    }

    .ic-forum-box-description {
        max-width: 300px;
        font-size: 13px;
    }

    .ic-forum-box-stats {
        font-size: 12px;
    }

    /* Posts */
    .post table {
        table-layout: auto;
    }

    .post_author,
    .postbit_author,
    td.trow1[width="15%"],
    td.trow2[width="15%"] {
        width: 100%;
        padding: 15px;
        border-right: none;
        border-bottom: var(--panel-border);
    }

    .post_body,
    td.trow1[width="85%"],
    td.trow2[width="85%"] {
        width: 100%;
    }

    .post_content,
    .postbit_content {
        padding: 15px;
    }

    /* Forms */
    .solara-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .solara-form-actions .solara-btn,
    .solara-form-actions .btn {
        width: 100%;
        max-width: none;
        margin-bottom: 10px;
    }

    /* Tabs */
    .solara-tab-buttons {
        flex-direction: column;
    }

    .solara-tab-btn {
        text-align: center;
        border-bottom: none;
        border-right: 2px solid transparent;
    }

    .solara-tab-btn.active {
        border-right-color: var(--solara-primary);
        border-bottom-color: transparent;
    }
}

/* --- Mobile Screens (max-width: 480px) --- */
@media screen and (max-width: 480px) {
    /* Base containers - prevent overflow */
    html, body {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    * {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Wrapper and content containers */
    .wrapper,
    #content,
    .forum-wrapper,
    .forums-background-wrapper {
        width: 100%;
        max-width: 100%;
        padding: 10px;
        margin: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    /* Navbar */
    .sticky-navbar {
        padding: 0 5px;
    }

    .nav-item,
    .nav-left a,
    .nav-right a,
    .nav-welcome a,
    .dropdown-toggle,
    .user-name,
    .site-logo-link {
        font-size: 10px;
    }

    .nav-right {
        gap: 3px;
        padding-right: 5px;
    }

    .nav-left {
        padding-left: 5px;
    }

    .dropdown-toggle {
        padding: 0 3px;
    }

    /* Logo */
    .logo-link {
        top: 80px;
        left: 50%;
        transform: translateX(-50%);
    }

    .logo-link .logo {
        font-size: 36px;
    }

    /* Grids */
    .ooc-dashboard-grid,
    .ooc-forums-grid,
    .ic-forums-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0;
        width: 100%;
    }

    /* Dashboard Cards */
    .ooc-dashboard-card {
        width: 100% !important;
        max-width: 100% !important;
        min-height: auto !important;
        height: auto !important;
        overflow: visible;
    }

    .dashboard-card-header {
        padding: 12px 10px 8px 10px;
        font-size: 14px;
    }

    .dashboard-card-content {
        padding: 10px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    /* OOC Forum Boxes */
    .ooc-forum-box-wrapper {
        width: 100%;
        padding: 0;
    }

    .ooc-forum-box {
        padding: 10px;
    }

    /* IC Forum Boxes */
    .ic-forum-box {
        min-height: 140px;
        width: 100%;
    }

    .ic-forum-box-content {
        top: 5px;
        padding: 8px 10px;
    }

    .ic-forum-box-title {
        font-size: 18px;
    }

    .ic-forum-box-description {
        max-width: 100%;
        font-size: 11px;
    }

    .ic-forum-box-stats {
        font-size: 10px;
    }

    /* Text overflow handling */
    p, span, div, a, li, td, th {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Tables */
    table {
        width: 100% !important;
        table-layout: fixed;
    }

    td, th {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Forum Header */
    .forum-header-section {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }

    .forum-header-section .forum-actions {
        width: 100%;
        margin-top: 15px;
    }

    .forum-header-section .btn-new {
        width: 100%;
    }

    /* Forum Footer */
    .forumdisplay-container .forum-footer .row {
        flex-direction: column;
    }

    .forumdisplay-container .forum-footer .row > div {
        width: 100%;
        margin-bottom: 10px;
    }

    .forumdisplay-container .forum-footer .btn-multipage {
        width: 100%;
    }

    /* Recent Threads */
    .recent-thread-item {
        flex-direction: column;
        gap: 8px;
    }

    .thread-title {
        font-size: 13px;
    }

    .thread-meta {
        font-size: 11px;
    }

    /* Footer */
    div#footer {
        padding: 15px 10px;
    }

    .footer-wrapper {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        width: 100%;
        padding: 0;
        text-align: center;
    }

    /* Alerts and Messages */
    .pm_alert,
    .alert {
        padding: 15px;
        margin: 20px 10px;
        font-size: 14px;
    }

    /* Hide decorative elements on mobile */
    .bg-decorative-spheres,
    .login-orb-1,
    .login-orb-2,
    .login-orb-3 {
        display: none;
    }
}

/* =================================================================
   15. FOOTER STYLES
   ================================================================= */

/* --- Footer Container --- */
div#footer {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 5rem 0 0 0;
    padding: 20px 15px;
    box-sizing: border-box;
    z-index: var(--z-content);
    background: var(--solara-bg-dark);
    border: none;
    border-top: 1px solid rgba(60, 150, 200, 0.15);
    border-radius: 0;
    box-shadow: none;
}

/* --- Footer Typography --- */
div#footer,
div#footer * {
    font-family: var(--font-nav);
    font-style: normal;
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(150, 165, 190, 0.8);
    line-height: 1.8;
}

/* --- Footer Links --- */
div#footer a {
    color: rgba(150, 165, 190, 0.8);
    text-decoration: none;
    transition: all var(--transition-normal);
}

div#footer a:hover {
    color: rgba(200, 215, 235, 0.9);
    text-shadow: 0 0 8px rgba(200, 215, 235, 0.25);
}

/* --- Footer Layout --- */
.footer-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0;
}

.footer-left {
    padding-left: 10px;
    text-align: left;
}

.footer-right {
    padding-right: 10px;
    text-align: right;
}

/* --- Footer Responsive --- */
@media screen and (max-width: 768px) {
    div#footer {
        padding: 15px 10px;
    }

    .footer-wrapper {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        width: 100%;
        padding: 0;
        text-align: center;
    }
}

/* =================================================================
   16. RECENT THREADS DASHBOARD
   ================================================================= */

/* --- Override padding for Recent Threads card (card 4) --- */
.ooc-dashboard-grid > .ooc-dashboard-card:nth-child(4) .dashboard-card-content {
    padding: 15px 8px 15px 12px;
}

/* --- Thread List Container --- */
.recent-threads-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* --- Thread Item --- */
.recent-thread-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.recent-thread-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

/* --- Thread Main Content --- */
.thread-main {
    flex: 1;
    min-width: 0;
}

.thread-title {
    margin-bottom: 4px;
    padding-left: 8px;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.thread-title a {
    color: var(--solara-text-link);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.thread-title a:hover {
    color: var(--solara-primary);
}

.thread-prefix {
    margin-right: 5px;
    font-style: normal;
    font-size: 11px;
}

/* --- Thread Meta --- */
.thread-meta {
    padding-left: 8px;
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--solara-text-muted);
    opacity: 0.8;
}

.thread-meta a {
    color: var(--solara-secondary);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.thread-meta a:hover {
    color: var(--solara-primary);
}

.thread-creator::after {
    content: ' · ';
    opacity: 0.5;
}

/* --- Thread Stats --- */
.thread-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    font-size: 12px;
    color: var(--solara-text-muted);
    opacity: 0.8;
}

.reply-count {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--solara-text-muted);
    opacity: 1;
}

.thread-time {
    margin-top: 2px;
    font-style: italic;
    font-size: 11px;
}

/* --- Last Post By --- */
.lastpost-by {
    font-style: italic;
    font-size: 11px;
}

.lastpost-by a {
    color: var(--solara-secondary);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.lastpost-by a:hover {
    color: var(--solara-primary);
}

/* --- Empty State --- */
.no-threads {
    padding: 20px;
    font-style: italic;
    text-align: center;
    color: var(--solara-text-muted);
    opacity: 0.7;
}

/* =================================================================
   17. LOGIN PAGE
   ================================================================= */

/* --- Login Page Base --- */
body.login-page .sticky-navbar {
    position: fixed;
}

/* --- Login Page Wrapper --- */
.login-page-wrapper {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 40px auto 60px auto;
    padding: 20px;
    box-sizing: border-box;
    overflow: visible;
}

/* --- Decorative Orbs (hidden for performance) --- */
.login-orb,
.login-orb-1,
.login-orb-2,
.login-orb-3 {
    display: none;
}

/* --- Login Card --- */
.login-card {
    position: relative;
    width: 100%;
    padding: 40px;
    z-index: 1;
    background: var(--solara-bg-dark);
    border: 1px solid rgba(49, 40, 119, 0.15);
    border-radius: 0;
    box-shadow: none;
}

.login-card-glow {
    display: none;
}

/* --- Login Header --- */
.login-header {
    margin-bottom: 30px;
    text-align: center;
}

.login-icon {
    margin-bottom: 15px;
    color: var(--solara-secondary);
}

.login-icon svg {
    width: 40px;
    height: 40px;
}

.login-title {
    margin: 0 0 10px 0;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 28px;
    font-weight: 400;
    text-transform: lowercase;
    color: var(--solara-secondary);
}

.login-subtitle {
    font-family: var(--font-body);
    font-size: 13px;
    text-transform: lowercase;
    color: var(--solara-secondary);
    opacity: 0.8;
}

/* --- Login Form --- */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 14px;
    text-transform: lowercase;
    letter-spacing: 0.5px;
    color: var(--solara-secondary);
}

/* --- Input Wrapper --- */
.input-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    font-size: 14px;
    color: var(--solara-secondary);
    opacity: 0.6;
    pointer-events: none;
    transition: all var(--transition-normal);
}

/* --- Input Fields --- */
.login-input {
    width: 100%;
    padding: 12px 15px 12px 42px;
    box-sizing: border-box;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--solara-primary);
    background: rgba(6, 19, 56, 0.5);
    border: var(--panel-border);
    border-radius: 0;
    outline: none;
    transition: all var(--transition-normal);
}

.login-input:focus {
    border-color: rgba(192, 218, 255, 0.3);
    box-shadow: 0 0 15px rgba(192, 218, 255, 0.1);
}

.login-input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
    color: var(--solara-primary);
    opacity: 1;
}

.login-input::placeholder {
    font-family: var(--font-body);
    font-style: italic;
    color: var(--solara-secondary);
    opacity: 0.5;
}

/* --- Autofill Override --- */
.login-input:-webkit-autofill,
.login-input:-webkit-autofill:hover,
.login-input:-webkit-autofill:focus,
.login-input:-webkit-autofill:active,
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px rgba(6, 19, 56, 0.9) inset !important;
    -webkit-text-fill-color: var(--solara-primary) !important;
    font-family: var(--font-body) !important;
    caret-color: var(--solara-primary) !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

/* --- Remember Me Checkbox --- */
.remember-group {
    margin-top: -5px;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: default;
    pointer-events: none;
}

.remember-checkbox {
    display: none;
}

.checkmark {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background: rgba(6, 19, 56, 0.5);
    border: var(--panel-border);
    border-radius: 0;
    transition: all var(--transition-normal);
    pointer-events: auto;
    cursor: pointer;
}

.checkmark::after {
    content: '';
    width: 5px;
    height: 10px;
    margin-bottom: 3px;
    border: solid var(--solara-primary);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.remember-checkbox:checked + .checkmark {
    border-color: rgba(192, 218, 255, 0.3);
}

.remember-checkbox:checked + .checkmark::after {
    opacity: 1;
}

.remember-text {
    font-family: var(--font-body);
    font-size: 14px;
    text-transform: lowercase;
    color: var(--solara-secondary);
}

/* --- Login Button --- */
.login-btn {
    width: 100%;
    padding: 14px 20px;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 16px;
    text-transform: lowercase;
    color: var(--solara-secondary);
    background: rgba(6, 19, 56, 0.5);
    border: var(--panel-border);
    border-radius: 0;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.login-btn:hover {
    color: var(--solara-primary);
    background: rgba(6, 19, 56, 0.7);
    border-color: rgba(192, 218, 255, 0.3);
    text-shadow: 0 0 10px var(--solara-glow), 0 0 20px var(--solara-glow-strong);
}

/* --- Login Divider --- */
.login-divider {
    display: flex;
    align-items: center;
    margin: 10px 0;
    text-align: center;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
}

.login-divider::before {
    background: linear-gradient(to left, rgba(192, 218, 255, 0.2), transparent);
}

.login-divider::after {
    background: linear-gradient(to right, rgba(192, 218, 255, 0.2), transparent);
}

.login-divider span {
    padding: 0 20px;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 13px;
    text-transform: lowercase;
    color: var(--solara-secondary);
    opacity: 0.7;
}

/* --- Login Links --- */
.login-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 15px;
    font-family: var(--font-body);
    font-size: 14px;
    text-decoration: none;
    text-transform: lowercase;
    color: var(--solara-secondary);
    background: rgba(6, 19, 56, 0.5);
    border: var(--panel-border);
    border-radius: 0;
    transition: all var(--transition-normal);
}

.login-link:hover {
    color: var(--solara-primary);
    border-color: rgba(192, 218, 255, 0.3);
    text-shadow: 0 0 10px var(--solara-glow), 0 0 20px var(--solara-glow-strong);
}

.login-link i {
    font-size: 12px;
    opacity: 0.8;
}

/* --- Login Error Messages --- */
.login-page .error {
    margin-bottom: 10px;
    padding: 15px;
    font-family: var(--font-body);
    font-size: 13px;
    text-align: center;
    color: #F87171;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: 0;
}

/* --- Login Responsive --- */
@media screen and (max-width: 480px) {
    .login-page-wrapper {
        margin: 60px auto 40px auto;
        padding: 15px;
    }

    .login-card {
        padding: 30px 25px;
    }

    .login-orb-1,
    .login-orb-2,
    .login-orb-3 {
        display: none;
    }
}

/* --- Alerts (PM & General) --- */
.pm_alert,
.alert:not(.alert-warning) {
    max-width: 1300px;
    margin: 40px auto 30px auto;
    padding: 30px 40px;
    font-family: var(--font-body);
    font-style: italic;
    font-size: 16px;
    text-align: center;
    line-height: 1.6;
    color: var(--solara-primary);
    text-shadow: 0 0 10px var(--solara-glow), 0 0 20px var(--solara-glow-strong);
    background: var(--solara-panel);
    border: var(--panel-border);
    border-radius: 0;
    box-shadow: var(--panel-shadow);
}

/* =================================================================
   18. BOARD CLOSED PAGE
   ================================================================= */

/* --- Bootstrap Container Override for Board Closed --- */
.board-closed-wrapper .container-md {
    max-width: 650px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Board Closed Wrapper (custom template) --- */
.board-closed-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 80px 20px 40px 20px;
}

.board-closed-wrapper .alert {
    width: 600px;
    max-width: 100%;
}

/* --- Board Closed Alert Container --- */
.alert.alert-warning,
.alert.alert-danger {
    max-width: 600px;
    margin: 80px auto 40px auto;
    padding: 30px 35px;
    font-family: var(--font-body);
    font-style: normal;
    font-size: 16px;
    font-weight: 400;
    text-align: left;
    line-height: 1.8;
    color: var(--solara-text-secondary);
    text-shadow: none;
    background: rgb(10, 18, 40);
    border: 1px solid rgba(60, 150, 200, 0.15);
    border-radius: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* --- Alert Typography --- */
.alert.alert-warning,
.alert.alert-warning * {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--solara-secondary);
}

/* --- Alert Heading --- */
.alert.alert-warning .alert-heading {
    margin-bottom: 15px;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 20px;
    font-weight: 400;
    text-transform: lowercase;
    color: var(--solara-primary);
}

/* --- Admin Message --- */
.alert.alert-warning .fw-lighter,
.alert.alert-warning span {
    display: block;
    margin-top: 15px;
    padding: 20px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.7;
    background: rgb(8, 14, 35);
    border-left: 3px solid rgba(60, 150, 200, 0.5);
}

.alert.alert-warning b,
.alert.alert-warning strong {
    font-weight: 600;
    color: var(--solara-primary);
}


/* --- Hide Unnecessary Elements --- */
.alert.alert-warning svg,
.alert.alert-warning .bi-exclamation-triangle {
    display: none;
}

/* --- Alert Divider --- */
.alert.alert-warning hr {
    height: 1px;
    margin: 20px 0;
    background: linear-gradient(90deg,
        rgba(80, 160, 190, 0.35) 0%,
        rgba(80, 160, 190, 0.15) 60%,
        transparent 100%
    );
}

/* --- Board Closed & Alert Boxes Above Spheres --- */
.alert.alert-warning,
.solara-redirect-box,
.login-card,
.forums-background-wrapper,
#content {
    position: relative;
    z-index: 1;
}

/* =================================================================
   19. REDIRECT PAGE
   ================================================================= */

/* --- Fix footer position on redirect page --- */
body.redirect-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.redirect-page #container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

body.redirect-page #hero-overlay {
    display: none;
}

body.redirect-page .banner-divider {
    display: none;
}

/* --- Redirect Wrapper --- */
.solara-redirect-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* --- Redirect Box --- */
.solara-redirect-box {
    max-width: 500px;
    width: 100%;
    padding: 40px;
    text-align: center;
    background: var(--solara-panel);
    border: var(--panel-border);
    border-radius: 0;
    box-shadow: var(--panel-shadow);
}

/* --- Redirect Text --- */
.redirect-text {
    margin-bottom: 25px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--solara-text-secondary);
    line-height: 1.6;
}

/* --- Redirect Skip Link --- */
.redirect-link {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 14px;
    text-transform: lowercase;
}

.redirect-link a {
    color: var(--solara-text-link);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.redirect-link a:hover {
    color: var(--solara-primary);
    text-shadow: 0 0 10px var(--solara-glow), 0 0 20px var(--solara-glow-strong);
}

/* --- Responsive --- */
@media screen and (max-width: 480px) {
    .solara-redirect-box {
        padding: 30px 20px;
    }
    
    .redirect-text {
        font-size: 14px;
    }
}

/* =================================================================
   20. FORUMS BACKGROUND WRAPPER
   ================================================================= */

.forums-background-wrapper {
    position: relative;
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    padding: 0 25px 25px 25px;
    box-sizing: border-box;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.forums-background-wrapper > * {
    position: relative;
    z-index: 1;
}

/* --- Inner Containers Transparent --- */
.forums-background-wrapper .ooc-dashboard,
.forums-background-wrapper .ooc-forums-section,
.forums-background-wrapper .ic-forums-section {
    background: transparent;
    border: none;
    box-shadow: none;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.forums-background-wrapper .ooc-forums-section {
    margin-top: 0;
}

.forums-background-wrapper .ooc-forums-grid {
    padding: 20px 0;
}

/* --- Dividers Inside Wrapper --- */
.forums-background-wrapper .ooc-forum-divider,
.forums-background-wrapper .ic-forum-divider {
    position: relative;
    max-width: 100%;
    margin: 0;
    padding: 0 20px 20px 20px;
    background: transparent;
    border: none;
    text-align: center;
}

.forums-background-wrapper .ooc-forum-divider::after,
.forums-background-wrapper .ic-forum-divider::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(60, 150, 200, 0.25) 20%,
        rgba(60, 150, 200, 0.4) 50%,
        rgba(60, 150, 200, 0.25) 80%,
        transparent 100%
    );
}

.forums-background-wrapper .ooc-forum-divider .ooc-divider-text,
.forums-background-wrapper .ic-forum-divider .ooc-divider-text {
    margin: 0;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 20px;
    font-weight: 400;
    text-transform: lowercase;
    letter-spacing: 3px;
    color: rgba(140, 155, 180, 0.85);
}

/* --- Middle Quote --- */
.middle-quote {
    padding: 50px 20px 30px 20px;
    text-align: center;
}

.middle-quote .quote-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 800px;
    margin: 0 auto;
}

.middle-quote .quote-text {
    font-family: var(--font-logo);
    font-size: 26px;
    color: rgba(77, 181, 248, 0.7);
    text-shadow: 0 0 12px rgba(77, 181, 248, 0.25);
    letter-spacing: 2px;
    line-height: 1.2;
}

/* --- IC Forums Section --- */
.forums-background-wrapper .ic-forums-section {
    padding-bottom: 20px;
}

.forums-background-wrapper .ic-category-divider {
    margin-top: 25px;
    padding-left: 10px;
}

.forums-background-wrapper .ic-forums-grid {
    padding-top: 15px;
}

/* --- Welcome Quote Inside Wrapper --- */
.forums-background-wrapper .welcome-quote {
    margin-top: 0;
    margin-bottom: 0;
    padding: 70px 20px 30px 20px;
}

/* --- Icon Accent Colors --- */
.icon-pin,
.dashboard-card-header i,
.ic-category-divider i,
.ooc-dashboard-card i,
.ooc-dashboard-card .fa-solid,
.ooc-dashboard-card .fas,
.sticky-navbar svg {
    color: rgba(60, 150, 200, 0.6);
    fill: rgba(60, 150, 200, 0.6);
}

/* =================================================================
   21. DECORATIVE BACKGROUND SPHERES
   ================================================================= */

.bg-decorative-spheres {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.bg-sphere {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

/* Top-left subtle glow */
.bg-sphere-1 {
    width: 120px;
    height: 120px;
    top: 15%;
    left: 8%;
    background: radial-gradient(circle, rgba(100, 90, 160, 0.55) 0%, transparent 70%);
}

/* Top-right cyan accent */
.bg-sphere-2 {
    width: 100px;
    height: 100px;
    top: 20%;
    right: 12%;
    background: radial-gradient(circle, rgba(77, 181, 248, 0.45) 0%, transparent 70%);
}

/* Mid-left purple */
.bg-sphere-3 {
    width: 140px;
    height: 140px;
    top: 45%;
    left: 5%;
    background: radial-gradient(circle, rgba(49, 40, 119, 0.6) 0%, transparent 70%);
}

/* Mid-right small */
.bg-sphere-4 {
    width: 80px;
    height: 80px;
    top: 55%;
    right: 8%;
    background: radial-gradient(circle, rgba(77, 181, 248, 0.4) 0%, transparent 70%);
}

/* Bottom-center */
.bg-sphere-5 {
    width: 150px;
    height: 150px;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(80, 100, 140, 0.6) 0%, transparent 70%);
}

/* Bottom-left accent */
.bg-sphere-6 {
    width: 100px;
    height: 100px;
    bottom: 15%;
    left: 15%;
    background: radial-gradient(circle, rgba(60, 90, 160, 0.45) 0%, transparent 70%);
}

/* =================================================================
   22. MINI PROFILE CARDS
   ================================================================= */

/* --- Mini Profile Card Container --- */
.mini-profile-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 220px;
    padding: 20px 15px;
    background: linear-gradient(
        180deg,
        rgba(6, 19, 56, 0.85) 0%,
        rgba(4, 12, 38, 0.95) 100%
    );
    border: 1px solid rgba(100, 180, 220, 0.1);
    border-radius: 0;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(100, 180, 220, 0.05);
    transition: all var(--transition-normal);
}

.mini-profile-card:hover {
    border-color: rgba(100, 180, 220, 0.2);
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(77, 181, 248, 0.08),
        inset 0 1px 0 rgba(100, 180, 220, 0.1);
}

/* --- Ethereal Glow Effect (optional accent) --- */
.mini-profile-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(77, 181, 248, 0.4) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.mini-profile-card:hover::before {
    opacity: 1;
}

/* --- Avatar Container --- */
.mini-profile-avatar {
    position: relative;
    margin-bottom: 12px;
}

.mini-profile-avatar img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border: 1px solid rgba(100, 180, 220, 0.15);
    border-radius: 0;
    transition: all var(--transition-normal);
}

.mini-profile-card:hover .mini-profile-avatar img {
    border-color: rgba(100, 180, 220, 0.3);
    box-shadow: 0 0 15px rgba(77, 181, 248, 0.15);
}

/* --- Circular Avatar Variant --- */
.mini-profile-avatar--circle img {
    border-radius: 50%;
}

/* --- Online Status Indicator --- */
.mini-profile-avatar .online-status {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 12px;
    height: 12px;
    background: rgba(74, 200, 140, 0.8);
    border: 2px solid rgba(6, 13, 42, 0.95);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(74, 200, 140, 0.5);
}

.mini-profile-avatar .online-status--offline {
    background: rgba(100, 110, 130, 0.6);
    box-shadow: none;
}

.mini-profile-avatar .online-status--away {
    background: rgba(248, 210, 160, 0.8);
    box-shadow: 0 0 8px rgba(248, 210, 160, 0.4);
}

/* --- Username --- */
.mini-profile-username {
    margin-bottom: 4px;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 16px;
    font-weight: 400;
    text-transform: lowercase;
    text-align: center;
    color: var(--solara-primary);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.mini-profile-username:hover {
    color: var(--solara-text-primary);
    text-shadow: 0 0 12px var(--solara-glow);
}

a.mini-profile-username {
    cursor: crosshair;
}

/* --- User Title/Rank --- */
.mini-profile-title {
    margin-bottom: 10px;
    font-family: var(--font-body);
    font-style: italic;
    font-size: 11px;
    text-transform: lowercase;
    letter-spacing: 0.5px;
    text-align: center;
    color: var(--solara-text-muted);
}

/* --- Character Name (for RPG profiles) --- */
.mini-profile-character {
    font-family: var(--font-logo);
    font-size: 14px;
    color: rgba(77, 181, 248, 0.75);
    text-shadow: 0 0 8px rgba(77, 181, 248, 0.2);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

/* --- Divider --- */
.mini-profile-divider {
    width: 60%;
    height: 1px;
    margin: 10px 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(100, 180, 220, 0.2) 50%,
        transparent 100%
    );
}

/* --- Stats Grid --- */
.mini-profile-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    width: 100%;
    margin: 8px 0;
}

.mini-profile-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 45px;
}

.mini-profile-stat-value {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 16px;
    color: var(--solara-text-primary);
    line-height: 1.2;
}

.mini-profile-stat-label {
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--solara-text-muted);
}

/* --- Character Details (Quote/Lyric) --- */
.mini-profile-quote {
    width: 100%;
    padding: 8px 5px;
    margin-top: 8px;
    font-family: var(--font-body);
    font-style: italic;
    font-size: 10px;
    text-align: center;
    color: var(--solara-text-muted);
    line-height: 1.5;
    border-top: 1px solid var(--solara-border-subtle);
}

/* --- Character Info Rows --- */
.mini-profile-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--solara-border-subtle);
}

.mini-profile-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-body);
    font-size: 11px;
}

.mini-profile-info-label {
    font-style: italic;
    text-transform: lowercase;
    color: var(--solara-text-muted);
}

.mini-profile-info-value {
    color: var(--solara-text-secondary);
}

/* --- Social/Contact Links --- */
.mini-profile-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}

.mini-profile-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--solara-text-muted);
    background: rgba(6, 19, 56, 0.6);
    border: 1px solid rgba(100, 180, 220, 0.1);
    border-radius: 0;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.mini-profile-link:hover {
    color: var(--solara-primary);
    background: rgba(6, 19, 56, 0.8);
    border-color: rgba(100, 180, 220, 0.25);
    box-shadow: 0 0 10px rgba(77, 181, 248, 0.15);
}

.mini-profile-link i,
.mini-profile-link svg {
    font-size: 12px;
    width: 12px;
    height: 12px;
}

/* --- Compact Variant (smaller card) --- */
.mini-profile-card--compact {
    max-width: 180px;
    padding: 15px 12px;
}

.mini-profile-card--compact .mini-profile-avatar img {
    width: 70px;
    height: 70px;
}

.mini-profile-card--compact .mini-profile-username {
    font-size: 14px;
}

.mini-profile-card--compact .mini-profile-stat-value {
    font-size: 14px;
}

/* --- Horizontal Variant (side-by-side layout) --- */
.mini-profile-card--horizontal {
    flex-direction: row;
    max-width: 350px;
    gap: 15px;
    text-align: left;
}

.mini-profile-card--horizontal .mini-profile-avatar {
    margin-bottom: 0;
    flex-shrink: 0;
}

.mini-profile-card--horizontal .mini-profile-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

.mini-profile-card--horizontal .mini-profile-username,
.mini-profile-card--horizontal .mini-profile-title {
    text-align: left;
}

.mini-profile-card--horizontal .mini-profile-stats {
    justify-content: flex-start;
}

/* --- Inline Variant (minimal, for lists) --- */
.mini-profile-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(6, 19, 56, 0.6);
    border: 1px solid rgba(100, 180, 220, 0.08);
    border-radius: 0;
    transition: all var(--transition-normal);
}

.mini-profile-inline:hover {
    background: rgba(6, 19, 56, 0.8);
    border-color: rgba(100, 180, 220, 0.15);
}

.mini-profile-inline .mini-profile-avatar {
    margin-bottom: 0;
}

.mini-profile-inline .mini-profile-avatar img {
    width: 36px;
    height: 36px;
}

.mini-profile-inline .mini-profile-username {
    margin-bottom: 0;
    font-size: 13px;
}

.mini-profile-inline .mini-profile-title {
    margin-bottom: 0;
    font-size: 10px;
}

/* --- Hover Card (Popup Style) --- */
.mini-profile-hover-card {
    position: absolute;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition:
        opacity var(--transition-normal),
        visibility var(--transition-normal),
        transform var(--transition-normal);
}

.mini-profile-hover-card.active,
.mini-profile-trigger:hover + .mini-profile-hover-card,
.mini-profile-hover-card:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- Grid Layout for Multiple Cards --- */
.mini-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.mini-profile-grid--compact {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}

/* --- Postbit Integration (for forum posts) --- */
.postbit .mini-profile-card {
    max-width: none;
    width: 100%;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(100, 180, 220, 0.08);
    background: transparent;
    box-shadow: none;
}

.postbit .mini-profile-card:hover {
    box-shadow: none;
}

/* --- Who's Online Integration --- */
.whos-online .mini-profile-inline {
    margin-bottom: 5px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .mini-profile-card {
        max-width: 100%;
    }

    .mini-profile-card--horizontal {
        flex-direction: column;
        text-align: center;
    }

    .mini-profile-card--horizontal .mini-profile-content {
        align-items: center;
    }

    .mini-profile-card--horizontal .mini-profile-username,
    .mini-profile-card--horizontal .mini-profile-title {
        text-align: center;
    }

    .mini-profile-card--horizontal .mini-profile-stats {
        justify-content: center;
    }

    .mini-profile-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

/* =================================================================
   22b. OOC MINI PROFILE CARDS (Player Profiles)
   ================================================================= */

/* --- OOC Card Base --- */
.mini-profile-card--ooc {
    border-left: 2px solid rgba(154, 168, 196, 0.3);
}

.mini-profile-card--ooc:hover {
    border-left-color: rgba(154, 168, 196, 0.5);
}

/* --- OOC Badge/Label --- */
.mini-profile-ooc-badge {
    display: inline-block;
    padding: 2px 8px;
    margin-bottom: 8px;
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--solara-secondary);
    background: rgba(154, 168, 196, 0.1);
    border: 1px solid rgba(154, 168, 196, 0.2);
    border-radius: 0;
}

/* --- OOC Username Styling --- */
.mini-profile-card--ooc .mini-profile-username {
    color: var(--solara-secondary);
}

.mini-profile-card--ooc .mini-profile-username:hover {
    color: var(--solara-text-primary);
    text-shadow: 0 0 12px rgba(154, 168, 196, 0.4);
}

/* --- OOC Stats (Posts, Threads, Joined Date, etc) --- */
.mini-profile-ooc-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--solara-border-subtle);
}

.mini-profile-ooc-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-body);
    font-size: 11px;
}

.mini-profile-ooc-stat-row .label {
    font-style: italic;
    text-transform: lowercase;
    color: var(--solara-text-muted);
}

.mini-profile-ooc-stat-row .value {
    color: var(--solara-text-secondary);
}

/* --- OOC Characters List (characters played by this player) --- */
.mini-profile-ooc-characters {
    width: 100%;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--solara-border-subtle);
}

.mini-profile-ooc-characters-label {
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--solara-text-muted);
    margin-bottom: 6px;
    text-align: center;
}

.mini-profile-ooc-characters-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.mini-profile-ooc-character-link {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 11px;
    color: rgba(77, 181, 248, 0.7);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.mini-profile-ooc-character-link:hover {
    color: var(--solara-primary);
    text-shadow: 0 0 8px rgba(77, 181, 248, 0.3);
}

/* =================================================================
   22c. IC MINI PROFILE CARDS (Character Profiles)
   ================================================================= */

/* --- IC Card Base --- */
.mini-profile-card--ic {
    border-left: 2px solid rgba(77, 181, 248, 0.3);
}

.mini-profile-card--ic:hover {
    border-left-color: rgba(77, 181, 248, 0.5);
}

/* --- IC Badge/Label --- */
.mini-profile-ic-badge {
    display: inline-block;
    padding: 2px 8px;
    margin-bottom: 8px;
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(77, 181, 248, 0.8);
    background: rgba(77, 181, 248, 0.1);
    border: 1px solid rgba(77, 181, 248, 0.2);
    border-radius: 0;
}

/* --- IC Character Name (Primary Display) --- */
.mini-profile-card--ic .mini-profile-username {
    font-family: var(--font-logo);
    font-style: normal;
    font-size: 18px;
    text-transform: none;
    color: rgba(77, 181, 248, 0.85);
    text-shadow: 0 0 10px rgba(77, 181, 248, 0.2);
    letter-spacing: 1px;
}

.mini-profile-card--ic .mini-profile-username:hover {
    color: var(--solara-primary);
    text-shadow: 0 0 15px rgba(77, 181, 248, 0.4);
}

/* --- IC Lyric/Signature Section --- */
.mini-profile-ic-lyric {
    width: 100%;
    padding: 10px 8px;
    margin: 10px 0;
    font-family: var(--font-body);
    font-style: italic;
    font-size: 11px;
    text-align: center;
    color: var(--solara-text-muted);
    line-height: 1.6;
    background: rgba(6, 13, 42, 0.4);
    border-left: 2px solid rgba(77, 181, 248, 0.2);
    border-radius: 0 2px 2px 0;
}

.mini-profile-ic-lyric::before {
    content: '"';
    font-family: var(--font-heading);
    font-size: 16px;
    color: rgba(77, 181, 248, 0.4);
    margin-right: 2px;
}

.mini-profile-ic-lyric::after {
    content: '"';
    font-family: var(--font-heading);
    font-size: 16px;
    color: rgba(77, 181, 248, 0.4);
    margin-left: 2px;
}

/* --- IC Character Stats Container --- */
.mini-profile-ic-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--solara-border-subtle);
}

/* --- IC Stat Row (Sex, Age, Size, etc) --- */
.mini-profile-ic-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-family: var(--font-body);
    font-size: 11px;
}

.mini-profile-ic-stat .stat-label {
    font-style: italic;
    text-transform: lowercase;
    color: var(--solara-text-muted);
}

.mini-profile-ic-stat .stat-value {
    color: var(--solara-text-secondary);
    text-align: right;
}

/* --- Sex Field --- */
.mini-profile-ic-sex .stat-value {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mini-profile-ic-sex .stat-value i,
.mini-profile-ic-sex .stat-value svg {
    font-size: 10px;
    color: rgba(77, 181, 248, 0.6);
}

/* --- Age Field --- */
.mini-profile-ic-age .stat-value {
    font-style: italic;
}

/* --- Size & Height Field --- */
.mini-profile-ic-size .stat-value {
    font-size: 10px;
}

/* --- Talents & Level Section --- */
.mini-profile-ic-talents {
    width: 100%;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--solara-border-subtle);
}

.mini-profile-ic-talents-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.mini-profile-ic-talents-label {
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--solara-text-muted);
}

.mini-profile-ic-level {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 12px;
    color: rgba(77, 181, 248, 0.8);
}

.mini-profile-ic-level-number {
    font-size: 14px;
    color: var(--solara-primary);
    text-shadow: 0 0 8px rgba(77, 181, 248, 0.3);
}

/* --- Talents List --- */
.mini-profile-ic-talents-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.mini-profile-ic-talent {
    display: inline-block;
    padding: 3px 8px;
    font-family: var(--font-body);
    font-style: italic;
    font-size: 10px;
    color: var(--solara-text-secondary);
    background: rgba(6, 19, 56, 0.6);
    border: 1px solid rgba(100, 180, 220, 0.1);
    border-radius: 0;
    transition: all var(--transition-normal);
}

.mini-profile-ic-talent:hover {
    background: rgba(6, 19, 56, 0.8);
    border-color: rgba(100, 180, 220, 0.2);
    color: var(--solara-primary);
}

/* --- Talent with Level/Rank --- */
.mini-profile-ic-talent .talent-level {
    margin-left: 4px;
    font-size: 9px;
    color: rgba(77, 181, 248, 0.7);
}

/* --- Player Link (who plays this character) --- */
.mini-profile-ic-player {
    width: 100%;
    margin-top: 12px;
    padding-top: 10px;
    text-align: center;
    border-top: 1px solid var(--solara-border-subtle);
}

.mini-profile-ic-player-label {
    font-family: var(--font-body);
    font-size: 9px;
    font-style: italic;
    text-transform: lowercase;
    color: var(--solara-text-muted);
}

.mini-profile-ic-player-link {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 11px;
    color: var(--solara-secondary);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.mini-profile-ic-player-link:hover {
    color: var(--solara-text-primary);
    text-shadow: 0 0 8px rgba(154, 168, 196, 0.3);
}

/* --- IC Divider with Decorative Element --- */
.mini-profile-ic-divider {
    position: relative;
    width: 80%;
    height: 1px;
    margin: 12px 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(77, 181, 248, 0.25) 50%,
        transparent 100%
    );
}

.mini-profile-ic-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: rgba(77, 181, 248, 0.4);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(77, 181, 248, 0.3);
}

/* --- Responsive: IC/OOC Cards --- */
@media (max-width: 768px) {
    .mini-profile-ic-stat {
        font-size: 10px;
    }

    .mini-profile-ic-talents-list {
        gap: 4px;
    }

    .mini-profile-ic-talent {
        font-size: 9px;
        padding: 2px 6px;
    }
}

/* =================================================================
   22d. POSTBIT MINI PROFILE (Large Avatar + Grid Layout)
   Nocturne-inspired layout - no card wrapper
   ================================================================= */

/* --- Postbit Profile Container (no card) --- */
.postbit-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0;
    text-align: center;
}

/* --- Large Avatar (Volonte-style, large portrait) --- */
.postbit-profile .postbit-avatar {
    width: 250px;
    height: 375px;
    margin-bottom: 15px;
    overflow: hidden;
}

.postbit-profile .postbit-avatar img,
.postbit-profile .postbit-avatar .postbit-avatar-img,
.postbit-avatar-img {
    width: 250px;
    height: 375px;
    object-fit: cover;
    border: 1px solid rgba(100, 180, 220, 0.15);
    border-radius: 0;
    transition: all var(--transition-normal);
}

.postbit-profile .postbit-avatar img:hover,
.postbit-avatar-img:hover {
    border-color: rgba(100, 180, 220, 0.3);
    box-shadow: 0 0 20px rgba(77, 181, 248, 0.15);
}

/* Mobile avatar */
.postbit-avatar-img-mobile {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
}

/* --- Character Name (Playfair italic lowercase) --- */
.postbit-profile .postbit-name {
    width: 250px;
    margin-bottom: 2px;
    padding: 0;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 18px;
    text-transform: lowercase;
    color: var(--solara-primary);
    text-shadow: 0 0 10px rgba(77, 181, 248, 0.2);
    letter-spacing: 0.5px;
}

.postbit-profile .postbit-name a {
    color: inherit;
    text-decoration: none;
}

.postbit-profile .postbit-name a:hover {
    color: var(--solara-text-primary);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* --- User Title / Group --- */
.postbit-profile .postbit-title {
    margin-bottom: 10px;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 12px;
    color: rgba(77, 181, 248, 0.8);
    text-transform: lowercase;
    letter-spacing: 0.5px;
}

/* --- Lyric/Quote Section (compact) --- */
.postbit-profile .postbit-lyric {
    width: 250px;
    padding: 8px 10px;
    margin-bottom: 10px;
    font-family: var(--font-body);
    font-style: italic;
    font-size: 10px;
    text-align: center;
    color: var(--solara-text-muted);
    line-height: 1.4;
    background: rgba(6, 13, 42, 0.5);
    border-top: 1px solid rgba(100, 180, 220, 0.1);
    border-bottom: 1px solid rgba(100, 180, 220, 0.1);
}

/* --- Stats Grid Container (2 column grid) --- */
.postbit-profile .postbit-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    width: 250px;
    background: rgba(100, 180, 220, 0.1);
    border: 1px solid rgba(100, 180, 220, 0.1);
    border-radius: 0;
    overflow: hidden;
}

/* --- Single Stat Cell (grid cell) --- */
.postbit-profile .postbit-stat-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
    background: rgba(6, 13, 42, 0.7);
    text-align: center;
}

/* --- Full Width Stat Cell (spans 2 columns) --- */
.postbit-profile .postbit-stat-cell--full {
    grid-column: span 2;
}

/* --- Stat Label (grid - on top) --- */
.postbit-profile .postbit-stat-label {
    font-family: var(--font-nav);
    font-style: normal;
    font-size: 8px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(150, 165, 190, 0.8);
    line-height: 1;
    margin-bottom: 3px;
}

/* --- Stat Value (grid - below label) --- */
.postbit-profile .postbit-stat-value {
    font-family: var(--font-nav);
    font-style: normal;
    font-size: 11px;
    font-weight: 400;
    color: var(--solara-text-secondary);
    line-height: 1;
    text-align: center;
}

/* --- Highlighted Stat Value --- */
.postbit-profile .postbit-stat-value--highlight {
    color: var(--solara-primary);
    font-weight: 500;
}

/* --- Talents Row (compact) --- */
.postbit-profile .postbit-talents-row {
    grid-column: span 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: rgba(6, 13, 42, 0.8);
}

.postbit-profile .postbit-talents-label {
    font-family: var(--font-nav);
    font-style: normal;
    font-size: 9px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(150, 165, 190, 0.8);
}

.postbit-profile .postbit-talents-value {
    font-family: var(--font-nav);
    font-style: italic;
    font-size: 10px;
    color: var(--solara-text-secondary);
}

.postbit-profile .postbit-level {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 11px;
    color: rgba(77, 181, 248, 0.9);
}

.postbit-profile .postbit-level-number {
    font-size: 12px;
    color: var(--solara-text-secondary);
}

/* --- Action Buttons Row --- */
.postbit-profile .postbit-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(100, 180, 220, 0.1);
}

.postbit-profile .postbit-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--solara-text-muted);
    background: rgba(6, 19, 56, 0.5);
    border: 1px solid rgba(100, 180, 220, 0.1);
    border-radius: 0;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.postbit-profile .postbit-action-btn:hover {
    color: var(--solara-primary);
    background: rgba(6, 19, 56, 0.8);
    border-color: rgba(100, 180, 220, 0.25);
}

/* --- OOC Variant --- */
.postbit-profile--ooc .postbit-name {
    color: var(--solara-secondary);
    text-shadow: none;
}

.postbit-profile--ooc .postbit-title {
    color: var(--solara-text-muted);
}

/* --- Responsive --- */
@media (max-width: 1200px) {
    .postbit-profile {
        max-width: 300px;
    }

    .postbit-profile .postbit-avatar {
        width: 300px;
    }

    .postbit-profile .postbit-avatar img {
        width: 300px;
        height: 430px;
    }

    .postbit-profile .postbit-name,
    .postbit-profile .postbit-lyric,
    .postbit-profile .postbit-stats-grid {
        width: 160px;
    }
}

@media (max-width: 992px) {
    .postbit-profile {
        max-width: 240px;
    }

    .postbit-profile .postbit-avatar {
        width: 220px;
    }

    .postbit-profile .postbit-avatar img {
        width: 220px;
        height: 315px;
    }

    .postbit-profile .postbit-name,
    .postbit-profile .postbit-lyric,
    .postbit-profile .postbit-stats-grid {
        width: 150px;
    }

    .postbit-profile .postbit-name {
        font-size: 14px;
    }

    .postbit-profile .postbit-stat-cell {
        padding: 6px 4px;
    }

    .postbit-profile .postbit-stat-label {
        font-size: 8px;
        letter-spacing: 0.5px;
    }

    .postbit-profile .postbit-stat-value {
        font-size: 9px;
    }
}