/* ==========================================
   COLOR PALETTE & THEME VARIABLES
   ========================================== */
:root {
    /* Dark Mode Defaults */
    --bg-color: #121212;
    --card-bg: #1a1a20;
    --text-color: #ffffff;
    --text-muted: #a0a0ab;
    --nav-bg: rgba(30, 30, 36, 0.45);
    --btn-bg: rgba(255, 255, 255, 0.12);
    --btn-text: #e0e0e0;
    --border-color: rgba(255, 255, 255, 0.3);
    --ad-bg: #222222;
    --ad-border: #333333;
    --sub-box-bg: #0e0e12;
}

/* Light Mode Overrides */
body.light-mode {
    --bg-color: #f4f4f9;
    --card-bg: #ffffff;
    --text-color: #121212;
    --text-muted: #555560;
    --nav-bg: rgba(230, 235, 245, 0.5);
    --btn-bg: rgba(255, 255, 255, 0.4);
    --btn-text: #121212;
    --border-color: rgba(255, 255, 255, 0.6);
    --ad-bg: #e8e8e8;
    --ad-border: #cccccc;
    --sub-box-bg: #f0f0f5;
}

/* ==========================================
   BASE STYLES
   ========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html {
    background-color: var(--bg-color);
    min-height: 100%;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-color);
    text-align: center;
    min-height: 100vh;
    transition: background-image 0.4s ease;
}

/* Background image classes */
body.bg-light {
    background-image: url('bglight.png');
}

body.bg-dark {
    background-image: url('bgdark.png');
}

body.bg-night {
    background-image: url('bgnight.png');
}

/* ==========================================
   LAYOUT CONTAINERS & WRAPPERS
   ========================================== */
.site-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

/* Header & Banner */
.header-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.banner-img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    display: block;
}

/* ==========================================
   AERO GLASS NAVIGATION BAR
   ========================================== */
.nav-strip {
    width: 100%;
    max-width: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    position: relative;

    /* Aero Glass Frosted Transparency & Diagonal Light Sheen */
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0) 51%),
        var(--nav-bg);

    /* Hardware-Accelerated Gaussian Blur */
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);

    /* Aero Glass Border Bevels */
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 0 0 8px 8px;

    /* Inset Glass Highlights & Outer Depth Shadow */
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2),
        0 6px 18px rgba(0, 0, 0, 0.35);
}

.settings-btn {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
}

.settings-icon-img {
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
}

/* Aero Glass Navigation Buttons */
.nav-btn {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(0, 0, 0, 0.15) 100%);
    color: var(--btn-text);
    text-decoration: none;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: normal;
    border-radius: 5px;
    
    display: inline-flex;
    align-items: center;
    gap: 6px;
    
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 2px 4px rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease-in-out;
}

.nav-btn-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.5));
}

.nav-btn:hover {
    background: linear-gradient(180deg, rgba(0, 150, 255, 0.6) 0%, rgba(0, 112, 243, 0.4) 50%, rgba(0, 80, 200, 0.7) 100%);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 0 10px rgba(0, 112, 243, 0.6);
}

