/* --- 1. MYBB SAFETY BLOCK (REQUIRED FOR LAYOUT) --- */
/* These prevent the footer from crashing into the header */
.clear { clear: both; }
.float_left { float: left; }
.float_right { float: right; }
.hidden { display: none; float: none; width: 1%; }
.hiddenrow { display: none; }
.selectall { background: #FFF; border-bottom: 1px solid #CCC; color: #333; font-weight: bold; text-align: center; }
.scaleimages img { max-width: 100%; }

/* --- 2. YOUR ORIGINAL GAMING THEME CODE --- */
@import url(https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Rajdhani:wght@500;600;700&display=swap);

:root {
    /* Color Palette - Change these to swap the whole theme color */
    --accent-glow: rgba(0, 229, 255, 0.35);
    --bg-dark: #0a0a0c;          /* Deep Background */
    --bg-panel: rgba(20, 25, 30, 0.85); /* Glassy Panels */
    --border-light: rgba(255,255,255,0.08);
    
    /* Fonts */
    --font-head: 'Rajdhani', sans-serif; 
    --font-body: 'Inter', sans-serif;
}

body {
    background: var(--bg-dark) url(https://i.imgur.com/W7Bs7Gp.jpeg) no-repeat center center fixed;
    background-size: cover;
    color: #e0e6ed;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    overflow-y: scroll;
}

/* Dark Overlay + Blur for better text readability */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 8, 12, 0.85); 
    backdrop-filter: blur(2px);        
    z-index: -1;
    pointer-events: none;
}

a, a:link, a:visited {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover, a:active {
    color: #fff;
    cursor: pointer;
}

/* --- ORIGINAL LAYOUT STRUCTURE (Restored) --- */

#container {
    color: #e5e5e5;
    text-align: left;
    line-height: 1.4;
    margin: 0;
    font-family: var(--font-body); /* Updated to use new font */
    font-size: 13px;
    min-width: 990px;
}

.wrapper {
    width: 85%;
    min-width: 970px;
    max-width: 1500px;
    margin: auto auto;
}

/* --- TACTICAL HUD HEADER --- */

/* 1. TOP UTILITY BAR (The Black Strip) */
#tactical-topbar {
    background: #080808;
    border-bottom: 1px solid #222;
    height: 46px;
    font-family: var(--font-head); /* Rajdhani */
    font-size: 13px;
    position: relative;
    z-index: 2000;
}

.topbar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 46px;
}

/* LEFT SIDE: WALLET & INVENTORY */
.topbar-left {
    display: flex;
    gap: 20px;
}

.hud-item {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.03);
    padding: 5px 12px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s;
}

.hud-item:hover {
    border-color: var(--accent);
    background: rgba(0, 229, 255, 0.1);
}

.hud-item i {
    font-size: 16px;
    color: #666;
    margin-right: 10px;
}

.hud-item:hover i {
    color: var(--accent);
}

.hud-info {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.hud-info .label {
    font-size: 9px;
    color: #666;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 2px;
}

.hud-info .value {
    font-size: 12px;
    color: #fff;
    font-weight: 700;
}

/* RIGHT SIDE: USER STRIP */
.user-strip {
    display: flex;
    align-items: center;
    gap: 2px;
}

.welcome-text {
    color: #888;
    margin-right: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.welcome-text strong {
    color: var(--accent);
}

/* Top Buttons (CP, PMs, Logout) */
a.top-btn {
    color: #ccc;
    padding: 0 12px;
    height: 46px;
    line-height: 46px;
    font-weight: 600;
    text-transform: uppercase;
    transition: 0.2s;
    position: relative;
}

a.top-btn:hover {
    color: #fff;
    background: #1a1a1a;
}

a.admin-btn { color: #ff3333; }
a.logout-btn { color: #888; }
a.register-btn { color: var(--accent); font-weight: bold; }

/* --- STEP 7: GAMING FOOTER --- */

#footer {
    clear: both;
    margin-top: 0px;
    border-top: 2px solid var(--accent); /* Neon top border */
    background: #050505;
    box-shadow: 0 -20px 50px rgba(0,0,0,0.8);
    position: relative;
    z-index: 10;
}

#footer ul.menu {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center; /* Center the links */
}

#footer ul.menu li {
    margin: 0 15px;
    display: inline-block;
}

/* Footer Links (Contact Us, etc.) */
#footer ul.menu li a {
    color: #777;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

#footer ul.menu li a:hover {
    color: var(--accent); /* Neon hover */
    text-shadow: 0 0 10px var(--accent-glow);
}

/* Top part of footer */
#footer .upper {
    background: transparent;
    border-bottom: 1px solid #111;
    padding: 20px;
    overflow: hidden;
}

/* Bottom part (Copyright text) */
#footer .lower {
    background: #020202;
    color: #444;
    padding: 15px;
    overflow: hidden;
    font-size: 11px;
    text-align: center;
}

#footer .lower a, #footer .lower a:visited {
    color: #666;
    font-weight: bold;
}

#footer .lower a:hover {
    color: #fff;
    text-decoration: none;
}

#footer .lower #current_time {
    color: #333;
    display: block;
    margin-top: 5px;
}

/* Debug Info (if enabled) */
#debug {
    text-align: center;
    margin: 10px 0;
    font-size: 10px;
    color: #333;
    font-family: monospace;
}

/* --- STEP 6: INDEX & ICONS --- */

/* The Status Icon Container */
.forum_status {
    height: 40px;
    width: 40px;
    display: flex; /* Centers the dot */
    align-items: center;
    justify-content: center;
    background: none !important; /* Removes old image */
}

/* The Neon Dot (CSS created) */
.forum_status::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #333; /* Default (Read/No New Posts) */
    box-shadow: inset 0 0 3px #000;
    transition: all 0.3s ease;
}

/* New Posts (Glowing Green/Cyan) */
.forum_on::after {
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent), 0 0 30px var(--accent);
    transform: scale(1.2);
}

/* Locked Forum (Red) */
.forum_offclose::after {
    background: #ff3333;
    box-shadow: 0 0 15px #ff3333;
}

/* Forum Link Text */
a.forumlink {
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}

/* Description Text */
.forum_description {
    color: #888;
    font-size: 12px;
    font-style: italic;
}

/* Thread/Post Counts (The Numbers) */
td[align="center"] {
    font-family: 'Consolas', monospace; /* Hacker style font for numbers */
    color: var(--accent);
    font-size: 15px;
    text-shadow: 0 0 5px var(--accent-glow);
}

/* Last Post Column */
.lastpost {
    font-size: 11px;
    color: #777;
    text-align: right;
    line-height: 1.4;
}

.lastpost a {
    color: #fff;
    font-weight: 600;
}

/* --- STEP 2: GAMING TABLES & HEADERS --- */

table {
    color: #e5e5e5;
    font-size: 13px;
    border-collapse: separate; /* Allows spacing between rows */
    border-spacing: 0 4px;      /* Creates gaps between rows */
    width: 100%;
}

.tborder {
    background: transparent;
    width: 100%;
    margin: auto;
    border: none; /* Removes the boxy outer border */
}

/* The Main Category Headers (e.g., "General Discussion") */
.thead {
    background: linear-gradient(90deg, var(--bg-panel) 0%, rgba(0,0,0,0) 100%);
    color: #fff;
    border-bottom: none;
    border-left: 3px solid var(--accent); /* Neon Stripe */
    padding: 12px 15px;
    font-family: var(--font-head);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    margin-bottom: 5px;
    text-shadow: 0 0 10px var(--accent-glow);
}

.thead a:link, .thead a:visited, .thead a:hover, .thead a:active {
    color: #ffffff;
    text-decoration: none;
}

/* Sub-headers (e.g., "Thread / Author") */
.tcat {
    background: rgba(255,255,255,0.03);
    color: #888;
    border-bottom: 1px solid var(--border-light);
    padding: 8px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tcat a:link, .tcat a:visited { color: #999; }

/* The Content Rows */
.trow1, .trow2 {
    background: var(--bg-panel); /* The Glassy Background */
    border: 1px solid var(--border-light);
    padding: 15px;
    transition: all 0.2s ease;
}

/* Hover Effects - The "Gaming" Feel */
.trow1:hover, .trow2:hover {
    background: rgba(35, 40, 50, 0.95);
    border-color: rgba(255,255,255,0.15);
    box-shadow: inset 2px 0 0 var(--accent); /* Neon glow on left when hovering */
}

/* Fix for form inputs inside tables */
.trow1 input, .trow2 input {
    background: rgba(0,0,0,0.5);
    border: 1px solid #333;
    color: #fff;
    padding: 5px;
    border-radius: 4px;
}

.trow_shaded {
    background: #3b1f23;
    border: 1px solid;
    border-color: #fff #ffb8be #ffb8be #fff;
}

.no_bottom_border {
    border-bottom: 0;
}

.post.unapproved_post {
    background: #3b1f23;
}

.thread_start_datetime {
    color: #999;
}

.post.unapproved_post .post_author {
    border-bottom-color: #ffb8be;
}

.post.classic.unapproved_post .post_author {
    border-color: #ffb8be;
}

.post.unapproved_post .post_controls {
    border-top-color: #ffb8be;
}

/* CONTROL BAR (Buttons) - Fixed Alignment */
.post_controls {
    margin-top: auto; /* Pushes bar to very bottom */
    background: rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 6px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trow_deleted,
.post.deleted_post {
    background: #2c2340;
}

.trow_selected,
tr.trow_selected td {
    background: #2a2820;
    color: #fff;
    border-right-color: #F7E86A;
    border-bottom-color: #F7E86A;
}

.trow_selected a:link,
.trow_selected a:visited,
.trow_selected a:hover,
.trow_selected a:active {
    color: #fff;
}

.trow_sep {
    background: #1b1b1b;
    color: #eee;
    border-bottom: 1px solid #333;
    padding: 6px;
    font-size: 12px;
    font-weight: bold;
}

.tfoot {
    border-top: 1px solid #000;
    padding: 6px;
    background: #111;
    color: #ccc;
}

.tfoot a:link {
    color: #eee;
    text-decoration: none;
}

.tfoot a:visited {
    color: #eee;
    text-decoration: none;
}

.tfoot a:hover,
.tfoot a:active {
    color: #fff;
    text-decoration: underline;
}

.thead input.textbox,
.thead select {
    border: 1px solid #263c30;
}

.bottommenu {
    background: #111;
    color: #ddd;
    border: 1px solid #4874a3;
    padding: 10px;
}

.navigation {
    color: #ccc;
    font-size: 12px;
}

.navigation a:link {
    text-decoration: none;
}

.navigation a:visited {
    text-decoration: none;
}

.navigation a:hover,
.navigation a:active {
    text-decoration: underline;
}

.navigation .active {
    color: #fff;
    font-size: small;
    font-weight: bold;
}

.smalltext {
    font-size: 11px;
}

.largetext {
    font-size: 16px;
    font-weight: bold;
}

fieldset {
    padding: 12px;
    border: 1px solid #444;
    margin: 0;
}

fieldset.trow1,
fieldset.trow2 {
    border-color: #555;
}

fieldset.align_right {
    text-align: right;
}

/* --- STEP 3: GAMING INPUTS & BUTTONS --- */

/* Text Inputs & Textareas */
input.textbox, textarea, select {
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: 1px solid var(--border-light);
    padding: 8px 10px;
    outline: 0;
    font-family: var(--font-body);
    font-size: 13px;
    border-radius: 4px;
    transition: border 0.3s ease;
}

input.textbox:focus, textarea:focus, select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
}

/* Primary Buttons (New Thread, Reply, Search) */
button, input.button, a.button {
    background: var(--accent);
    color: #000 !important; /* Black text for contrast on neon */
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px var(--accent-glow);
    display: inline-block;
    line-height: normal;
}

/* Button Hover Effect */
button:hover, input.button:hover, a.button:hover {
    background: #fff;
    box-shadow: 0 0 20px var(--accent);
    transform: translateY(-2px); /* Slight lift effect */
}

/* Pagination (Page 1, 2, 3...) */
.pagination {
    font-size: 11px;
    padding-top: 10px;
    margin-bottom: 5px;
}

.pagination a {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
    padding: 5px 10px;
    margin-right: 2px;
    border-radius: 3px;
    transition: all 0.2s;
}

.pagination .pagination_current {
    background: var(--accent);
    color: #000;
    font-weight: bold;
    border: none;
    padding: 5px 10px;
    margin-right: 2px;
    border-radius: 3px;
    box-shadow: 0 0 10px var(--accent-glow);
}

.pagination a:hover {
    background: #fff;
    color: #000;
    text-decoration: none;
}

.pagination .go_page img {
    margin-bottom: -4px;
}

.drop_go_page {
    background: #222;
    padding: 4px;
}

.pagination_breadcrumb {
    background-color: #151515;
    border: 1px solid #333;
    outline: 1px solid #000;
    padding: 5px;
    margin-top: 5px;
    font-weight: normal;
}

.pagination_breadcrumb_link {
    vertical-align: middle;
    cursor: pointer;
}

.thread_legend,
.thread_legend dd {
    margin: 0;
    padding: 0;
}

.thread_legend dd {
    padding-bottom: 4px;
    margin-right: 15px;
}

.thread_legend img {
    margin-right: 4px;
    vertical-align: bottom;
}

.forum_legend,
.forum_legend dt,
.forum_legend dd {
    margin: 0;
    padding: 0;
}

.forum_legend dd {
    float: left;
    margin-right: 10px;
    margin-top: 7px;
}

.forum_legend dt {
    margin-right: 10px;
    float: left;
}

.success_message {
    color: #7bff7b;
    font-weight: bold;
    font-size: 10px;
    margin-bottom: 10px;
}

.error_message {
    color: #ff9b9b;
    font-weight: bold;
    font-size: 10px;
    margin-bottom: 10px;
}

#posts_container {
    padding: 0;
}

.ignored_post {
    border-top: 3px solid #333;
    padding: 15px;
}

.ignored_post .show_ignored_post {
    margin-top: -15px;
}

.ignored_post .show_ignored_post a.button span {
    background-position: 0 -400px;
}

.deleted_post_hidden {
    border-top: 2px solid #333;
    padding: 15px;
}

.deleted_post_collapsed {
    border-top: 3px solid #333;
    padding: 15px;
}

.deleted_post_collapsed .show_deleted_post {
    margin-top: -15px;
}

.deleted_post_collapsed .show_deleted_post a.button span {
    background-position: 0 -400px;
}

/* --- STEP 5: GAMING POSTBIT (PLAYER CARD STYLE) --- */

.post {
    overflow: hidden;
    margin: 10px 0; /* Reduced margin */
    border-radius: 4px;
    background: rgba(18, 20, 24, 0.95); /* Darker, readable bg */
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    display: flex; /* Ensures columns stretch evenly */
}

/* LEFT COLUMN: User Profile Area */
.post.classic .post_author {
    width: 180px; /* Reduced width */
    flex-shrink: 0; /* Don't shrink */
    background: rgba(0, 0, 0, 0.2);
    border-right: 1px solid rgba(255,255,255,0.05);
    padding: 10px; /* Reduced padding */
    text-align: center;
}

/* CIRCLE AVATAR */
.post.classic .post_author div.author_avatar img {
    border-radius: 50%; /* Makes it a circle */
    width: 130px;        /* Force consistent size */
    height: 130px;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.05);
    padding: 3px;
    background: transparent;
    transition: all 0.3s ease;
}

/* 5. Tighten the Avatar & Stats Spacing */
.author_avatar img {
    width: 100px; /* Slightly smaller avatar (optional, was 130px) */
    height: 100px;
}

/* Avatar Hover Effect */
.post.classic .post_author div.author_avatar img:hover {
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
    transform: scale(1.05);
}

/* USERNAME (Gamertag Style) */
.post.classic .post_author .author_information .largetext a,
.post.classic .post_author .author_information .largetext {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-top: 10px;
}

/* User Title (e.g. "Administrator") */
.post.classic .post_author .author_information .smalltext {
    color: var(--accent);
    font-size: 11px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

/* User Stats (Posts, Threads, etc) */
.post.classic .post_author div.author_statistics {
    border-top: 1px solid var(--border-light);
    margin: 10px 0 0 0;
    padding: 10px 0;
    float: none;
    font-size: 11px;
    color: #888;
    line-height: 1.8;
    text-align: left;
    background: transparent;
}

/* --- ENHANCED POSTBIT STATS (HUD STYLE) --- */

/* 1. The Container Box */
.author_statistics {
    margin-top: 5px;
    background: rgba(0, 0, 0, 0.3); /* Darker background box */
    border: 1px solid rgba(255, 255, 255, 0.05); /* Subtle border */
    border-radius: 4px;
    padding: 5px 0; /* Padding top/bottom inside the box */
    width: 100%;
}

/* 2. The Rows */
.stat-row {
    display: flex;
    justify-content: space-between; /* Pushes Label left, Number right */
    align-items: center;
    padding: 6px 15px; /* Breathing room */
    border-bottom: 1px solid rgba(255, 255, 255, 0.02); /* Faint separators */
    transition: background 0.2s;
}

/* Remove border from the last row so it looks clean */
.stat-row:last-child {
    border-bottom: none;
}

/* Hover Effect (Highlight row) */
.stat-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* 3. The Labels (POSTS, JOINED, REP) */
.stat-label {
    color: #555;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px; /* Spaced out letters */
}

/* 4. The Numbers (11, Nov 2025, 0) */
.stat-value {
    color: #fff;
    font-family: 'Consolas', 'Monaco', monospace; /* Hacker font */
    font-size: 12px;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 229, 255, 0.3); /* Slight neon glow */
}

/* Optional: Make the Rep number specifically Cyan */
.stat-row:last-child .stat-value {
    color: #00e5ff;
}

/* RIGHT COLUMN: The Message */
.post.classic .post_content {
    flex-grow: 1;
    padding: 0; /* Remove padding here, apply to children */
    display: flex;
    flex-direction: column;
}

/* Post Date & Link Bar */
.post .post_head {
    padding: 6px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 11px;
    color: #888;
    background: rgba(0,0,0,0.1);
}

.post .post_head span.post_date {
    float: left; /* Ensure it stays left */
}

.post .post_head a {
    color: #aaa;
    font-weight: 600;
}