.nav-btn.active {
    background: linear-gradient(180deg, rgba(0, 140, 255, 0.8) 0%, rgba(0, 90, 220, 0.6) 50%, rgba(0, 60, 180, 0.9) 100%);
    color: #ffffff;
    border-color: #70b0ff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 12px rgba(0, 112, 243, 0.8);
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: normal;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease-in-out;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ==========================================
   PAGE LAYOUT & FLOATING AD SIDEBAR
   ========================================== */
.page-layout {
    width: 100%;
    margin-top: 20px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

/* Allow .content to shrink so sidebar can fit next to it */
.content {
    flex: 1;
    min-width: 0; /* Prevents iframe/large content from breaking the flex layout */
    text-align: left;
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 6px;
}

/* Custom layout adjustments for the game container to fill available width */
.game-play-wrapper {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    width: 100%;
}

.game-player-container {
    width: 100%;
    max-width: 100%; /* Allows it to expand within the flex container */
    aspect-ratio: 4 / 3;
    margin: 0 auto;
    background-color: #000000;
    border-radius: 8px;
    overflow: hidden;
}

.ad-sidebar {
    position: absolute;
    top: 230px;
    right: -220px;
    width: 200px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ad-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--ad-bg);
    border: 1px solid var(--ad-border);
    border-radius: 6px;
    overflow: hidden;
}

.ad-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ==========================================
   FORUM DROPDOWN / ACCORDION STYLES
   ========================================== */
.forum-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.forum-accordion {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

summary.forum-header {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    text-align: left !important;
    background-color: var(--btn-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px 20px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

summary.forum-header::-webkit-details-marker {
    display: none;
}

summary.forum-header:hover {
    background-color: var(--nav-bg);
    border-color: #0070f3;
}

.topic-icon {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.header-text {
    text-align: left !important;
}

.forum-header .header-text h2 {
    font-size: 1.25rem;
    font-weight: normal;
    margin-bottom: 4px;
    color: var(--text-color);
}

.forum-header .header-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

summary.forum-header .chevron {
    width: 14px;
    height: 14px;
    border-right: 2px solid var(--text-color);
    border-bottom: 2px solid var(--text-color);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-left: auto !important;
}

.forum-accordion[open] .chevron {
    transform: rotate(-135deg);
}

.sub-category-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    background-color: var(--sub-box-bg);
    border: 1px solid var(--border-color);
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* ==========================================
   SUB-CATEGORY CARD
   ========================================== */
.sub-category-list a.sub-category-card {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 16px !important;
    text-align: left !important;
    background-color: #2b2b30;
    border: none;
    border-top: 1px solid #3f3f46;
    border-radius: 6px;
    padding: 10px 16px;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.sub-category-card:hover {
    background-color: #323238;
    border-top-color: #52525b;
    transform: none;
}

.sub-cat-icon {
    width: 38px;
    height: 38px;
    object-fit: contain;
    background-color: #ffffff;
    border-radius: 6px;
    padding: 2px;
    flex-shrink: 0;
    background: transparent;
}

/* Light Mode Override */
body.light-mode .sub-category-list a.sub-category-card {
    background-color: #f1f1f5 !important;
    color: #121212 !important;
    border-top: 1px solid #ffffff !important;
    border-bottom: 1px solid #d0d0d8 !important;
}

body.light-mode .sub-category-list a.sub-category-card:hover {
    background-color: #e5e5eb !important;
}

/* ==========================================
   THREAD PAGE & POST STYLES
   ========================================== */
.thread-header-bar {
    display: flex;
    align-items: center;
    background-color: var(--btn-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 20px;
}

.thread-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.thread-header-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    margin: 0;
}

.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.close-icon-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
}

.back-btn:hover {
    transform: scale(1);
}

.close-x {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: normal;
    line-height: 1;
}

.thread-title {
    font-size: 1.75rem;
    font-weight: normal;
    margin: 0;
    line-height: 1;
    color: var(--text-color);
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.post-card {
    background-color: var(--btn-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px 20px;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.post-avatar {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
}

.post-username {
    font-size: 1rem;
    font-weight: normal;
    color: var(--text-color);
}

.post-body {
    padding-left: 42px;
}

.post-text {
    font-size: 1rem;
    margin-bottom: 12px;
    line-height: 1.4;
    word-break: break-word;
    color: var(--text-color);
}

/* ==========================================
   TOP RED ACCOUNT BAR (GLOSSY AERO STYLE)
   ========================================== */
.top-account-bar {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px;
    box-sizing: border-box;

    background: linear-gradient(
        180deg, 
        #d90000 0%, 
        #b80000 48%, 
        #700000 50%, 
        #9e0000 100%
    );

    box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.6), 0 2px 5px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid #4a0000;
}

.auth-buttons {
    display: flex;
    gap: 12px;
}

.auth-btn {
    background: linear-gradient(180deg, rgba(140, 0, 0, 0.8) 0%, rgba(80, 0, 0, 0.9) 100%);
    color: #ffffff;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    border: 1px solid rgba(255, 150, 150, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    transition: all 0.2s ease;
}

.auth-btn:hover {
    background: linear-gradient(180deg, rgba(180, 0, 0, 0.9) 0%, rgba(110, 0, 0, 0.95) 100%);
    border-color: rgba(255, 200, 200, 0.7);
    transform: translateY(-1px);
}

/* ==========================================
   LOGGED-IN USER BADGE
   ========================================== */
.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(60, 0, 0, 0.6);
    padding: 6px 16px;
    border-radius: 6px;
    border: 1px solid rgba(255, 150, 150, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.username-display {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: normal;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
    background-color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.logout-btn {
    background: none;
    border: none;
    color: #ffaaaa;
    font-size: 1rem;
    cursor: pointer;
    margin-left: 5px;
    padding: 0 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.logout-btn:hover {
    color: #ffffff;
}

/* ==========================================
   FORUM THREAD & REPLY BOX STYLES
   ========================================== */
.forum-thread-wrapper {
    width: 100%;
}

.reply-box {
    background-color: var(--btn-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 14px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reply-input-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.user-badge-small {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 75px;
}

.reply-avatar {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    object-fit: cover;
    background-color: #333333;
}

.reply-username {
    color: var(--text-color);
    font-weight: normal;
    font-size: 0.95rem;
}

.reply-box textarea {
    flex: 1;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px;
    outline: none;
    color: var(--text-color);
    font-size: 0.95rem;
    resize: vertical;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.reply-box textarea::placeholder {
    color: var(--text-muted);
}

.attachment-row {
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}

.attach-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
}

.attach-btn:hover {
    color: var(--text-color);
}

.file-icon-img {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain;
}

.file-name-text {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.send-post-btn {
    margin-left: auto;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    font-weight: normal;
    cursor: pointer;
}

.send-post-btn:hover {
    background-color: #0056b3;
}

.empty-posts-notice {
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* ==========================================
   SETTINGS PROFILE SECTION
   ========================================== */
.settings-section {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.avatar-preview-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
}

.settings-avatar-preview {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.upload-btn {
    background-color: #007bff;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: normal;
}

.upload-btn:hover {
    background-color: #0056b3;
}

/* ==========================================
   GAMES PAGE LAYOUT
   ========================================== */
.games-header-box {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.games-header-box h1 {
    margin: 0 0 4px 0;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
}

.games-subtitle {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

.games-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.game-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px;
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
}

.game-frame-container {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #ffffff;
    border-radius: 6px;
    overflow: hidden;
}

.game-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.game-card-title {
    background-color: var(--btn-bg);
    border-radius: 6px;
    padding: 12px 14px;
    color: var(--text-color);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
}

.game-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.game-play-wrapper {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
}

.game-play-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.game-play-header h1 {
    margin: 0;
    font-size: 24px;
    color: var(--text-color);
}

.game-player-container {
    width: 100%;
    max-width: 640px;
    aspect-ratio: 4 / 3;
    margin: 0 auto;
    background-color: #000000;
    border-radius: 8px;
    overflow: hidden;
}

.game-player-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.game-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================
   ABOUT PAGE STYLING
   ========================================== */
.about-card {
    position: relative;
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 24px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.about-card-body {
    display: flex;
    align-items: center;
    gap: 24px;
}

.about-text-content {
    flex: 1;
}

.about-card h1 {
    margin: 0 0 4px 0;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
}

.about-tagline {
    margin: 0 0 16px 0;
    color: var(--text-muted);
    font-size: 15px;
}

.about-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 16px 0 20px 0;
}

.about-description {
    line-height: 1.6;
    color: var(--text-color);
    font-size: 15px;
    margin: 0;
}

.about-features {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.feature-item {
    background-color: var(--btn-bg);
    border-radius: 6px;
    padding: 16px;
    flex: 1;
    min-width: 200px;
}

.feature-item h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: var(--text-color);
}

.feature-item p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

.about-image-wrapper {
    width: 220px;
    flex-shrink: 0;
}

.about-side-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    object-fit: cover;
}

/* Version Tag - Absolute positioning removed to fit under button */
.about-version-tag {
    font-size: 11px;
    color: var(--text-muted);
    font-family: monospace;
    user-select: none;
    margin-top: 14px;
    margin-bottom: 8px;
}

@media (max-width: 600px) {
    .about-card-body {
        flex-direction: column;
    }
    .about-image-wrapper {
        width: 100%;
    }
}

/* ==========================================
   GLOBAL LIGHT MODE OVERRIDES
   ========================================== */
body.light-mode .content,
body.light-mode .welcome-card,
body.light-mode .about-card,
body.light-mode .games-header-box,
body.light-mode .game-card,
body.light-mode .game-play-wrapper {
    background-color: #ffffff !important;
    color: #121212 !important;
    border: 1px solid #e0e0e8;
}

body.light-mode .about-tagline,
body.light-mode .about-description,
body.light-mode .games-subtitle {
    color: #121212 !important;
}

body.light-mode .about-divider {
    border-top: 1px solid #e0e0e8 !important;
}

body.light-mode .feature-item {
    background-color: #f0f0f5 !important;
}

body.light-mode .feature-item h3 {
    color: #121212 !important;
}

body.light-mode .feature-item p {
    color: #555560 !important;
}

body.light-mode .game-card-title {
    background-color: #e8e8f0 !important;
    color: #121212 !important;
}

body.light-mode .sub-category-list {
    background-color: #f0f0f5 !important;
    border-color: #cccccc !important;
}

body.light-mode summary.forum-header,
body.light-mode .sub-category-list a.sub-category-card {
    background-color: #e4e4ec !important;
    color: #121212 !important;
    border-color: #cccccc !important;
}

body.light-mode summary.forum-header:hover,
body.light-mode .sub-category-list a.sub-category-card:hover {
    background-color: #d8d8e5 !important;
}

body.light-mode .reply-box {
    background-color: #f0f0f5 !important;
    border: 1px solid #cccccc !important;
    color: #121212 !important;
}

body.light-mode .reply-username {
    color: #121212 !important;
}

body.light-mode .reply-box textarea,
body.light-mode #announcement-input {
    background-color: #ffffff !important;
    color: #121212 !important;
    border: 1px solid #cccccc !important;
}

body.light-mode .reply-box textarea::placeholder,
body.light-mode #announcement-input::placeholder {
    color: #777788 !important;
}

body.light-mode .attachment-row {
    border-top: 1px solid #dcdce5 !important;
}

body.light-mode .attach-btn,
body.light-mode .file-name-text {
    color: #555560 !important;
}

body.light-mode .attach-btn:hover {
    color: #121212 !important;
}

body.light-mode .thread-header-bar,
body.light-mode .post-card {
    background-color: #e4e4ec !important;
    border-color: #cccccc !important;
    color: #121212 !important;
}

body.light-mode .post-username {
    color: #121212 !important;
}

body.light-mode .empty-posts-notice {
    color: #666675 !important;
}

body.light-mode .about-version-tag {
    color: #888888 !important;
}

.post-attachment {
    margin-top: 10px;
}

.attached-img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    object-fit: contain;
    display: block;
}

.post-card-wrapper {
    position: relative;
    margin-bottom: 15px;
}

/* Reply Arrow Button */
.reply-arrow-btn {
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 16px;
    margin-left: auto;
    transition: color 0.2s;
}

.reply-arrow-btn:hover {
    color: #fff;
}

/* Nested replies indentation & left vertical connector line */
.nested-replies-container {
    margin-left: 28px;
    padding-left: 16px;
    border-left: 2px solid #333340;
    margin-top: 10px;
}