/* The Actual Text Content */
.post_body {
    padding: 15px;
    font-size: 14px;
    line-height: 1.6;
    color: #e0e6ed;
    min-height: 80px; /* Reduced minimum height */
}

/* Signature Area */
.post_content .signature {
    margin: 20px 20px 5px 20px;
    padding: 15px;
    opacity: 0.8;
    font-size: 11px;
    color: #999;
    font-size: 12px;
}

/* BUTTON BAR (Bottom of post) */
post_controls {
    clear: both;
    background: rgba(0, 0, 0, 0.3); /* Darker bar at bottom */
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 8px 15px;
    display: flex; /* Flexbox aligns them perfectly */
    justify-content: space-between; /* Pushes Left and Right buttons apart */
    align-items: center;
}

/* Remove float since we are using flexbox now */
.postbit_buttons.float_left,
.postbit_buttons.float_right {
    float: none;
}

/* Style the buttons inside the post (Reply, Quote, etc) */
.postbit_buttons > a {
    display: inline-block;
    padding: 6px 12px;
    margin-left: 5px;
    font-size: 11px;
    background: rgba(255,255,255,0.05);
    border: 1px solid transparent;
    color: #aaa;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.2s;
}

.postbit_buttons > a:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Hide/restore buttons logic stays the same */
.post:not(.deleted_post) .postbit_qrestore,
.post:not(.deleted_post) .status_type,
.post.deleted_post .postbit_mirage {
    display: none;
}

/* Big action buttons */
a.button:link,
a.button:hover,
a.button:visited,
a.button:active {
    background: #0f0f0f url(../../../images/tcat.png) repeat-x;
    color: #fff;
    display: inline-block;
    padding: 4px 8px;
    margin: 2px 2px 6px 2px;
    border: 1px solid #000;
    font-size: 14px;
}

a.button.small_button {
    font-size: 13px;
    margin: 0;
    padding: 3px 6px;
}

a.button span {
    padding-left: 20px;
    display: inline-block;
    background-image: url(../../../images/buttons_sprite.png);
    background-repeat: no-repeat;
}

a.button.new_thread_button span {
    background-position: 0 -340px;
}

a.button.new_reply_button span {
    background-position: 0 -360px;
}

a.button.closed_button span {
    background-position: 0 -380px;
}

a.button.rate_user_button span {
    background-position: 0 -400px;
}

a.button.add_buddy_button span {
    background-position: 0 -440px;
}

a.button.remove_buddy_button span {
    background-position: 0 -480px;
}

a.button.add_ignore_button span {
    background-position: 0 -460px;
}

a.button.remove_ignore_button span {
    background-position: 0 -500px;
}

a.button.report_user_button span {
    background-position: 0 -520px;
}

.quick_jump {
    background: url(../../../images/jump.png) no-repeat 0;
    width: 13px;
    height: 13px;
    padding-left: 13px; /* amount of padding needed for image to fully show */
    margin-top: -3px;
    border: none;
}

.pollbar {
    background: url(../../../images/pollbar.png) top left repeat-x;
    border: 1px solid #3f3f3f;
    height: 10px;
}

.pollbar .percent {
    display: none;
}

.poll_votedfor {
    background: #222;
    border: 1px solid;
    border-color: #fff #ddd #ddd #fff;
}

.posticons_label {
    white-space: nowrap;
}

/** jGrowl Start **/

/** Special IE6 Style Positioning **/
.ie6 {
    position: absolute;
    background-color: #777777;
}
iframe.jqifade{
    display:block;
    z-index:-1;
}
div.jqi{
    width: 400px;
    max-width:90%;
    font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
    position: absolute;
    background-color: #ffffff;
    font-size: 11px;
    text-align: left;
    border: solid 1px #eeeeee;
    border-radius: 6px;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    padding: 7px;
}
div.jqi .jqicontainer{
}
div.jqi .jqiclose{
    position: absolute;
    top: 4px; right: -2px;
    width: 18px;
    cursor: default;
    color: #bbbbbb;
    font-weight: bold;
}
div.jqi .jqistate{
    background-color: #fff;
}
div.jqi .jqititle{
    padding: 5px 10px;
    font-size: 16px;
    line-height: 20px;
    border-bottom: solid 1px #eeeeee;
}
div.jqi .jqimessage{
    padding: 10px;
    line-height: 20px;
    color: #444444;
    overflow: auto;
}
div.jqi .jqibuttonshide{
    display: none;
}
div.jqi .jqibuttons{
    text-align: right;
    margin: 0 -7px -7px -7px;
    border-top: solid 1px #e4e4e4;
    background-color: #f4f4f4;
    border-radius: 0 0 6px 6px;
    -moz-border-radius: 0 0 6px 6px;
    -webkit-border-radius: 0 0 6px 6px;
}
div.jqi .jqibuttons button{
    margin: 0;
    padding: 15px 20px;
    background-color: transparent;
    font-weight: normal;
    border: none;
    border-left: solid 1px #e4e4e4;
    color: #777;
    font-weight: bold;
    font-size: 12px;
}
div.jqi .jqibuttons button.jqidefaultbutton{
    color: #489afe;
}
div.jqi .jqibuttons button:hover,
div.jqi .jqibuttons button:focus{
    color: #287ade;
    outline: none;
}
div.jqi .jqibuttons button[disabled]{
    color: #aaa;
}
.jqiwarning .jqi .jqibuttons{
    background-color: #b95656;
}

/* sub states */
div.jqi .jqiparentstate::after{
    background-color: #777;
    opacity: 0.6;
    filter: alpha(opacity=60);
    content: '';
    position: absolute;
    top:0;left:0;bottom:0;right:0;
    border-radius: 6px;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
}
div.jqi .jqisubstate{
    position: absolute;
    top:0;
    left: 20%;
    width: 60%;
    padding: 7px;
    border: solid 1px #eeeeee;
    border-top: none;
    border-radius: 0 0 6px 6px;
    -moz-border-radius: 0 0 6px 6px;
    -webkit-border-radius: 0 0 6px 6px;
}
div.jqi .jqisubstate .jqibuttons button{
    padding: 10px 18px;
}

/* arrows for tooltips/tours */
.jqi .jqiarrow{ position: absolute; height: 0; width:0; line-height: 0; font-size: 0; border: solid 10px transparent;}

.jqi .jqiarrowtl{ left: 10px; top: -20px; border-bottom-color: #ffffff; }
.jqi .jqiarrowtc{ left: 50%; top: -20px; border-bottom-color: #ffffff; margin-left: -10px; }
.jqi .jqiarrowtr{ right: 10px; top: -20px; border-bottom-color: #ffffff; }

.jqi .jqiarrowbl{ left: 10px; bottom: -20px; border-top-color: #ffffff; }
.jqi .jqiarrowbc{ left: 50%; bottom: -20px; border-top-color: #ffffff; margin-left: -10px; }
.jqi .jqiarrowbr{ right: 10px; bottom: -20px; border-top-color: #ffffff; }

.jqi .jqiarrowlt{ left: -20px; top: 10px; border-right-color: #ffffff; }
.jqi .jqiarrowlm{ left: -20px; top: 50%; border-right-color: #ffffff; margin-top: -10px; }
.jqi .jqiarrowlb{ left: -20px; bottom: 10px; border-right-color: #ffffff; }

.jqi .jqiarrowrt{ right: -20px; top: 10px; border-left-color: #ffffff; }
.jqi .jqiarrowrm{ right: -20px; top: 50%; border-left-color: #ffffff; margin-top: -10px; }
.jqi .jqiarrowrb{ right: -20px; bottom: 10px; border-left-color: #ffffff; }

/** Impromptu End */

/* Neon scan animation */
.neon-scan-name {
    position: relative;
    display: inline-block;
    color: #00ff9a;
    font-weight: bold;
    font-family: Consolas, monospace;
}

.neon-scan-name::after {
    content: "";
    position: absolute;
    top: -2px;
    bottom: -2px;
    width: 2px;
    background: #00ff9a;
    animation: neon-scan-cursor 1s linear infinite;
}

@keyframes neon-scan-cursor {
    0%    { left: 0; opacity: 0.1; }
    50%   { left: 100%; opacity: 1; }
    100% { left: 0; opacity: 0.1; }
}


.rgb-wave {
  animation: rgbwave 2s linear infinite;
  font-weight:bold;
}
@keyframes rgbwave {
  0% { color:#ff0040; }
  25%{ color:#00cfff; }
  50%{ color:#7fff00; }
  75%{ color:#ff00ff; }
  100%{ color:#ff0040; }
}


.glitch {
    color:#fff;
    position:relative;
    position: relative;
    display: inline-block;
}

.glitch::before, .glitch::after {
    content:attr(data-text);
    position:absolute;
    top:0; left:0;
}
.glitch::before {
    left:2px;
    text-shadow:-2px 0 red;
    animation:glitch 0.3s infinite;
}
.glitch::after {
    left:-2px;
    text-shadow:2px 0 blue;
    animation:glitch 0.35s infinite;
}
@keyframes glitch {
  0%{transform:translate(0);}
  20%{transform:translate(-2px,2px);}
  40%{transform:translate(-2px,-2px);}
  60%{transform:translate(2px,2px);}
  80%{transform:translate(2px,-2px);}
  100%{transform:translate(0);}
}


.fire {
  color: #ff4500;
  animation: fireflick 0.12s infinite;
}
@keyframes fireflick {
  0% { text-shadow:0 0 5px #ff4500; }
  50%{ text-shadow:0 0 15px #ff6a00; }
  100%{ text-shadow:0 0 5px #ff4500; }
}


.matrix {
  color:#00ff41;
  animation: drip 1s linear infinite;
}
@keyframes drip {
  0%{ letter-spacing:normal; }
  50%{ letter-spacing:2px; }
  100%{ letter-spacing:normal; }
}
 

/* ===== Matrix username animation ===== */

.matrix-name {
    position: relative;
    display: inline-block;
    color: #00ff41; /* main Matrix green */
    font-family: "Courier New", monospace;
    font-weight: bold;
    overflow: hidden;
}

/* falling code behind the name */
.matrix-name::before {
    content: "010110010101001110010001101001001001011011000101"; /* tweak text if you like */
    position: absolute;
    left: 0;
    top: -150%;          /* start above the name */
    width: 100%;
    text-align: left;
    color: #00ff41;
    opacity: 0.25;       /* faint so username is readable */
    line-height: 1.1;
    pointer-events: none;
    animation: matrix-fall 2.5s linear infinite;
    font-size: 0.9em;
}

/* optional extra glow/pulse on the real name */
.matrix-name::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: 0 0 8px rgba(0, 255, 65, 0.6);
    opacity: 0.0;
    animation: matrix-glow 2.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes matrix-fall {
    0%    { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

@keyframes matrix-glow {
    0%    { opacity: 0.0; }
    50%   { opacity: 1.0; }
    100% { opacity: 0.0; }
}

/* GAMING POSTBIT LAYOUT */

.postbit_left {
    width: 240px;
    padding: 15px;
    background: rgba(0,0,0,0.55);
    border-right: 1px solid #000;
    float: left;
    text-align: center;
}

.postbit_right {
    margin-left: 240px;
    padding: 20px;
    background: rgba(0,0,0,0.35);
    min-height: 200px;
}

.postbit_avatar img {
    width: 140px;
    height: auto;
    border-radius: 4px;
    padding: 4px;
    background: #000;
    border: 1px solid #222;
    box-shadow: 0 0 10px #000;
}

.postbit_username {
    margin-top: 8px;
    font-size: 18px;
    color: #7fe1ff;
    text-shadow: 0 0 6px #00bfff;
    font-weight: bold;
}

.postbit_title {
    margin-top: 5px;
    color: #ccc;
    font-size: 12px;
    line-height: 1.4;
}

.postbit_stats {
    margin-top: 12px;
    font-size: 12px;
    text-align: left;
    color: #b9b9b9;
    background: rgba(0,0,0,0.4);
    padding: 10px;
    border-radius: 4px;
}

.postbit_head {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 6px;
    margin-bottom: 10px;
}

.postbit_body {
    font-size: 14px;
    line-height: 1.7;
}

.postbit_controls a {
    background: #222;
    border: 1px solid #444;
    padding: 4px 10px;
    border-radius: 4px;
    margin-right: 5px;
    color: #ddd !important;
    font-size: 11px;
}

.postbit_controls a:hover {
    background: #00bfff;
    border-color: #00aaff;
    color: #fff !important;
}

/* --- STEP 8: FINAL POLISH (Stats & Logo) --- */

/* Make Board Stats text larger and cleaner */
.trow1 .smalltext {
    font-size: 13px;
    color: #aaa;
    line-height: 1.6;
}

/* "Who's Online" Username sizing */
.trow1 a[href*="profile"] {
    font-weight: 600;
    font-size: 14px;
}

/* Center the Legend at the bottom (New Posts / No New Posts) */
.forum_legend {
    background: rgba(0,0,0,0.3);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    margin-top: 20px;
    color: #888;
    text-align: center; 
}

.forum_legend dt {
    float: none;
    display: inline-block;
}

.forum_legend dd {
    display: inline-block;
    float: none; 
    margin: 0 15px;
    vertical-align: middle;
    font-size: 11px;
    text-transform: uppercase;
}

/* LOGO PREPARATION */
#logo {
    text-align: left; /* Keeps logo on left, change to center if you want */
    padding: 20px 0;
}

/* This adds a neon glow to ANY image you put in the logo spot */
#logo img {
    max-height: 80px; /* Keeps your future banner from being too tall */
    filter: drop-shadow(0 0 8px var(--accent-glow)); 
    transition: all 0.5s ease;
}

#logo img:hover {
    filter: drop-shadow(0 0 20px var(--accent)); 
}

/* --- STEP 9 V2: UNIQUE CYBERPUNK LOGIN --- */

/* Main Container with Angled Corners */
.login-box-container {
    display: flex;
    flex-wrap: wrap;
    width: 850px;
    max-width: 95%;
    /* Use Viewport Height (vh) to center it and prevent scrolling */
    margin: 4vh auto; 
    min-height: 450px; 
    background: rgba(14, 16, 20, 0.95);
    border: 1px solid rgba(0, 229, 255, 0.1);
    box-shadow: 0 0 80px rgba(0,0,0,0.9);
    position: relative;
    
    /* THE UNIQUE SHAPE: Cuts the corners for a sci-fi look */
    clip-path: polygon(
        0 0, 
        100% 0, 
        100% 85%, 
        97% 100%, 
        3% 100%, 
        0 90%
    );
}

/* Animated Top Line */
.login-box-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: scanline 3s linear infinite;
}

@keyframes scanline {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

/* LEFT SIDE (Clean & Dark) */
.login-left {
    flex: 1.2; /* Slightly wider */
    padding: 40px 50px;
    background: radial-gradient(circle at top left, #1a1d24, #0e1012);
}

/* RIGHT SIDE (Glass/Premium Look) */
.login-right {
    flex: 0.9; /* A bit wider to show off the image */
    padding: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    
    /* Your wallpaper image */
    background: url(https://i.imgur.com/W7Bs7Gp.jpeg) no-repeat center center;
    background-size: cover;
    overflow: hidden;
}

/* The Dark Glass Overlay */
.login-right::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Gradient fade: Darker at bottom */
    background: linear-gradient(to bottom, rgba(14, 16, 20, 0.7), rgba(0, 0, 0, 0.9));
    backdrop-filter: blur(3px); /* This adds the high-end glass effect */
    z-index: 1;
}

/* TYPOGRAPHY & INPUTS */
h2.login-title {
    font-family: var(--font-head);
    color: #fff;
    font-size: 24px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- FIXED INPUT GROUPS & ALIGNMENT --- */
.input-group {
    position: relative;
    margin-bottom: 20px;
    width: 100%;
}

.input-group input.textbox {
    width: 100%;
    height: 50px; /* Fixed height for perfect alignment */
    padding: 0 15px 0 50px; /* Left padding makes room for icon */
    box-sizing: border-box;
    background: rgba(0,0,0,0.3);
    border: 1px solid #333;
    color: #fff;
    font-family: var(--font-body);
    font-size: 14px;
    transition: 0.3s;
    line-height: 50px; /* Vertically centers the text */
}

.input-group input.textbox:focus {
    border-color: var(--accent);
    background: rgba(0, 229, 255, 0.05);
    box-shadow: 0 0 10px var(--accent-glow);
}

.input-group svg {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    fill: #666;
    pointer-events: none; /* Allows clicking through the icon */
    transition: 0.3s;
    z-index: 2;
}

.input-group input.textbox:focus + svg {
    fill: var(--accent);
}

/* Hide the preferences clutter */
.hidden-prefs {
    display: none;
}

/* BUTTONS */
.btn-login {
    width: 100%;
    background: var(--accent);
    color: #000;
    font-weight: 800;
    padding: 12px;
    border: none;
    text-transform: uppercase;
    cursor: pointer;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 95% 100%, 0 100%); /* Cut corner button */
    transition: 0.3s;
    margin-top: 10px;
}

.btn-login:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--accent);
}

/* UNIQUE VIP BUTTON (Holographic, not Gold) */
.btn-vip {
    position: relative;
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 12px 25px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    z-index: 2;
    overflow: hidden;
}

.btn-vip::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn-vip:hover::before {
    left: 100%; /* Shine effect */
}

.btn-vip:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 30px var(--accent-glow);
}

.btn-vip svg { fill: var(--accent); width: 18px; height: 18px; }

.remember-me { color: #666; font-size: 11px; margin-bottom: 15px; display: block;}

/* Fix Right Side Text Visibility */
.login-right h2.login-title {
    color: #fff !important; /* Bright White */
    text-shadow: 0 0 20px var(--accent); /* Cyan Glow */
    font-weight: 800;
}

.login-right p.login-desc {
    color: #fff !important;
    text-shadow: 0 2px 4px #000; /* Black shadow for readability */
    font-size: 14px;
    opacity: 0.9;
}

/* --- FIX: RIGHT SIDE TEXT CONSISTENCY --- */

/* 1. Darken background slightly more for contrast */
.login-right::before {
    background: rgba(0, 0, 0, 0.75) !important; 
}

/* 2. Clean, Sharp Title (Matches "SIGN IN") */
.login-right .login-title {
    color: #ffffff !important;
    /* No neon glow, just a sharp shadow for readability */
    text-shadow: 0 2px 4px rgba(0,0,0,0.9) !important; 
    font-family: var(--font-head); 
    font-size: 26px; /* Matches Left Side */
    font-weight: 700; 
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    z-index: 10;
    position: relative;
}

/* 3. Clean Description Text */
.login-right .login-desc {
    color: #cccccc !important; /* Light Grey */
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0,0,0,0.9) !important;
    font-weight: 400;
    margin-bottom: 30px;
    z-index: 10;
    position: relative;
}

/* --- STEP 10: THE EXACT REFERENCE CODE (FOUND) --- */

/* 1. The Animation Keyframes (From their source) */
@keyframes shine {
  0% { left: -75%; }
  100% { left: 125%; }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.3), 0 0 15px rgba(255, 215, 0, 0.1);
  }
  50% {
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.3);
  }
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(15px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* 2. The Button Container */
.btn-vip {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    
    /* Exact Typography */
    font-family: 'Play', sans-serif; /* Or your theme font */
    font-size: 17px;
    font-weight: 700 !important;
    text-transform: uppercase;
    color: #FFD700 !important;
    
    /* Exact Sizing */
    padding: 10px 30px !important;
    border-radius: 10px !important;
    
    /* Exact Colors & Border */
    background: linear-gradient(135deg, #1a1a1a, #2b2b2b, #1f1f1f) !important;
    border: 2px solid #FFD700 !important;
    
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
    
    /* Animations */
    animation: pulseGlow 3s infinite, fadeInUp 1s ease-out forwards;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.25);
    
    z-index: 1; /* Important for the shine layering */
}

/* 3. The Inner Border (This creates the "Gap" look) */
.btn-vip::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 8px;
    pointer-events: none;
    z-index: 2;
}

/* 4. The Shine/Flash Sweep */
.btn-vip::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.35) 50%, /* The white flash opacity */
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    /* Their code uses 3s. Change 3s to 5s here if you want it slower */
    animation: shine 3s infinite; 
    z-index: 1;
}

/* 5. Hover Effects */
.btn-vip:hover {
    transform: scale(1.04);
    background: linear-gradient(135deg, #242424, #353535) !important;
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.5) !important;
    color: #fff8d2 !important;
    border-color: #ffec8a !important;
}

/* 6. The Crown Icon */
.btn-vip svg {
    width: 22px;
    height: 22px;
    fill: #FFD700; /* Gold Color */
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.7));
    transition: transform 0.3s ease, filter 0.3s ease;
    z-index: 3; /* Sits on top of the shine */
    position: relative;
}

.btn-vip:hover svg {
    transform: rotate(-10deg) scale(1.15);
    filter: drop-shadow(0 0 8px rgba(255, 255, 180, 0.9));
}

/* --- STEP 13 FINAL: FIT TO 1080P SCREEN --- */

/* 1. Pull the footer up tight */
#footer {
    margin-top: 0px !important;
}

/* 2. Tighter spacing for the Login Box (3vh is small enough to fit) */
.login-box-container {
    margin: 1vh auto !important; 
}

/* 3. Remove extra padding from the logo header */
#logo {
    padding-bottom: 0px !important;
}

/* --- STEP 14 FINAL: MODERN REGISTRATION & CAPTCHA --- */

/* 1. Date of Birth Container */
.dob-row {
    display: flex;
    gap: 10px;
    width: 100%;
    align-items: stretch;
    margin-bottom: 15px;
}

/* 2. Style the Day and Year TEXT Inputs */
.dob-row input.dob-input {
    background-color: #0e1012 !important;
    border: 1px solid #333;
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 14px;
    text-align: center;
    /* Default width for Day */
    flex: 0 0 60px; 
}

/* Make the Year input slightly wider */
.dob-row input[name="bday3"] {
    flex: 0 0 80px;
}

/* 3. Style the Month DROPDOWN */
.dob-row select {
    flex: 1; /* Takes up remaining space */
    background-color: #0e1012 !important;
    color: #fff !important;
    border: 1px solid #333;
    padding: 10px 15px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23888' d='M5 6L0 1l1-1 4 4 4-4 1 1z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.dob-row select option {
    background-color: #0e1012;
    color: #fff;
}

/* Focus States */
.dob-row input:focus, .dob-row select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
    outline: none;
}

/* 4. Captcha Container Styling */
.captcha-container {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #333;
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 5. Utility to hide default MyBB junk */
.hidden-field {
    display: none !important;
}

/* --- STREAMLINED REGISTRATION --- */

/* Center the form and limit width for better focus */
.register-focus-container {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

/* The Essential Inputs (User, Pass, Email) */
.reg-essential-group {
    margin-bottom: 20px;
}
.reg-essential-group label {
    font-family: var(--font-head);
    color: var(--accent);
    text-transform: uppercase;
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

/* Hide clutter inside this accordion */
details.prefs-accordion {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    margin: 20px 0;
    padding: 10px;
    transition: 0.3s;
}

details.prefs-accordion[open] {
    border-color: var(--accent);
    background: rgba(0,0,0,0.5);
}

details.prefs-accordion summary {
    cursor: pointer;
    color: #888;
    font-size: 13px;
    font-weight: bold;
    list-style: none; /* Hides default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

details.prefs-accordion summary::after {
    content: '+'; 
    font-size: 16px; 
    color: var(--accent);
}

details.prefs-accordion[open] summary::after {
    content: '-';
}

details.prefs-accordion summary:hover {
    color: #fff;
}

/* Modern Checkbox Grid */
.prefs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Toggle Switch Style for Checkboxes */
.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 4px;
}
.toggle-row:hover {
    background: rgba(255,255,255,0.07);
}
.toggle-row label {
    font-size: 12px; 
    color: #ccc; 
    cursor: pointer;
}

/* Register page right-side panel - NOT clickable */
.login-right.register-side {
    cursor: default !important;
}

/* LOG IN button (same style as main login page) */
.login-right.register-side .btn-login.register-login-btn {
    width: auto;
    min-width: 160px;
    padding: 12px 30px;
    position: relative;
    z-index: 5 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Text above the overlay */
.login-right.register-side .login-title,
.login-right.register-side .login-desc {
    position: relative;
    z-index: 5 !important;
}

/* --- VALIDATION ERROR STYLING --- */

.validation-error {
    color: #ff3333;
    font-size: 12px;
    margin-top: 5px;
    margin-bottom: 10px;
    padding-left: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Add a red border to invalid inputs */
.input-group input.validation-error {
    border-color: #ff3333 !important;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
    color: #fff !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Spacing wrapper */
.input-group-wrapper {
    margin-bottom: 10px;
}

/* --- FIXED ERROR ALERT BOX (Targets .error) --- */
.error {
    background: rgba(50, 10, 10, 0.95) !important; /* Dark Red Background */
    border: 1px solid #ff3333 !important;          /* Neon Red Border */
    border-left: 5px solid #ff3333 !important;     /* Thick left stripe */
    color: #ffcccc !important;                     /* Light text */
    padding: 15px 20px !important;
    margin-bottom: 25px !important;
    display: block !important;
    border-radius: 4px;
    font-family: var(--font-head);
    font-size: 14px;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.2);
    text-align: left;
}

/* Make SIGN UP button the same width as SIGN IN button */
.register-focus-container .btn-login {
    width: 100% !important;
    display: block;
    padding: 13px 0 !important;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 95% 100%, 0 100%);
}

/* Remove any max-width limits coming from wrapper */
.register-focus-container {
    width: 100% !important;
}

/* Allow JS to hide the MyBB error box */
.error.hidden-error {
    display: none !important;
}

/* Added here ---------------------------- * /
/* Added here ---------------------------- * /
/* Added here ---------------------------- * /
/* --- CUSTOM FORUM DROPDOWN --- */

/* Parent Item */
#header ul.menu li.has-drop {
    position: relative;
}

/* The Dropdown Container */
#header ul.menu li ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%; /* Sits directly below */
    left: 0;
    width: 240px; /* Wider to fit text like "Threads with Your Posts" */
    background: #111; /* Very dark background */
    border: 1px solid #333;
    border-top: 2px solid var(--accent); /* Neon top accent */
    box-shadow: 0 5px 15px rgba(0,0,0,0.8);
    padding: 10px 0;
    z-index: 9999;
    text-align: left;
}

/* Show on Hover */
#header ul.menu li.has-drop:hover ul.sub-menu {
    display: block;
}

/* The Category Headers (e.g. "FIND THREADS") */
#header ul.menu li ul.sub-menu li.menu-cat {
    padding: 10px 20px 5px 20px;
    font-size: 11px;
    color: #666; /* Muted grey text */
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: none;
    pointer-events: none; /* Not clickable */
    display: block;
}

/* The Links */
#header ul.menu li ul.sub-menu li a {
    display: block;
    padding: 8px 20px;
    font-size: 13px;
    color: #ccc;
    text-transform: none; /* Keeps normal casing like "New Posts" */
    font-weight: normal;
    background: transparent !important;
    border-left: 2px solid transparent; /* Prepare for hover effect */
    transition: all 0.2s;
}

/* Link Hover Effect */
#header ul.menu li ul.sub-menu li a:hover {
    background: #1a1a1a !important;
    color: #fff;
    border-left: 2px solid var(--accent); /* The blue/cyan stripe on left */
    padding-left: 25px; /* Slight movement to the right */
}

/* Remove default menu underline from dropdown items */
#header ul.menu li ul.sub-menu li a::after {
    display: none;
}

/* --- MODERN POSTING INTERFACE --- */

/* 1. Hide Dated Elements */
/* Hides the "Post Icons" row (lamp, thumbs up, etc) */
.posticons { display: none !important; } 

/* Hides the Smilie Box on the left (Smilies are already in the editor toolbar) */
.smilie_insert { display: none !important; }

/* 2. Make Editor Full Width */
/* Now that smilies are gone, stretch the editor */
#message { width: 100% !important; min-height: 400px; }
.codebuttons { width: 100% !important; }

/* 3. Hide the "Username" field (You know who you are) */
/* We only want to see this if you are a guest. */
.trow1 > strong:contains("Username:") { display: none; }

/* --- XENFORO STYLE INPUTS --- */

/* The Main Container for the posting area */
form#quick_reply_form table, 
form[action="newthread.php"] table,
form[action="newreply.php"] table {
    background: transparent !important; /* Remove grey blocks */
    border: none;
}

/* The "Thread Subject" Input */
input.textbox[name="subject"] {
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid #333 !important; /* Underline only */
    font-size: 24px !important; /* Big Title Text */
    font-family: var(--font-head);
    padding: 15px 0;
    width: 100%;
    color: #fff;
    transition: 0.3s;
}

input.textbox[name="subject"]:focus {
    border-color: var(--accent) !important; /* Neon glow on focus */
}

input.textbox[name="subject"]::placeholder {
    color: #555;
    text-transform: uppercase;
}

/* The "Options" Checkboxes (Signature, etc) */
/* Make them look like a clean list, not a cluttered table */
.trow1, .trow2 {
    background: transparent !important;
    border: none !important;
    color: #aaa;
}

/* Style the labels nicely */
label {
    cursor: pointer;
    transition: 0.2s;
}
label:hover {
    color: #fff;
}

/* Force Dark Editor */
.sceditor-container {
    background: #0e1012 !important; /* Dark background */
    border: 1px solid #333 !important;
}

.sceditor-toolbar {
    background: #15171a !important;
    border-bottom: 1px solid #222 !important;
}

/* This targets the group buttons in the toolbar */
.sceditor-group {
    background: transparent !important;
    border: none !important;
}

/* This colors the buttons white so you can see them */
.sceditor-button div {
    filter: invert(1); /* Inverts black icons to white */
    opacity: 0.7;
}

.sceditor-button:hover div {
    opacity: 1;
}

/* ------------------------------------------ */
/* 1. LAYOUT: Center and Compact (950px) */
form[action^="newthread.php"] .tborder,
form[action^="newreply.php"] .tborder {
    max-width: 950px !important;
    margin: 0 auto !important;
    background: transparent !important;
}

/* 2. EDITOR CONTAINER: Dark Grey */
.sceditor-container {
    border: 1px solid #333 !important;
    background: #1e1e1e !important; 
    border-radius: 3px;
}

/* --- 3. EDITOR LAYOUT & VISUALS (Flexbox Fix + Custom Icons) --- */

/* CONTAINER: Use Flexbox to stack the toolbar and text area */
.sceditor-container {
    display: flex !important;
    flex-direction: column !important;
    min-height: 400px !important; /* Forces the box size */
    background: #1e1e1e !important;
    border: 1px solid #333 !important;
    border-radius: 3px;
}

/* TOOLBAR: Sits at the top */
div.sceditor-toolbar {
    flex: 0 0 auto !important; /* Takes only the space it needs */
    background: transparent !important;
    border-bottom: 1px solid #333 !important;
    padding: 10px 0 !important;
}

/* TEXT AREA: Stretches to fill the rest of the box (Fixes the click issue) */
.sceditor-container iframe, .sceditor-container textarea {
    flex: 1 1 auto !important; /* Grow to fill remaining space */
    height: auto !important;
    width: 100% !important;
    
    /* Visuals */
    filter: invert(0.9) hue-rotate(180deg) !important; 
    font-family: "Segoe UI", "Roboto", Arial, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.6;
}

/* ICONS: Flat, Modern, Grayscale (Your preferred style) */
.sceditor-button div {
    filter: grayscale(100%) brightness(180%); 
    opacity: 0.7;
    transition: 0.2s;
}

.sceditor-button:hover div {
    opacity: 1;
    filter: grayscale(0%) brightness(100%); /* Color on hover */
    transform: scale(1.1);
}

.sceditor-group, .sceditor-button {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* 5. ATTACHMENT BUTTON CLEANUP */
/* Hide the headers and quota text */
#post_attachments .thead, 
#post_attachments .trow1, 
#post_attachments .smalltext, 
fieldset.trow2 legend { 
    display: none !important; 
}

fieldset.trow2 {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Style the Button */
#dropzone {
    display: inline-block !important;
    margin-top: 10px !important; /* Snaps close to editor */
    
    background: #252525 !important;
    border: 1px solid #333 !important;
    color: #ccc !important;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0 !important; /* Hide old text */
    padding: 10px 20px !important;
    border-radius: 3px;
    cursor: pointer;
    transition: 0.2s;
}

#dropzone::before {
    content: "? ATTACH FILES";
    font-size: 13px;
    letter-spacing: 0.5px;
}

#dropzone:hover {
    background: var(--accent) !important;
    color: #000 !important;
    border-color: var(--accent) !important;
}

/* --- FIX: Make SCEditor text area fully clickable --- */
.sceditor-container {
    display: block !important;
}

.sceditor-container iframe,
.sceditor-container textarea {
    flex: none !important;
    width: 100% !important;
    min-height: 350px !important;
    filter: invert(0.9) hue-rotate(180deg) !important;
    font-family: "Segoe UI", "Roboto", Arial, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.6;
}

/* --- TACTICAL HEADER FIXES --- */

/* 1. Force the Logo to fit inside the bar */
#tactical-nav .nav-logo {
    display: flex;
    align-items: center;
    height: 100%;
    margin-right: 30px;
    min-width: 150px; /* Reserve space for it */
}

#tactical-nav .nav-logo img {
    max-height: 200px !important; /* Force the image height */
    width: auto !important;      /* Maintain aspect ratio */
    margin: 0;
    padding: 0;
    vertical-align: middle;
}

/* 2. Fix the Wallet/Inventory Positioning */
#tactical-topbar .topbar-left {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 10px; /* Space between wallet and inventory */
}

.hud-item {
    display: inline-flex;
    align-items: center;
    height: 32px; /* Fixed height for boxes */
    padding: 0 10px;
    white-space: nowrap; /* Prevent text wrapping */
}

.hud-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 8px;
}

/* 3. Ensure the Wrapper keeps things centered */
#tactical-topbar .wrapper,
#tactical-nav .wrapper {
    display: flex;
    align-items: center;
    height: 100%;
}

#tactical-topbar .topbar-flex,
#tactical-nav .nav-flex {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 4. Fix Menu Links alignment */
ul.nav-links {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    height: 100%;
}

/* Admin Link Styling */
.user-strip a[href*="admin/index.php"] {
    color: #ff3333 !important;
    font-weight: bold;
    padding: 0 12px;
    height: 46px;
    line-height: 46px;
    display: inline-block;
    text-transform: uppercase;
}
.user-strip a[href*="admin/index.php"]:hover {
    background: #1a1a1a;
}

/* --- MODERN TOP RIGHT MENU (Icons & Dropdowns) --- */

/* 1. Container Layout */
.top-right-menu {
    display: flex;
    align-items: center;
    height: 46px; /* Matches topbar height */
    border-left: 1px solid rgba(255,255,255,0.05);
}

/* 2. Individual Items (Profile, Icons) */
.top-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    border-right: 1px solid rgba(255,255,255,0.05);
    transition: 0.2s;
}

.top-item:hover {
    background: rgba(255,255,255,0.05);
}

.top-item a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 15px;
    color: #aaa;
    text-decoration: none;
    transition: 0.2s;
}

.top-item a:hover {
    color: #fff;
}

/* 3. Profile Specifics */
.profile-link {
    gap: 10px;
}

.top-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%; /* Circle Avatar */
    object-fit: cover;
    border: 1px solid #333;
}

/* 4. Icons */
.icon-only i {
    font-size: 16px;
}

/* Notification Badge (Red Circle) */
.top-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff3333;
    color: #fff;
    font-size: 9px;
    font-weight: bold;
    padding: 1px 4px;
    border-radius: 4px;
    line-height: 1;
    border: 1px solid #000;
}

/* Hide badge if count is 0 (CSS Trick) */
.pms-0 { display: none; }

/* 5. DROPDOWN MENU CSS */
.top-dropdown {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background: #151515;
    border: 1px solid #333;
    border-top: 2px solid var(--accent);
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 3000;
    box-shadow: 0 10px 20px rgba(0,0,0,0.8);
    animation: fadeIn 0.2s ease;
}

/* Show Dropdown on Hover */
.profile-trigger:hover .top-dropdown {
    display: block;
}

.top-dropdown li {
    display: block;
    margin: 0;
}

.top-dropdown li a {
    display: block;
    padding: 10px 15px;
    font-size: 12px;
    color: #ccc;
    border-bottom: 1px solid #222;
    height: auto; /* Reset fixed height */
}

.top-dropdown li a:hover {
    background: #1f1f1f;
    color: #fff;
    padding-left: 20px; /* Slide effect */
    border-left: 2px solid var(--accent);
}

/* User Info Box inside Dropdown */
.user-box {
    padding: 15px;
    background: #111;
    border-bottom: 1px solid #333;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-details strong {
    color: #fff;
    font-size: 14px;
}

.user-details .sub-text {
    font-size: 11px;
    color: #666;
}

.divider {
    height: 4px;
    background: #080808;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

/* --- TOPFRAG STYLE NAV ICONS --- */

#user-icons-target {
    display: flex;
    align-items: center;
    margin-left: auto; /* Push to far right */
    height: 100%;
    border-left: 1px solid rgba(255,255,255,0.05);
    padding-left: 10px;
}

.nav-icon-group {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-icon-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 70px; /* Match header height */
    color: #888;
    font-size: 18px;
    transition: 0.2s;
    position: relative;
    border-right: 1px solid rgba(255,255,255,0.05);
}

.nav-icon-item:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

/* Profile Special Styling */
.nav-icon-item.profile-item {
    width: auto;
    padding: 0 20px;
    gap: 10px;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-family: var(--font-head);
}

/* Red Notification Badge */
.badge {
    position: absolute;
    top: 18px;
    right: 10px;
    background: #ff3333;
    color: #fff;
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 4px;
    font-family: sans-serif;
    border: 1px solid #000;
}
.badge.pms-0 { display: none; }

/* Dropdown Alignment */
.nav-dropdown.right-aligned {
    left: auto;
    right: 0;
    transform: none !important; /* Override skew */
}

/* Search specific */
.search-btn {
    color: var(--accent);
}

/* --- DROPDOWN FIXES & STYLING --- */

/* Reset the username style */
.clean-username {
    font-weight: 600;
    font-size: 13px;
    color: #fff; /* Default White */
    text-transform: none; /* No Caps */
}

.relative-container {
    position: relative;
}

/* Dropdown Box Styling */
.top-dropdown {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    background: #181818;
    border: 1px solid #333;
    border-top: 2px solid var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    z-index: 9999;
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    border-radius: 0 0 4px 4px;
}

.top-dropdown li { display: block; margin: 0; }

.top-dropdown li a {
    display: block;
    padding: 10px 15px;
    color: #bbb;
    font-size: 12px;
    text-decoration: none;
    transition: 0.2s;
    border-bottom: 1px solid #222;
}

.top-dropdown li a:hover {
    background: #222;
    color: #fff;
    padding-left: 20px;
    border-left: 2px solid var(--accent);
}

/* Menu Headers (Inbox/Alerts title) */
.menu-header {
    padding: 10px 15px;
    background: #111;
    font-weight: bold;
    color: #fff;
    font-size: 11px;
    text-transform: uppercase;
    border-bottom: 1px solid #333;
}

/* User Box in Profile Menu */
.user-box {
    padding: 15px;
    background: #121212;
    border-bottom: 1px solid #333;
}
.user-details strong { display: block; font-size: 14px; color: #fff; }
.user-details .sub-text { font-size: 11px; color: #666; }

/* Stop the Hover Effect from breaking layout */
.profile-trigger:hover .top-dropdown { display: none; } /* Disable CSS hover, use JS click */

/* --- FINAL HEADER FIXES --- */

/* 1. Fix Bell/Envelope Icon Colors */
.nav-icon-item i {
    color: #888; /* Grey by default */
    font-size: 16px;
    transition: 0.3s;
}

.nav-icon-item:hover i {
    color: #fff; /* White on hover */
}

/* 2. Ensure correct layout for the moved icons */
#user-icons-target .nav-icon-group {
    display: flex;
    height: 100%;
    align-items: center;
}

/* 3. Fix Profile Trigger Layout */
.profile-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    padding: 0 15px;
    color: #ccc;
    text-decoration: none;
}

.clean-username {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    text-transform: none; /* Respect user caps */
}

/* 4. Dropdown Styling Updates */
.top-dropdown {
    top: 65px; /* Pushes dropdown slightly down to clear the bar */
    background: #151515;
    border: 1px solid #252525;
    border-top: 2px solid var(--accent);
}

/* 5. Admin Link in Top Strip */
.user-strip a[href*="admin/index.php"] {
    color: #ff4444 !important;
    font-weight: bold;
    text-transform: uppercase;
    padding: 0 10px;
}
/* --- CUSTOM DROPDOWN MENU --- */

/* 1. The Parent Container */
li.nav-item.has-sub {
    position: relative; /* Crucial for positioning the dropdown */
}

/* 2. The Dropdown Box (Hidden by default) */
ul.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: #0e0e0e; /* Very dark background */
    border: 1px solid #333;
    border-top: 2px solid #00e5ff; /* Cyan accent bar on top */
    padding: 0;
    margin: 0;
    list-style: none;
    z-index: 2000;
    box-shadow: 0 10px 20px rgba(0,0,0,0.8);
}

/* 5. The Links */
ul.nav-dropdown li a {
    display: block;
    padding: 8px 15px;
    font-size: 13px;
    color: #ccc;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.2s ease;
    text-align: left; /* Ensure left align */
    transform: none !important; /* Reset any previous skew/transforms */
}

/* 6. Link Hover Effect */
ul.nav-dropdown li a:hover {
    background: #1a1a1a;
    color: #fff;
    border-left: 3px solid #00e5ff; /* Cyan stripe on left */
    padding-left: 12px; /* Slight nudge right */
}

/* --- FINALIZED ESPORTS HEADER --- */

.relative-container {
    position: relative;
    display: flex;
    align-items: center;
    height: 60px;
}

/* 1. TOP BAR & NAV BAR COLORS */
#tactical-topbar, #tactical-nav {
    background: #090909 !important;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* 2. THE BREAKOUT LOGO */
.breakout-logo {
    position: absolute;
    top: 10px; /* Adjust this to move it up/down overlapping the top bar */
    left: 50%;
    transform: translateX(-50%); /* Centers horizontally */
    z-index: 1000; /* Ensures it's on top of absolutely everything */
    pointer-events: none; /* Allows clicking through the empty space around logo */
}

.breakout-logo a {
    pointer-events: auto; /* Makes the logo itself clickable */
}

.breakout-logo img {
    height: 90px; /* Bigger height! Adjust as needed */
    width: auto;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.6));
    transition: transform 0.3s;
}
.breakout-logo img:hover { transform: scale(1.05); }

/* 3. MENU SPACING (The Gaps) */
/* Push DONATE to the left */
.margin-right-gap { margin-right: 130px !important; } 
/* Push STATS to the right */
.margin-left-gap { margin-left: 130px !important; }

/* Style the profile link to match other nav items */
.user-panel-right a.profile-link {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 20px !important;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
}

.nav-avatar {
    border-radius: 4px !important; /* 4px = Soft Square. Change to 0px for Sharp Square */
    border: none !important;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
    border: 2px solid #333;
    margin: 12px;
    box-shadow: none !important;
}

.user-panel-right a:hover .nav-avatar { 
    border-color: #00e5ff;
    border: none !important;
    box-shadow: none !important;
}

/* --- NEW HEADER LAYOUT (CLICK SYSTEM) --- */
.relative-container {
    position: relative;
    display: flex;
    align-items: center;
    height: 60px;
}

#tactical-nav {
    background: #090909;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* --- LOGO BADGE (Keystone Shape) --- */
.nav-logo-absolute {
    position: absolute;
    pointer-events: none;
    top: -50px; /* Sticks to the top of the black bar */
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    
    /* 1. THE BACKGROUND COLOR */
    /* If you really want white, change #111 to #ffffff */
    background: #7fff84;
    
    /* 2. SIZE & PADDING */
    width: 160px; /* Fixed width for the shape */
    height: 110px; /* Fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 0px; /* Pushes logo up slightly */
    
    /* 3. THE CLIP PATH SHAPE (Trapezoid) */
    /* This cuts the sides to make it look like a Keystone */
    clip-path: polygon(
        0 0,          /* Top Left */
        100% 0,       /* Top Right */
        85% 100%,     /* Bottom Right (Angled In) */
        15% 100%      /* Bottom Left (Angled In) */
    );
    
    /* Optional: Add a top border line using a gradient hack */ 
}

/* Make the logo clickable */
.nav-logo-absolute a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

/* The Image Styling */
.nav-logo-absolute img {
    max-height: 85px; /* Adjust to fit inside the badge */
    max-width: 100%;
    width: auto;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.5));
    transition: transform 0.3s;
}

/* Hover Effect */
.nav-logo-absolute:hover img {
    transform: scale(1.1);
}

/* --- 2. SPACING GAPS (For the Logo) --- */
.margin-right-gap { margin-right: 140px !important; }
.margin-left-gap { margin-left: 140px !important; }

/* --- 3. CLICK DROPDOWN SYSTEM --- */
.has-click-sub {
    position: relative;
    height: 100%;
}

/* HIDDEN BY DEFAULT */
ul.nav-dropdown {
    display: none; 
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: rgba(15, 15, 20, 0.98); /* Glassy dark */
    border: 1px solid #333;
    border-top: 2px solid #00e5ff; /* Cyan Accent */
    padding: 5px 0;
    list-style: none;
    z-index: 5000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.9);
}

/* SHOW ONLY WHEN CLICKED (JS adds this class) */
.has-click-sub.is-open ul.nav-dropdown {
    display: block !important;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dropdown Items */
ul.nav-dropdown li {
    display: block;
    margin: 0;
    border: none !important;
}

ul.nav-dropdown li a {
    display: block;
    padding: 10px 20px;
    color: #bbb;
    font-size: 13px;
    text-transform: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: transparent;
    transition: 0.2s;
}

ul.nav-dropdown li a:hover {
    background: #1a1a1a;
    color: #fff;
    padding-left: 25px;
    border-left: 3px solid #00e5ff;
}

/* Headers (WHAT'S NEW, etc) */
ul.nav-dropdown li.menu-header {
    font-size: 11px;
    color: #666;
    font-weight: 800;
    padding: 10px 20px 5px;
    pointer-events: none;
}

.profile-link {
    display: flex;
    align-items: center;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    height: 100%;
}

/* Align Profile Dropdown to the Right Edge */
ul.nav-dropdown.profile-dropdown-fix {
    left: auto;
    right: 0; 
}

/* --- EMERGENCY LAYOUT REPAIR --- */

/* 1. Fix the Bar Background */
#tactical-nav {
    background: #090909 !important;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 4000;
    width: 100%;
}

/* 2. Fix the List (Removes Bullet Points & Aligns Horizontally) */
ul.nav-links {
    display: flex !important;
    align-items: center !important;
    list-style: none !important; /* Removes the white dots */
    margin: 0 !important;
    padding: 0 !important;
    height: 100%;
}

/* 3. Fix the Button Layout */
li.nav-item {
    display: flex !important;
    align-items: center;
    height: 100%;
    position: relative;
    overflow: visible !important;
    border: none !important;
}

/* Create Left and Right Borders */
li.nav-item::before, 
li.nav-item::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    width: 2px !important;
    height: 0% !important; /* Starts invisible */
    background: #fff !important; /* White Brackets */
    box-shadow: 0 0 8px #fff !important;
    transition: all 0.3s ease !important;
    transform: translateY(-50%) !important; /* Center Vertically */
}

/* Position Left Bracket */
li.nav-item::before {
    left: 0 !important;
}

/* Position Right Bracket */
li.nav-item::after {
    right: 0 !important;
}

/* Expand Brackets on Hover */
li.nav-item:hover::before,
li.nav-item:hover::after,
li.nav-item.active::before,
li.nav-item.active::after {
    height: 60% !important; /* Expands to 60% height of button */
}

/* Add a background tint */
li.nav-item:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}

li.nav-item a {
    display: flex !important;
    align-items: center;
    height: 100%;
    padding: 0 25px !important;
    text-decoration: none !important;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    background: transparent; /* Fix background overlap */
}

.nav-logo-absolute img {
    height: 85px;
    width: auto;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.8));
}

/* 5. Restore Gaps for Logo */
.margin-right-gap { margin-right: 140px !important; }
.margin-left-gap { margin-left: 140px !important; }

/* Push everything after DONATE to the right side */
.margin-right-auto {
    margin-right: auto !important; 
    padding-right: 40px !important; /* Extra space so it doesn't touch the logo */
}
/* --- HEADER ICONS --- */
.top-icons {
    display: flex;
    align-items: center;
    border-right: 1px solid rgba(255,255,255,0.1);
    padding: 0 15px 0 15px;
    height: 60%;
}

.icon-btn {
    position: relative; /* For the badge positioning */
    color: #888;
    font-size: 16px;
    margin: 0 10px;
    transition: 0.3s;
    text-decoration: none;
}

.icon-btn:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--accent);
    transform: scale(1.1);
}

/* The Red Dot Badge */
.badge-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background-color: #ff3333;
    border-radius: 50%;
    border: 1px solid #000;
}

/* Utility to hide badge if no messages */
.hidden { display: none; }
/* --- BETTER MENU ALIGNMENT --- */

/* 1. Force the Menu to be DEAD CENTER of the screen */
ul.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10; /* Sit below the logo */
}

/* 2. The Invisible Spacer */
/* This acts like a physical block that pushes the buttons apart */
li.nav-logo-spacer {
    display: block;
    width: 200px; /* The width of the "Hole". Adjust this to fit your logo size */
    height: 1px;
}

/* 4. USER PANEL (Restored Single Line Style) */
.user-panel-right {
    position: absolute;
    right: 0;
    margin-left: auto !important; /* Push to far right */
    border-left: 1px solid rgba(255,255,255,0.05);
    margin-right: 0 !important;
    height: 100%;
    display: flex !important;
    align-items: center !important;
    cursor: pointer;
    background: #090909; /* Cover any menu items if they overlap on small screens */
    z-index: 20;
}

/* 2. Create the "Energy Beam" Vertical Border (Left Side) */
.user-panel-right::before {
    content: "";
    position: absolute;
    left: 0;
    
    /* Center it vertically so it doesn't touch the edges */
    top: 15%;
    bottom: 15%;
    width: 2px; /* Thickness of the beam */
    
    /* The Magic Gradient: Fades out at top/bottom, Bright White in middle */
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 20%, 
        #ffffff 50%, 
        rgba(255, 255, 255, 0.2) 80%, 
        transparent 100%
    );
    
    /* Glow Effect */
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
    opacity: 0.7;
}

/* 3. Add a Hover Effect to the background only */
.user-panel-right:hover {
    background: rgba(255, 255, 255, 0.05); /* Light up slightly on hover */
}

/* 4. REMOVED: The bottom laser line code is gone */
.user-panel-right::after {
    display: none !important;
}

/* --- GUEST BUTTONS --- */
.nav-btn-guest {
    display: inline-block;
    padding: 8px 20px;
    margin-left: 10px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 13px;
    color: #ccc;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.2);
    transition: 0.2s;
    clip-path: polygon(10px 0, 100% 0, 100% 100%, 0% 100%, 0% 10px); /* Tactical Cut */
}

.nav-btn-guest:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: #fff;
}

/* Register Button (Highlighted) */
.nav-btn-guest.register {
    background: #00e5ff; /* Your Accent Color */
    color: #000;
    border-color: #00e5ff;
}

.nav-btn-guest.register:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 15px #00e5ff;
}

/* 1. Make the Main Container a Flex Column */
#container {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Force container to be at least full screen height */
}

/* 2. Make the Middle Content "Grow" to fill empty space */
#content {
    flex: 1; 
}

/* Hide the confusing layout switchers */
.float_right a[href*="mode=threaded"], 
.float_right a[href*="mode=linear"] {
    display: none !important;
}

.ctrl-left, .ctrl-right {
    display: flex;
    gap: 5px; /* Spacing between buttons */
}

/* BUTTON STYLING */
.post_controls a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    font-size: 10px;
    font-weight: 700;
    color: #aaa;
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
    text-transform: uppercase;
    transition: 0.2s;
    border: 1px solid transparent;
}

.post_controls a:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

/* BUTTON SPAN FIX (Removes the weird image sprite offset) */
.post_controls a span {
    background: none !important;
    padding: 0 !important;
}

/* REMOVE THREAD RATING */
.thread_rating, .rating {
    display: none !important;
}

.author_information {
    margin-bottom: 10px; /* Pull stats closer to name */
}

/* --- PERMANENT TACTICAL LINE --- */
.tactical-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1); /* Subtle white line */
    margin: 10px 20px; /* Spacing from sides */
    width: auto;
    display: block;
}

/* --- FIX: Force split-menu text to the RIGHT (with original left spacing) --- */
li.nav-item.has-click-sub a.nav-link-text {
    padding-right: 0px !important; /* Remove gap on the right */
    padding-left: 25px !important; /* Restore the original left spacing */
    
    /* Snap the text to the right side */
    justify-content: flex-end !important; 
    text-align: right !important;            
}


/* --- PRO UPGRADE 3: HIGH-END DROPDOWNS --- */

ul.nav-dropdown {
    /* Darker, solid background for readability */
    background: #111111 !important;
    
    /* Remove default border, add Neon Top */
    border: none !important;
    border-top: 3px solid var(--accent) !important;
    
    /* Deep Shadow to make it look like it's floating high */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9) !important;
    
    /* Rounded bottom corners */
    border-radius: 0 0 6px 6px;
    
    /* Slight spacing from the bar */
    margin-top: 0px; 
}

/* Better Link Spacing in Dropdown */
ul.nav-dropdown li a {
    padding: 12px 20px !important; /* More breathing room */
    color: #888 !important;
    border-bottom: 1px solid rgba(255,255,255,0.03) !important;
    font-weight: 600;
}

/* Hover Effect for Dropdown Items */
ul.nav-dropdown li a:hover {
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.1), transparent) !important;
    color: #fff !important;
    padding-left: 28px !important; /* Slide animation */
    border-left: 3px solid var(--accent) !important;
}