/* Theme version: 1.50 - Semi Dark */

/* ==========================================================================
   Enhanced CSS Theme - Version 1.60
   Modern improvements while preserving all original functionality
   ========================================================================== */

/* Enhanced CSS Custom Properties - Extended Design System */
:root {
    --primary-color: #5c6bc0;  /* Modern purple accent */
    --secondary-color: #4fc3f7; /* Light blue */
    --dark-bg: #1e1e2f;        /* Dark background */
    --darker-bg: #161625;      /* Even darker for contrast */
    --light-bg: #2b2b3a;       /* Light elements on dark */
    --text-color: #e0e0e0;     /* Light text */
    --text-muted: #a0a0a0;     /* Muted text */
    --border-color: #3a3a4a;   /* Border color */
    --success-color: #4caf50;  /* Green */
    --warning-color: #ff9800;  /* Orange */
    --danger-color: #f44336;   /* Red */
    
    /* Enhanced Design Tokens */
    --primary-hover: #7c4dff;
    --secondary-hover: #29b6f6;
    --accent-color: #ff4b91;
    --info-color: #2196f3;
    
    /* Typography Scale */
    --font-size-xs: 11px;
    --font-size-sm: 12px;
    --font-size-base: 13px;
    --font-size-md: 14px;
    --font-size-lg: 16px;
    --font-size-xl: 18px;
    --font-size-2xl: 24px;
    
    /* Spacing Scale (8px base) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    
    /* Border Radius Scale */
    --radius-sm: 2px;
    --radius-md: 6px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 1000px;
    
    /* Shadow Scale */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Z-Index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-toast: 9999;
    
    /* Animation Timing */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
    --transition-bounce: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Enhanced Accessibility Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (prefers-contrast: high) {
    :root {
        --border-color: #666;
        --text-muted: #ccc;
    }
}

/* Enhanced Focus Management */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Enhanced Base Styles */

body {
    background: var(--dark-bg);
    color: var(--text-color);
    text-align: left;
    line-height: 1.431;
    margin: 0;
    font-family: "Oswald", sans-serif;
    font-size: 16px;
    overflow-y: scroll; 
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    vertical-align: baseline;
	font-weight: 300;
	cursor: url(../../../images/cursors/normal.png) 16 16, auto;
    scroll-behavior: smooth;
}

/* Enhanced Cursor Support with Fallbacks */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  cursor: url(../../../images/cursors/pointer.png) 16 16, text;
}
input[type="text"],
textarea {
  cursor: url(../../../images/cursors/pointer.png) 16 16, text;
}
a, button, input[type="submit"], input[type="button"], .button {
  cursor: url(../../../images/cursors/pointer.png) 16 16, pointer;
}

/* Enhanced Animation Support */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { transform: translate3d(0, 0, 0); }
    40%, 43% { transform: translate3d(0, -8px, 0); }
    70% { transform: translate3d(0, -4px, 0); }
    90% { transform: translate3d(0, -2px, 0); }
}

.hidecontent {
  background: linear-gradient(135deg, #1a1a1a, #2b2b2b);
  color: #ccc;
  border: 1px solid #444;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin: 20px auto;
  max-width: 500px;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  font-family: 'Segoe UI', sans-serif;
  animation: fadeIn 0.6s ease-in-out;
}

/* Enhanced Link Styles */

a:link {
    transition: all .12s ease !important;
    color: #d6d6d6;
    text-decoration: none; 
}

a:visited {
    color: #d6d6d6;
    text-decoration: none; 
}

a:hover,
a:active { color: var(--primary-color); }

/* Enhanced Typography */
h1, h2, h3, h4 {
    padding: 0;
    margin-top: 0;
    font-weight: normal;
    color: #fff;
}

/* Enhanced List Styles */
ol, ul, li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Enhanced Container with Responsive Support */
#container {
    font-family: "Oswald", sans-serif;
    text-align: left;
    color: var(--text-color);
    line-height: 1.431;
    margin: 0;
    font-size: 15px;
    min-width: 960px; 
    background: var(--dark-bg);
	letter-spacing: 0.2px;
}

/* Enhanced Responsive Container */
@media (max-width: 1024px) {
    #container {
        min-width: auto;
        width: 100%;
    }
}

/* Enhanced Wrapper */
.wrapper {
    max-width: 1370px;
    margin: auto auto; 
}

@media (max-width: 1400px) {
    .wrapper {
        max-width: 95%;
        padding: 0 var(--space-4);
    }
}

/* Enhanced Logo Section */
#logo {
    background: var(--darker-bg) url(../../../images/flatty/header-logo.png) no-repeat 0% 10% / cover;
    height: 220px;
    width: 100%;
    display: flex;
    padding: 0 15px;
    display: -webkit-flex;
    display: -ms-flexbox;
    box-sizing: border-box;
    border-bottom: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    #logo {
        height: 150px;
        padding: 0 var(--space-3);
    }
}

#logo .wrapper {
    width: 100%;
}

/* Enhanced Content Area */
#content {
    width: auto !important;
    padding: 38px 10px;
    overflow: hidden;
    background: var(--dark-bg); 
}

@media (max-width: 768px) {
    #content {
        padding: var(--space-5) var(--space-3);
    }
}

/* Enhanced Header with Better Positioning */
#header {
    position: sticky;
    top: 0px;
    z-index: var(--z-sticky);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Enhanced Menu Styles */
#header ul.menu {
    text-align: right;
    margin: 0;
    padding: 0;
    list-style: none; 
}

@media (max-width: 768px) {
    #header ul.menu {
        text-align: center;
        flex-wrap: wrap;
        gap: var(--space-2);
    }
}

#header ul.menu li {
    margin: 0 4px;
    display: inline;
}

#header ul.menu li a {
    padding-left: 21px;
    display: inline-block;
    color: #fff;
    transition: var(--transition-base);
}

#header ul.menu li a:hover {
    transform: translateY(-1px);
    color: var(--secondary-color);
}

#logo ul.top_links {
    text-align: right;
    margin: -10px 5px 0 0;
}

/* Enhanced Panel System */
#panel {
    position: relative;
    z-index: var(--z-fixed);
    width: 100%;
}

#panel .upper a.logout {
    font-weight: 400;
    padding-right: 20px;
    margin-left: 10px; 
}

#panel .upper a.login,
#panel .upper a.lost_password {
    padding: 7px 21px 7px 20px;
    background: var(--primary-color);
    transition: var(--transition-base);
    border-radius: var(--radius-sm);
}

#panel .upper a.register {
    padding: 7px 21px 7px 20px;
    margin-left: 7px;
    background: #ff7043;
    transition: var(--transition-base);
    border-radius: var(--radius-sm);
}

#panel .upper a.login:hover { 
    background: var(--primary-hover); 
    color: #fff; 
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

#panel .upper a.register:hover { 
    background: #ff8a65; 
    color: #fff; 
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

#panel .lower ul.panel_links { float: right; }
#panel .lower ul.user_links { float: left; }

@media (max-width: 768px) {
    #panel .lower ul.panel_links,
    #panel .lower ul.user_links {
        float: none;
        text-align: center;
        margin: var(--space-2) 0;
    }
}

#panel .lower ul.user_links li a {
    padding: 0;
    padding-right: 5px;
    background-image: none; 
}

/* Enhanced Modal Styles */
.modal.login-modal input.button {
    background: var(--primary-color);
    color: #fff;
    border-radius: var(--radius-md);
    padding: 8px 18px;
    font-weight: bold;
    transition: var(--transition-base);
}

.blocker {
    background: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.modal.login-modal input.button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

#panel .upper {
    position: relative;
    background: var(--darker-bg);
    color: #fff;
    clear: both;
    height: 64px;
    line-height: 64px;
    padding: 0px 15px;
    overflow: hidden;
}

@media (max-width: 768px) {
    #panel .upper {
        height: auto;
        line-height: 1.5;
        padding: var(--space-4) var(--space-3);
    }
}

#panel .upper a:link,
#panel .upper a:visited,
#panel .upper a:active { color: #fff; }
#panel .upper a:hover { 
    color: var(--secondary-color); 
    text-decoration: none; 
}

#panel .lower {
    background: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    height: 39px;
    line-height: 40px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
    overflow: hidden;
}

@media (max-width: 768px) {
    #panel .lower {
        height: auto;
        line-height: 1.5;
        padding: var(--space-3);
    }
}

#panel .lower a:link,
#panel .lower a:visited,
#panel .lower a:hover,
#panel .lower a:active { color: var(--text-color); }

.panel-pm {
    margin-left: 13px;
}

/* Enhanced Search Styles */
#search {
    border: 0;
    padding: 0;
    margin: 0;
    float: right;
    vertical-align: middle; 
}

@media (max-width: 768px) {
    #search {
        float: none;
        width: 100%;
        margin: var(--space-2) 0;
    }
}

#search input.button,
#search input.textbox { border-color: #000; }
#search input.button { background: var(--primary-color); color: #fff; }
#search input { margin: -3px 0; }

#quick_login .remember_me input {
    vertical-align: middle;
    margin: -1px 0 0 1px;
}

/* Enhanced Footer Styles */
#footer { clear: both; }
#footer ul.menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

#footer ul.menu li {
    margin: 0 5px;
    display: inline;
}

#footer .upper {
    background: var(--light-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 6px;
    font-size: 12px;
    overflow: hidden; 
}

#footer a:link,
#footer a:visited,
#footer a:hover,
#footer a:active { color: var(--text-muted); }

#footer .upper .language {
    float: right;
    margin: -1px;
    margin-left: 15px; 
}

@media (max-width: 768px) {
    #footer .upper .language {
        float: none;
        margin: var(--space-2) 0;
    }
}

#footer .upper .language select { border-color: var(--border-color); }

#footer .upper .theme {
    float: right;
    margin: -1px;
    margin-left: 15px;
}

@media (max-width: 768px) {
    #footer .upper .theme {
        float: none;
        margin: var(--space-2) 0;
    }
}

#footer .upper .theme select { border-color: var(--border-color); }
#footer .upper ul.bottom_links {
    float: none;
    margin: 8px -4px 7px; 
}

#footer .uppermid {
    overflow: hidden;
    background: var(--darker-bg);
    padding: 2rem;
    color: var(--text-muted);
    font-size: 13px;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    #footer .uppermid {
        padding: var(--space-6);
    }
}

#footer .uppermid a:link,
#footer .uppermid a:visited { color: var(--text-muted); }
#footer .uppermid a:hover,
#footer .uppermid a:active { color: var(--text-color); }

#footer .lower {
    overflow: hidden;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 1.5em 1.8em;
    line-height: 18px;
    font-size: 13px;
    background: var(--darker-bg);
}

@media (max-width: 768px) {
    #footer .lower {
        padding: var(--space-6) var(--space-4);
        text-align: center;
    }
}

#footer .lower a:link,
#footer .lower a:visited { color: var(--text-muted); }
#footer .lower a:hover,
#footer .lower a:active {
    color: var(--text-color); 
    text-decoration: none; 
}

#footer .lower #social {
    float: right;
    color: var(--text-muted);
    margin-top: -17px; 
}

@media (max-width: 768px) {
    #footer .lower #social {
        float: none;
        margin-top: var(--space-4);
    }
}

#debug {
    float: right;
    text-align: right;
    margin-top: 20px;
    font-size: 11px; 
}

/* Enhanced Image Handling */
.scaleimages img { 
    max-width: 100%; 
    overflow: hidden; 
    height: auto;
}

/* Enhanced Button Interactions */
.remove_buddy_button:hover { 
    color: #808080 !important;
    background: rgba(39, 174, 96, .04) !important; 
    transition: var(--transition-base);
}

.report_user_button:hover {
    color: #728675 !important;
    background: rgba(230, 126, 34, .04) !important; 
    transition: var(--transition-base);
}

/* Enhanced Forum Status Icons */
.forum_status {
    cursor: default;
    font-size: 28px;
    padding-left: 10px;
    margin-right: -5px;
    text-align: center;
    transition: var(--transition-base);
}

.forum_status i {
    display: inline-block;
    line-height: 50px;
    color: var(--primary-color); 
}

.forum_status:hover i {
    transform: scale(1.1);
    transition: var(--transition-bounce);
}

.forum_on { color: var(--secondary-color); }
.forum_off, .forum_offlock, .forum_offlink { color: var(--text-muted); }
.forum_off i { opacity: .7; }
.forum_offclose i:before { content: "\f023"; color: #ef7351; }
.forum_offlink i:before { content: "\f0c1"; color: #44ce9d; }

.subforumicon {
    display: inline-block;
    font-size: 11px;
    height: 10px;
    width: 10px;
    margin: 0px 3px 0px 7px;
}

.subforum_minion { color: var(--text-color); }
.subforum_minioff, 
.subforum_minioffclose,
.subforum_miniofflink { color: var(--text-muted); }
.subforum_minioff { opacity: .5; }
.subforum_minioffclose i:before { content: "\f023"; }
.subforum_miniofflink i:before { content: "\f0c1"; }

/* Enhanced Table Styles */
table {
    color: var(--text-muted);
    font-size: 16px;
    font-family: inherit; 
	letter-spacing: 0.2px;
    border-collapse: collapse;
    width: 100%;
}

.tborder {
    background: var(--light-bg);
    width: 100%;
    margin: auto auto; 
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.tfixed {
    table-layout: fixed;
    word-wrap: break-word; 
}

/* Enhanced Table Headers */
.thead {
    background: var(--primary-color);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    padding: 1.2em 1.425em 1.175em 1.275em;
    line-height: 24px;
    position: relative;
}

.thead::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-hover), transparent);
}

.thead.side {
    background: #494d5d;
    padding: 5px;
}

.thead a:link {
    color: #fff;
    text-decoration: none; 
}

.thead a:visited {
    color: #fff;
    text-decoration: none;
}

.thead a:hover,
.thead a:active {
    color: #fff;
    text-decoration: underline; 
}

.thead.signin {
    background: var(--light-bg);
    font-size: 24px;
    color: var(--text-color) !important;
    text-align: center;
    padding: 1rem 1rem 1.5rem 1rem;
}

.tcat {
    background: var(--darker-bg);
    font-size: 12px;
    box-sizing: border-box;
    padding: 11px 20px 9px 18px;
    border-bottom: 1px solid var(--border-color);
}

.tcat a:link, 
.tcat a:visited { }

.tcat a:hover,
.tcat a:active { color: var(--primary-color); }

/* Enhanced Table Rows with Better Hover Effects */
.trow1 {
    background: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1.025em 1.275em 0.875em 1.175em; 
    transition: var(--transition-base);
}

.trow1:hover {
    background: rgba(92, 107, 192, 0.05);
    transform: translateX(2px);
}

.trow2 {
    background: rgba(43, 43, 58, 0.7);
    border-bottom: 1px solid var(--border-color);
    padding: 1.025em 1.275em 0.875em 1.175em; 
    transition: var(--transition-base);
}

.trow2:hover {
    background: rgba(92, 107, 192, 0.05);
    transform: translateX(2px);
}

.trow_shaded {
    background: rgba(76, 175, 80, 0.1);
    border: 0;
    padding: 1.025em 1.275em 0.875em 1.175em;
}

.no_bottom_border { border-bottom: 0; }

.post.unapproved_post { background: rgba(244, 67, 54, 0.1); }
.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; }

.trow_deleted,
.post.deleted_post { 
    background: rgba(245, 246, 247, 0.1);
    border-bottom: 1px solid var(--border-color);
}

.trow_selected,
tr.trow_selected td {
    background: rgba(249, 251, 231, 0.1) !important;
    color: #fff;
}

.trow_selected a:link,
.trow_selected a:visited,
.trow_selected a:hover,
.trow_selected a:active { color: #fff; }

.trow_sep {
    background: var(--border-color);
    color: var(--text-color);
    padding: 8px 18px;
    font-size: 12px;
    font-weight: 600; 
}

.deleted_post_hidden {
    border-top: 2px solid var(--border-color);
    padding: 15px;
}

.deleted_post_collapsed {
    background: var(--light-bg);
    margin-bottom: 7px;
    padding: 15px;
    border: 1px solid var(--border-color);
}

.deleted_post_collapsed .show_deleted_post { margin: -16px 6px 0 0; }
.deleted_post_collapsed .show_deleted_post a.button span {  }

.tfoot {
    padding: 10px;
    color: var(--text-muted);
    background: var(--darker-bg); 
    border-top: 1px solid var(--border-color);
}

.tfoot a:link {
    color: var(--text-color);
    text-decoration: none; 
}

.tfoot a:visited {
    color: var(--text-color);
    text-decoration: none; 
}

.tfoot a:hover,
.tfoot a:active {
    color: var(--primary-color);
    text-decoration: underline; 
}

.thead input.textbox,
.thead select { border: 1px solid #263c30; }

.bottommenu {
    background: var(--light-bg);
    color: var(--text-color);
    border: 1px solid var(--primary-color);
    padding: 10px; 
}

/* Enhanced Navigation */
.navigation {
    margin-bottom: 13px;
    padding: 0 19px;
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 13px;
    overflow: hidden;
    height: 48px;
    line-height: 48px;
    font-family: inherit;
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
    .navigation {
        height: auto;
        line-height: 1.5;
        padding: var(--space-4) var(--space-3);
    }
}

.navigation a:link { text-decoration: none; color: #fff !important; }
.navigation a:visited { text-decoration: none; }

.navigation a:hover,
.navigation a:active { 
    text-decoration: underline; 
    color: var(--secondary-color) !important;
}

.navigation a:focus { color: #ccc; }
.navigation .active i:before { content: "\f015"; color: #fff; }

.navigation .active {
    font-weight: 900;
    color: #fff;
    font-size: 13px; 
}

.smalltext {
    color: var(--text-muted);
}

.smalltext .mmg {
	width: 280px;
    height: 80px;
    object-fit: contain;
}

.mmg {
	width: 280px;
    height: 80px;
    object-fit: contain;
}

.largetext {
    font-size: 17px;
    font-weight: 400;
    color: var(--text-color);
}

/* Enhanced Form Styles */
fieldset {
    padding: 12px;
    border: 2px solid var(--border-color);
    margin: 0; 
    background: var(--light-bg);
    border-radius: var(--radius-sm);
}

fieldset.trow1,
fieldset.trow2 { border-color: var(--border-color); }

fieldset.align_right { text-align: right; }

/* Enhanced Input Styles */
input.textbox {
    background: var(--darker-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 5px 7px;
    outline: 0;
    box-sizing: border-box; 
    font-size: 13px;
    font-family: inherit;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
}

input.textbox:focus {
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 0 3px rgba(92, 107, 192, 0.1);
    transform: translateY(-1px);
}

textarea {
    background: var(--darker-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 8px;
    line-height: 1.4;
    outline: 0;
    font-family: inherit;
    font-size: 13px;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
    resize: vertical;
}

textarea:focus {
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 0 3px rgba(92, 107, 192, 0.1);
}

/* Enhanced Select Styles */
select {
    font-family: "Oswald", sans-serif;
    font-size: 13px;
    border: 1px solid var(--border-color); 
    outline: 0;
    height: 32px;
    padding: 0 45px 0 8px;
    color: var(--text-color);
    background: var(--darker-bg) url(../../../images/flatty/arrow-down.png) no-repeat 93% 55%;
    background-size: 10px;
    -moz-appearance: none;
    -webkit-appearance: none;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
}

select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(92, 107, 192, 0.1);
}

/* Enhanced Button Styles */
button,
input.button {
    padding: 6px 15px 6px 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    background: var(--primary-color);
    border: 0 !important;
    outline: 0 !important;
    color: #fff;
    border-radius: var(--radius-sm) !important;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

button:hover,
input.button:hover { 
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

button:active,
input.button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

form {
    margin: 0;
    padding: 0; 
}

/* Enhanced Form Validation Styles */
input.error, textarea.error, select.error {
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
}

input.valid, textarea.valid, select.valid { 
    border: 1px solid var(--success-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

label.error {
    color: var(--danger-color);
    margin: 5px;
    padding: 0px;
    display: block;
    font-weight: 500;
    font-size: 11px; 
    animation: fadeIn 0.3s ease;
}

form #message { 
    width: 500px; 
    box-sizing: border-box; 
}

@media (max-width: 768px) {
    form #message {
        width: 100%;
    }
}

/* Enhanced Editor Styles */
.editor {
    background: var(--darker-bg);
    border: 1px solid var(--border-color); 
    border-radius: var(--radius-sm);
}

.editor_control_bar {
    background: var(--light-bg);
    border: 1px solid var(--border-color); 
    margin-bottom: 5px; 
    border-radius: var(--radius-sm);
}

.post .editor_control_bar { background: var(--light-bg); }

/* Enhanced Popup Menu */
.popup_menu {
    z-index: var(--z-popover);
    box-shadow: var(--shadow-lg);
    padding: 1px;
    border-radius: var(--radius-md) !important;
    background: var(--light-bg); 
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.popup_menu:before {
    position: absolute; 
    width: 0; height: 0;
    content: "";
    display: block;
    left: 1.4em;
    bottom: 100%;
    border-bottom: 7px solid var(--light-bg);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
}

.popup_menu .popup_item { color: var(--text-color); }
.popup_menu .popup_item:hover {
    background: none;
    color: var(--primary-color) !important; 
    transform: translateX(2px);
    transition: var(--transition-base);
}

/* Enhanced Reputation Styles */
.trow_reputation_positive { background: rgba(76, 175, 80, 0.2); }
.trow_reputation_negative { background: rgba(244, 67, 54, 0.2); }

.reputation_positive { color: var(--success-color); }
.reputation_neutral { color: var(--text-muted); }
.reputation_negative { color: var(--danger-color); }

.repbox {
    font-size:16px;
    font-weight: bold;
    padding:5px 7px 5px 7px; 
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
}

.repbox:hover {
    transform: scale(1.05);
}

._neutral {
    background-color:var(--light-bg);
    color: var(--text-muted);
    border:1px solid var(--border-color); 
}

._minus {
    background-color: rgba(244, 67, 54, 0.2);
    color: var(--danger-color);
    border:1px solid var(--danger-color); 
}

._plus {
    background-color: rgba(76, 175, 80, 0.2);
    color: var(--success-color);
    border:1px solid var(--success-color); 
}

img { border: none; }

img.attachment {
    border: 1px solid var(--secondary-color);
    margin-top: 10px;
    margin-bottom: -5px;
    padding: 1px;
    border-radius: var(--radius-sm); 
    transition: var(--transition-base);
}

img.attachment:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

hr {
    background-color: var(--border-color);
    color: var(--border-color);
    height: 1px;
    border: 0px; 
}

/* Enhanced Utility Classes */
.clear { clear: both; }

.float_left { float: left; }
.float_right { float: right; }

.text_left { text-align: left; }
.text_right { text-align: right; }

.hidden {
    display: none;
    float: none;
    width: 1%; 
}

.hiddenrow { display: none; }

.selectall {
    background: rgba(255, 251, 217, 0.1);
    border-bottom: 1px solid rgba(247, 232, 106, 0.2);
    color: var(--text-color);
    text-align: center;
}

/* Enhanced Expand/Collapse */
.expcolimage {
    width: auto;
    float: right;
    top: 1px;
    position: relative;
}

.expcolimage img {
    max-width: 24px;
    height: auto;
    transition: var(--transition-base);
}

.thead .expcolimage img {
    opacity: .7;
    transition: var(--transition-base);
}

.thead:hover .expcolimage img {
    opacity: 1;
    transform: rotate(180deg);
}

.expcolimage img:hover {
    opacity: 1 !important;
    transform: scale(1.1);
}

.tcat_menu > .expcolimage { margin-top: 0; }

/* Enhanced Blockquote Styles */
blockquote {
    border: 1px solid var(--border-color);
    margin: 0;
    background: var(--light-bg);
    padding: 12px; 
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary-color);
}

blockquote blockquote {
    background: var(--darker-bg);
    border: 0 !important;
    border-left: 4px solid var(--secondary-color) !important;
}

blockquote blockquote blockquote {
    background: var(--light-bg);
    border: 0 !important;
    border-left: 4px solid var(--accent-color) !important;
}

blockquote blockquote blockquote blockquote {
    background: var(--darker-bg);
    border: 0 !important;
    border-left: 4px solid var(--info-color) !important;
}

blockquote cite {
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    font-style: normal;
    display: block;
    padding-bottom: 7px;
    margin: 0 0 10px 0; 
    font-family: Arial, Helvetica, Tahoma, sans-serif;
    color: var(--text-color);
}

blockquote cite > span {
    float: right;
    font-weight: normal;
    font-size: 12px;
    color: var(--text-muted); 
}

blockquote cite span.highlight {
    float: none;
    font-weight: 600;
    padding-bottom: 0; 
}

/* Enhanced Code Block Styles */
.codeblock {
    border-radius: var(--radius-md) !important;
    background: var(--darker-bg);
    border: 1px solid var(--border-color);
    padding: 12px; 
    position: relative;
    overflow: hidden;
}

.codeblock::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.codeblock .title {
    border-bottom: 1px solid var(--border-color);
    font-weight: bold;
    padding-bottom: 8px;
    margin: 0 0 12px 0; 
    color: var(--text-color);
    font-family: 'Courier New', monospace;
}

.codeblock code {
    overflow: auto;
    height: auto;
    max-height: 200px;
    display: block;
    font-family: Monaco, Consolas, Courier, monospace;
    font-size: 13px; 
    color: var(--text-color);
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.2);
    padding: var(--space-3);
    border-radius: var(--radius-sm);
    margin-top: var(--space-2);
}

.smilie { vertical-align: middle; }
.smilie_pointer { 
    cursor: pointer; 
    transition: var(--transition-base);
}

.smilie_pointer:hover {
    transform: scale(1.2);
}

.separator {
    margin: 5px;
    padding: 0;
    height: 0px;
    font-size: 1px;
    list-style-type: none; 
}

/* Enhanced Popup Menu Items */
.popup_menu .popup_item_container {
    line-height: 24px;
    padding: 7px;
    text-align: left; 
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-base);
}

.popup_menu .popup_item_container:last-child {
    border-top: 0;
    border-bottom: 0;
}

.popup_menu .popup_item {
    text-decoration: none;
    display: block;
    min-width: 160px;
    white-space: nowrap;
    padding: 4px 10px 5px;	
    color: var(--text-muted) !important;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
}

.popup_item_container:hover { 
    background: rgba(92, 107, 192, 0.1); 
    transform: translateX(2px);
}

.popup_menu a.popup_item:hover { 
    text-decoration: none; 
    color: var(--primary-color) !important;
}

.subject_new { font-weight: 500; }

.highlight {
    background: rgba(255, 255, 204, 0.2);
    padding-top: 3px;
    padding-bottom: 3px; 
    border-radius: var(--radius-sm);
    animation: pulse 2s infinite;
}

/* Enhanced Alert Styles */
.pm_alert {
  background: linear-gradient(135deg, #1e1e2f, #2c2c40);
  color: #2da4b7;
  border: 1px solid #3a3a5a;
  border-left: 6px solid #6bc1ff; /* info accent */
  border-radius: 10px;
  padding: 14px 24px;
  margin: 20px auto;
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  width: fit-content;
  max-width: 90%;
  box-shadow: 0 0 10px rgba(107, 193, 255, 0.3);
  animation: fadeInUp 0.5s ease forwards;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.pm_alert i {
  color: #6bc1ff;
  font-size: 16px;
}

.red_alert {
    margin-bottom: 1.5em;
    padding: 1.1em 1.65em 1.1em 1.3em;
    font-size: 12px;
    text-align: center;
    font-weight: 300;
    color: #fff;
    background: rgba(198, 56, 56, .8); 
    border-radius: var(--radius-md);
    border-left: 4px solid var(--danger-color);
    animation: slideIn 0.3s ease;
}

.red_alert a:link,
.red_alert a:visited,
.red_alert a:hover,
.red_alert  a:active { color: #aaeeff; }

.high_warning { color: var(--danger-color); }
.moderate_warning { color: var(--warning-color); }
.low_warning { color: #ae5700; }

.online { color: var(--success-color); }
.offline { color: var(--text-muted); }

/* Enhanced Error Styles */
div.error {
    padding: 1.475em 1.275em 0.575em 1.175em;
    font-size: 14px;
    font-family: inherit;
    color: #fff;
    background: var(--danger-color); 
    border-radius: var(--radius-md);
    border-left: 4px solid #c62828;
    animation: slideIn 0.3s ease;
}

div.error p {
    margin: 0;
    color: #fff;
    font-weight: normal; 
}

div.error p em {
    font-style: normal;
    font-weight: bold;
    padding-left: 24px;
    display: block;
    color: #fff;
    background: url(../../../images/error.png) no-repeat 0;
}

div.error ul { margin-left: 24px; }

/* Enhanced Pagination */
.pagination {
    font-size: 11px;
    padding-top: 14px;
    margin-bottom: 14px; 
}

.tfoot .pagination,
.tcat .pagination { padding-top: 0; }

.pagination .pages { font-weight: 500; }

.pagination .pagination_current,
.pagination a {
    padding: 5px 9px;
    margin-bottom: 3px; 
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
}

.pagination a {
    background: var(--light-bg);
    color: var(--text-muted);
    border: 1px solid var(--border-color); 
}

.pagination a:link { color: var(--text-muted) !important; }
.pagination a:link:hover { color: #fff !important; }

.pagination .pagination_current {
    background: var(--primary-color);
    border: none;
    font-weight: 500; 
    color: #fff;
    border-radius: var(--radius-sm);
    border: 1px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.pagination a:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    text-decoration: none; 
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.pagination .go_page img { margin-bottom: -4px; }

.drop_go_page {
    background: var(--light-bg);
    padding: 7px; 
    margin-top: 1em;
    border-radius: var(--radius-sm);
}

.pagination_breadcrumb {
    background-color: var(--light-bg);
    border: 1px solid var(--light-bg);
    padding: 1px 12px 0px;
    margin-top: 0px;
    font-weight: normal;
    margin-left: -2em;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-sm);
}

.pagination_breadcrumb:before {
    border-bottom: 7px solid var(--light-bg);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    width: 0; height: 0;
    content: "";
    display: block;
    left: 0.5em;
    bottom: 100%;
    position: absolute; 
}

.pagination_breadcrumb_link {
    vertical-align: middle;
    cursor: pointer;
    transition: var(--transition-base);
}

.pagination_breadcrumb_link:hover {
    color: var(--primary-color);
}

/* Enhanced Legend Styles */
.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; 
    transition: var(--transition-base);
}

.thread_legend img:hover {
    transform: scale(1.1);
}

.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; 
}

/* Enhanced Message Styles */
.success_message {
    color: var(--success-color);
    font-weight: bold;
    font-size: 10px;
    margin-bottom: 10px; 
    padding: var(--space-2) var(--space-3);
    background: rgba(76, 175, 80, 0.1);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--success-color);
    animation: slideIn 0.3s ease;
}

.error_message {
    color: var(--danger-color);
    font-weight: bold;
    font-size: 10px;
    margin-bottom: 10px; 
    padding: var(--space-2) var(--space-3);
    background: rgba(244, 67, 54, 0.1);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--danger-color);
    animation: slideIn 0.3s ease;
}

/* Enhanced Post Container */
#posts_container { padding: 0; }

.ignored_post {
    border-top: 3px solid var(--border-color);
    padding: 15px; 
    background: var(--light-bg);
    border-radius: var(--radius-sm);
}

.ignored_post .show_ignored_post { margin-top: -15px; }
.ignored_post .show_ignored_post a.button span { background-position: 0 -400px; }

/* Enhanced Post Styles */
.post { 
    background: var(--light-bg); 
    overflow: hidden; 
    margin-bottom: 8px;
    border: 1px solid var(--border-color); 
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.post:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.post.classic {
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
    padding-top: 15px;
    background: var(--light-bg); 
    border-radius: var(--radius-md);
}

/* Enhanced Post Author Styles */
.post .post_author {
    padding: 1em;
    overflow: hidden; 
    background: var(--darker-bg);
    border-bottom: 1px solid var(--border-color);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.post.classic .post_author {
    margin: 10px 0 18px 0;
    float: left;
    width: 200px;
    padding: 15px 10px;
    background: var(--darker-bg);
    border-right: 1px solid var(--border-color);
    text-align: center;
    box-sizing: border-box;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    transition: var(--transition-base);
}

.post.classic .post_author .author_information {
    color: var(--text-color);
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
}

.post.classic .post_author:hover {
    background: #232338;
    border-right: 1px solid var(--primary-color);
    transform: translateX(2px);
}

.post.classic .post_author .author_statistics {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 10px;
}

.post.classic .post_author .author_avatar {
    margin-bottom: 15px;
    text-align: center;
}

.post.classic .post_author .author_avatar img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    border: 2px solid var(--border-color);
    background: var(--dark-bg);
    object-fit: cover;
    transition: var(--transition-base);
}

.post.classic .post_author .author_avatar img:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.post .post_author .buddy_status {
    vertical-align: middle;
    margin-top: -4px; 
}

.post .post_author div.author_avatar {
    float: left;
    margin-right: 1em;
    min-width: 70px;
    max-width: 90px;
}

.post.classic .post_author div.author_avatar {
    float: none;
    margin: 0px auto 1em;
    max-width: 90px;
    text-align: center;
    min-width: 70px;
}

.post .post_author div.author_avatar img {
    border-radius: var(--radius-full);
    width: auto;
    height: auto;
    background: var(--dark-bg);
    border: 2px solid var(--border-color);
    transition: var(--transition-base);
}

.post .post_author div.author_avatar img:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.post .post_author div.author_information {
    float: left;
    padding: 6px 8px; 
    color: var(--text-color);
}

.post.classic .post_author div.author_information {
    float: none;
    font-family: inherit;
    padding: 0;
    text-align: center; 
}

.post .post_author div.author_statistics {
    float: right;
    font-size: 12px;
    padding: 14px 18px 12px 16px;
    color: var(--text-muted);
    font-family: inherit;
    line-height: 1.4; 
}

/* Enhanced Author Statistics with Glass Effect */
.post .post_author div.author_statistics_default {
    background: rgba(255, 255, 255, 0.05); /* semi-transparent */
    backdrop-filter: blur(10px); /* blurred glass effect */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    border: 1px solid rgba(255, 255, 255, 0.1); /* subtle border */
    border-radius: var(--radius-lg); /* rounded edges */
    box-shadow: var(--shadow-lg); /* soft shadow */
    float: right;
    font-size: 12px;
    padding: 11px 18px 6px 16px;
    color: var(--text-muted);
    font-family: inherit;
    line-height: 1.4;
    transition: var(--transition-slow);
}

.post .post_author div.author_statistics_default:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.post.classic .post_author div.author_statistics {
    margin: 7px 0 0 0;
    float: none; 
}

/* Enhanced Post Content */
.post .post_head {
    border-bottom: 1px solid var(--border-color);
    font-size: 11px;
    padding-bottom: 12px;
    margin-bottom: 7px; 
    color: var(--text-muted);
}

.post .post_head span.post_date { 
    color: var(--text-muted); 
    font-size: 13px;
}

.post .post_head span.edited_post {
    font-size: 15px;
    color: var(--text-muted);
}

.post .post_head span.edited_post a { color: var(--text-muted); }

.post_body {
    font-size: 18px;
    padding: 10px 0;
    color: var(--text-color); 
    line-height: 1.6;
}

.post.classic .post_content {
    border-left: 1px solid var(--border-color);
    margin-left: -1px;
    float: left;
    width: 80%;
    padding: 5px 1.4% 5px;
    background: var(--light-bg);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

@media (max-width: 768px) {
    .post.classic .post_content {
        width: 100%;
        float: none;
        border-left: none;
        border-top: 1px solid var(--border-color);
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }
    
    .post.classic .post_author {
        width: 100%;
        float: none;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }
}

.post_content { 
    padding: 18px 20px 10px 20px; 
    color: var(--text-color);
}

.post_content .signature {
    margin-top: 5px;
    border-top: 1px dotted var(--border-color);
    padding: 10px 0 4px 0; 
    color: var(--text-muted);
    font-style: italic;
}

.post .post_meta {
    margin: 4px 0;
    font-size: 11px;
    color: var(--text-muted); 
}

.post .post_meta a:link,
.post .post_meta a:visited { color: var(--text-muted); }

.post .post_meta a:hover,
.post .post_meta a:active { color: var(--text-color); }

/* Enhanced Post Controls */
.post_controls_default {
    padding: 0.9em;
    clear: both;
    overflow: hidden;
    background: var(--darker-bg);
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.post_controls {
    overflow: hidden;
    clear: both;
    padding: 0.875em;
    background: var(--darker-bg);
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.post:not(.deleted_post) .postbit_qrestore,
.post:not(.deleted_post) .status_type,
.post.deleted_post .postbit_mirage {
    display: none;
}

/* Enhanced Post Buttons */
.postbit_buttons > a:link,
.postbit_buttons > a:visited,
.postbit_buttons > a:active {
    display: inline-block;
    color: var(--primary-color);
    padding: 7px 16px 7px 14px;
    margin: 5px 2px 2px;
    font-size: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
}

.postbit_buttons > a:hover { 
    background: var(--primary-color); 
    color: #fff; 
    border: 1px solid var(--primary-color); 
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.postbit_buttons a span {
    display: inline-block;
    height: 16px; 
}

/* Enhanced Button Links */
a.button:link,
a.button:visited,
a.button:active {
    background: var(--primary-color);
    display: inline-block;
    color: #fff;
    margin: 2px 0px 6px;
    font-size: 13px;
    padding: 8px 23px 8px 21px;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

a.button:hover { 
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

a.button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

a.button.small_button {
    font-size: 13px;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
}

a.button span { 
    display: inline-block; 
}

.quick_jump {
    background: url(../../../images/jump.png) no-repeat 0;
    width: 13px;
    height: 13px;
    padding-left: 13px;
    margin-top: -3px;
    border: none; 
    transition: var(--transition-base);
}

.quick_jump:hover {
    transform: scale(1.1);
}

/* Enhanced Poll Styles */
.pollbar {
    background: #64B5F6;
    height: 20px;
    margin-top: -16px;
    color: #fff;
    font-size: 13px;
    text-align: right;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
}

.pollbar:hover {
    background: var(--secondary-hover);
}

.pollbar .percent { 
    display: inline-block; 
    padding: 0 5px; 
}

.poll-fw {
    position: relative;
    height: 20px;
    box-sizing: border-box;
    border-radius: var(--radius-sm);
    top: 4px;
    overflow: hidden;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
}

.poll-fw::before {
    content: "0%";
    font-size: 13px;
    padding: 0 5px;
    color: var(--text-muted);
}

.poll-icn-adj {
    font-size: 14px;
    vertical-align: middle;
    margin-top: -1px;
    margin-right: 2px;
}

/** jGrowl Start **/
/** Special IE6 Style Positioning **/

.ie6 { position: absolute; }

.ie6.top-right {
    right: auto;
    bottom: auto;
    left: expression( ( 0 - jGrowl.offsetWidth + ( document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body.clientWidth ) + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );
    top: expression( ( 0 + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' );
}

.ie6.top-left {
    left: expression( ( 0 + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );
    top: expression( ( 0 + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' ); 
}

.ie6.bottom-right {
    left: expression( ( 0 - jGrowl.offsetWidth + ( document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body.clientWidth ) + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );
    top: expression( ( 0 - jGrowl.offsetHeight + ( document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' );
}

.ie6.bottom-left {
    left: expression( ( 0 + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );
    top: expression( ( 0 - jGrowl.offsetHeight + ( document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' );
}

.ie6.center {
    left: expression( ( 0 + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );
    top: expression( ( 0 + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' );
    width: 100%; }

/** jGrowl Styling **/
.jGrowl {
  z-index: var(--z-toast);
  color: #fff;
  font-size: 12px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  position: fixed; 
}

.jGrowl.top-left {
  left: 0px;
  top: 0px;
}

.jGrowl.top-right {
  right: 0px;
  top: 0px;
}

.jGrowl.bottom-left {
  left: 0px;
  bottom: 0px; 
}

.jGrowl.bottom-right {
  right: 0px;
  bottom: 0px; 
}

.jGrowl.center {
  top: 0px;
  width: 50%;
  left: 25%;
}

/** Cross Browser Styling **/

.jGrowl.center .jGrowl-notification,
.jGrowl.center .jGrowl-closer {
  margin-left: auto;
  margin-right: auto; 
}

/* Enhanced jGrowl Notifications */
.jGrowl-notification {
  background-color: #000;
  opacity: 0.75;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=(0.75*100));
  -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=(0.75*100));
  zoom: 1;
  width: 250px;
  padding: 1em;
  margin: 10px;
  text-align: left;
  display: none;
  word-break: break-all;
  min-height: 40px; 
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: slideIn 0.3s ease;
}

.jGrowl-notification .ui-state-highlight,
.jGrowl-notification .ui-widget-content .ui-state-highlight,
.jGrowl-notification .ui-widget-header .ui-state-highlight {
  border: 1px solid #000;
  background: #000;
  color: #fff;
}

.jGrowl-notification .jGrowl-header {
  font-weight: bold;
  font-size: .85em;
}

.jGrowl-notification .jGrowl-close {
  background: none !important;
  color: inherit;
  border: none;
  z-index: 99;
  float: right;
  margin-top: -10px;
  color: #fff !important;
  font-weight: bold;
  font-size: 21px;
  padding: 0;
  cursor: pointer; 
  transition: var(--transition-base);
  border-radius: var(--radius-sm);
}

.jGrowl-notification .jGrowl-close:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  transform: scale(1.1);
}

.jGrowl-message { padding-right: 3em !important; }

.jGrowl-closer {
  background-color: #000;
  opacity: 0.75;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=(0.75*100));
  -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=(0.75*100));
  zoom: 1;
  width: 250px;
  padding: 1em;
  margin: 10px;
  text-align: left;
  display: none;
  word-break: break-all;
  padding-top: 4px;
  padding-bottom: 4px;
  cursor: pointer;
  font-size: .9em;
  font-weight: bold;
  text-align: center; 
  border-radius: var(--radius-md);
  transition: var(--transition-base);
}

.jGrowl-closer:hover {
  background-color: #333 !important;
  transform: scale(1.02);
}

.jGrowl-closer .ui-state-highlight,
.jGrowl-closer .ui-widget-content .ui-state-highlight,
.jGrowl-closer .ui-widget-header .ui-state-highlight {
    border: 1px solid #000;
    background: #000;
    color: #fff; 
}

/** Hide jGrowl when printing **/
@media print {
    .jGrowl { display: none; }
}

/** jGrowl End **/

/** Modal Start **/

/* Enhanced Modal Backdrop */
.blocker {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    z-index: var(--z-modal-backdrop);
    padding: 20px;
    box-sizing: border-box;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, .75);
    text-align: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.blocker:before{
    content: "";
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    margin-right: -0.05em;
}

.blocker.behind {
    background-color: transparent;
}

/* Enhanced Modal Form Inputs */
.modal.login-modal input.textbox,
.modal.login-modal input[type="text"],
.modal.login-modal input[type="password"],
.modal.login-modal input[type="email"],
.modal.login-modal input[type="submit"],
.modal.login-modal select,
.modal.login-modal textarea {
    background: rgba(22, 22, 37, 0.9);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    box-shadow: none !important;
    outline: none !important;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.modal.login-modal input.textbox:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(92, 107, 192, 0.2);
    transform: translateY(-1px);
}

/* Enhanced Modal Styles */
.modal:not(.login-modal) {
    position: relative;
    display: inline-block;
    width: 400px;
    text-align: left;
	background: transparent !important;
    box-sizing: border-box;
    z-index: var(--z-modal);
    vertical-align: middle;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

@media (max-width: 768px) {
    .modal:not(.login-modal) {
        width: 95%;
        max-width: 400px;
    }
}

.modal a.close-modal {
    position: absolute;
    top: 1.3rem;
    right: 1.3rem;
    display: block;
    width: 16px;
    height: 16px;
    text-indent: -9999px;
    background: url(../../../images/flatty/close.png) no-repeat 0 0; 
    transition: var(--transition-base);
    border-radius: var(--radius-sm);
}

.modal a.close-modal:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.1);
}

.modal.login-modal {
    background: rgba(30, 30, 47, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    color: var(--text-color);
    animation: fadeIn 0.3s ease;
}

.modal-spinner {
    display: none;
    width: 64px;
    height: 64px;
    position: fixed;
    top: 50%;
    left: 50%;
    margin-right: -32px;
    margin-top: -32px;
    background: url(../../../images/spinner_big.gif) no-repeat center center;
    border-radius: var(--radius-md);
    z-index: var(--z-modal);
}

/** Modal End **/

/** Impromptu Start **/

/*! jQuery-Impromptu - v6.2.3 - 2016-04-23
* http://trentrichardson.com/Impromptu
* Copyright (c) 2016 Trent Richardson; Licensed MIT */

.jqifade{
    position: absolute;
    background-color: #777;
}

iframe.jqifade {
    display:block;
    z-index:-1;
}

/* Enhanced Impromptu Dialog */
div.jqi {
    font-family: inherit;
    width: 400px;
    max-width: 90%;
    position: absolute;
    background: var(--light-bg);
    font-size: 13px;
    text-align: left;
    padding: 7px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

div.jqi .jqicontainer {}

div.jqi .jqiclose{
    position: absolute;
    top: 5px;
    right: 9px;
    width: 16px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 18px;
    transition: var(--transition-base);
    border-radius: var(--radius-sm);
    padding: var(--space-1);
}

div.jqi .jqiclose:hover {
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

div.jqi .jqistate{
    background-color: var(--light-bg);
}

div.jqi .jqititle{
    padding: 5px 10px;
    font-size: 16px;
    line-height: 20px;
    border-bottom: solid 1px var(--border-color);
    color: var(--text-color);
    font-weight: 600;
}

div.jqi .jqimessage{
    padding: 13px 18px 20px;
    line-height: 20px;
    color: var(--text-muted);
    overflow: auto;
}

div.jqi .jqibuttonshide{
    display: none;
}

/* Enhanced Impromptu Buttons */
div.jqi .jqibuttons{
    margin: 0px -7px -7px -7px;
    text-align: right;
    border-top: solid 1px var(--border-color);
    background-color: var(--darker-bg);
    border-radius: 0px 0 var(--radius-lg) var(--radius-lg);
    padding: 8px 11px 8px 9px;
}

div.jqi .jqibuttons button {
    background-color: var(--light-bg);
    margin: 0;
    margin-left: 0px;
    padding: 3px 21px 4px 20px;
    font-weight: normal;
    color: var(--text-muted);
    font-size: 13px;
    margin-left: 5px;
    border-radius: var(--radius-sm) !important;
    box-shadow: none !important;
    border: 1px solid var(--border-color) !important;
    transition: var(--transition-base);
}

div.jqi .jqibuttons button.jqidefaultbutton{
    color: var(--primary-color);
    border: 1px solid var(--primary-color) !important;
    font-weight: 600;
}

div.jqi .jqibuttons button:hover,
div.jqi .jqibuttons button:focus {
    color: var(--primary-color);
    outline: none;
    border: 1px solid var(--primary-color) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm) !important;
}

div.jqi .jqibuttons button[disabled]{
    color: var(--text-muted);
    opacity: 0.5;
}

.jqiwarning .jqi .jqibuttons{
    background-color: var(--danger-color);
}

/* 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: var(--radius-lg);
}
div.jqi .jqisubstate{
    position: absolute;
    top:0;
    left: 20%;
    width: 60%;
    padding: 7px;
    border: solid 1px var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    background: var(--light-bg);
}
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: var(--light-bg); }
.jqi .jqiarrowtc{ left: 50%; top: -20px; border-bottom-color: var(--light-bg); margin-left: -10px; }
.jqi .jqiarrowtr{ right: 10px; top: -20px; border-bottom-color: var(--light-bg); }

.jqi .jqiarrowbl{ left: 10px; bottom: -20px; border-top-color: var(--light-bg); }
.jqi .jqiarrowbc{ left: 50%; bottom: -20px; border-top-color: var(--light-bg); margin-left: -10px; }
.jqi .jqiarrowbr{ right: 10px; bottom: -20px; border-top-color: var(--light-bg); }

.jqi .jqiarrowlt{ left: -20px; top: 10px; border-right-color: var(--light-bg); }
.jqi .jqiarrowlm{ left: -20px; top: 50%; border-right-color: var(--light-bg); margin-top: -10px; }
.jqi .jqiarrowlb{ left: -20px; bottom: 10px; border-right-color: var(--light-bg); }

.jqi .jqiarrowrt{ right: -20px; top: 10px; border-left-color: var(--light-bg); }
.jqi .jqiarrowrm{ right: -20px; top: 50%; border-left-color: var(--light-bg); margin-top: -10px; }
.jqi .jqiarrowrb{ right: -20px; bottom: 10px; border-left-color: var(--light-bg); }

/** Impromptu End */

/* Enhanced Social Icons */
.sicon {
    display: inline-block;
    font-size: 16px;
    width: 32px;
    height: 32px;
    text-align: center;
    border-radius: var(--radius-full);
    transition: var(--transition-base);
}

.sicon i {
    line-height: 33px;
}

.sicon:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.sicon.fb { border: 2px solid #3b5998; background: #3b5998; color: #fff; }
.sicon.fb:hover { border: 2px solid #3b5998; background: none; color: #3b5998; } 
.sicon.yt { border: 2px solid #dd4b39; background: #dd4b39; color: #fff; }
.sicon.yt:hover { border: 2px solid #dd4b39; background: none; color: #dd4b39;  }
.sicon.tw { border: 2px solid #00aced; background: #00aced; color: #fff; }
.sicon.tw:hover { border: 2px solid #00aced; background: none; color: #00aced; }
.sicon.ln { border: 2px solid #0077b5; background: #0077b5; color: #fff; }
.sicon.ln:hover { border: 2px solid #0077b5; background: none; color: #0077b5;  }
.sicon.re { border: 2px solid #ff4500; background: #ff4500; color: #fff; }
.sicon.re:hover { border: 2px solid #ff4500; background: none; color: #ff4500; }

/* Enhanced Navigation Buttons */
.rightbutton {
    cursor: pointer;
    float: right;
    font-size: 18px;
    display: block; 
    transition: var(--transition-base);
    padding: var(--space-2);
    border-radius: var(--radius-sm);
}

.leftbutton {
    cursor: pointer;
    float: right;
    font-size: 18px;
    display: block; 
    transition: var(--transition-base);
    padding: var(--space-2);
    border-radius: var(--radius-sm);
}

.rightbutton:hover { 
    color: var(--primary-color); 
    background: rgba(92, 107, 192, 0.1);
    transform: translateX(-2px);
}

.leftbutton:hover { 
    color: var(--primary-color); 
    background: rgba(92, 107, 192, 0.1);
    transform: translateX(2px);
}

/* Enhanced PM Badge */
.pmbg {
    background: var(--primary-color);
    max-width: 220px;
    margin-left: 3px;
    text-align: center;
    height: 24px;
    width: 24px;
    line-height: 25px;
    color: #fff;
    display: inline-block;
    border-radius: var(--radius-full);
    transition: var(--transition-base);
    font-weight: 600;
}

.pmbg:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

/* Enhanced Tooltip */
.ttip {
    position: relative;
    font-weight: 400;
    outline: none;
    text-decoration: none;
	font-size: 17px;
	letter-spacing: 0.2px;
    transition: var(--transition-base);
}

.ttip span { 
    position: absolute;
    display: none;
    margin-left: -999em; 
}

.ttip:hover span {
    position: absolute;
    opacity: 1;
    font-size: 12px;
    color: #fff;
    margin-left: 0;
    min-width: 230px;
    top: 2.5em; left: 3px;
    z-index: var(--z-tooltip);
    font-family: inherit;
    border-radius: var(--radius-md);
    animation: fadeIn 0.2s ease;
}

.ttbg  { 
    padding: .6em .9em .6em .7em;
    background: rgba(30, 30, 47, 0.95);
    font-weight: 400;
    font-family: "Open Sans", Arial, Sans-Serif !important;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

.ttbg:after {
    position: absolute !important;
    bottom: 100%;
    left: 10px;
    content: " ";
    height: 0;
    width: 0;
    pointer-events: none;
    border-color: rgba(136, 183, 213, 0) !important;
    border-bottom-color: rgba(30, 30, 47, 0.95) !important;
    border-width: 6px !important;
    border: solid transparent; 
}

/* Enhanced Back to Top Button */
#backtop {
    position: fixed;
    margin: 0px;
    cursor: pointer;
    border-radius: var(--radius-full);
    color: #fff;
    font-size: 18px;
    right: 23px; bottom: 17px;
    z-index: var(--z-fixed);
    text-align: center;
    height: 42px; 
    width: 42px;
    transition: var(--transition-base);
    background: rgba(108, 99, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
}

#backtop .arr-adj {
    line-height: 42px;
    margin-left: -1px;
}

#backtop:hover { 
    background: rgba(108, 99, 255, 0.8); 
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

@media (max-width: 768px) {
    #backtop {
        right: 15px;
        bottom: 15px;
        width: 36px;
        height: 36px;
    }
    
    #backtop .arr-adj {
        line-height: 36px;
        font-size: 16px;
    }
}

/* Enhanced Forum Icons */
.forum-icon{
    font-family:"Font Awesome 5 Free"; /* or FA 4 name */
    font-weight:900;
    font-size:1.5em;
    display:inline-block;
    margin-right: 5px;
    color: var(--primary-color);
    transition: var(--transition-base);
}

.forum-icon:hover {
    color: var(--primary-hover);
    transform: scale(1.1);
}

/* Forum-specific icons by forum ID (fid) */
.forum-icon-1::before { content: "\f02d"; }  
.forum-icon-2::before { content: "\f2c2"; }  
.forum-icon-3::before { content: "\f1c0"; }  
.forum-icon-4::before { content: "\f09d"; } 
.forum-icon-6::before { content: "\f577"; } 
.forum-icon-7::before { content: "\f233"; }  
.forum-icon-8::before { content: "\f5ab"; } 
.forum-icon-10::before { content: "\f219"; }  
.forum-icon-15::before { content: "\f2b5"; } 
.forum-icon-16::before { content: "\f071"; }
.forum-icon-12::before { content: "\f086"; } 
.forum-icon-17::before { content: "\f0eb"; }
.forum-icon-18::before { content: "\f13e"; }
.forum-icon-20::before { content: "\f8c0"; }  
.forum-icon-21::before { content: "\f8c1"; }  
.forum-icon-29::before { content: "\f085"; } 
.forum-icon-23::before { content: "\f059"; }  
.forum-icon-24::before { content: "\f06b"; }  
.forum-icon-25::before { content: "\f1c0"; }  
.forum-icon-26::before { content: "\f2c2"; }
.forum-icon-27::before { content: "\f059"; }
.forum-icon-28::before { content: "\f70e"; }
.forum-icon-31::before { content: "\f550"; }
.forum-icon-33::before { content: "\f3c1"; }
.forum-icon-34::before { content: "\e51d"; }
.forum-icon-32::before { content: "\f0c2"; }
.forum-icon-32::before { content: "\f121"; }
.forum-icon-35::before { content: "\f79c"; }
.forum-icon-38::before { content: "\24"; }
/* Enhanced Rules Block */
.rules-block {
    text-align: center;
    margin-top: 10px;
}

.cool-rules {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 350px;
    text-align: left;
    background: var(--light-bg);
    border-radius: var(--radius-lg);
    padding: 15px;
    box-shadow: var(--shadow-md);
    font-size: 14px;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.cool-rules li {
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
    line-height: 1.4em;
    transition: var(--transition-base);
}

.cool-rules li:hover {
    color: var(--primary-color);
    transform: translateX(2px);
}

.cool-rules li i {
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-color);
    transition: var(--transition-base);
}

.cool-rules li:hover i {
    transform: scale(1.2);
}

/* Enhanced Mirror Buttons */
.mirror-buttons {
  background: var(--darker-bg);
  border-radius: var(--radius-lg);
  padding: 25px;
  color: #fff;
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
  box-shadow: var(--shadow-lg);
    margin-bottom: 14px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-link {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--light-bg);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-size: 15px;
  font-weight: bold;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-slow);
    margin: 5px;
}

.btn-link i {
  font-size: 16px;
  color: var(--primary-color);
  transition: var(--transition-base);
}

.btn-link:hover {
  color:#ff4b91;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-link:hover i {
  transform: scale(1.1);
}

/* Optional: unique icon colors for identity */
.btn-link.onion i { color: #6c63ff; }
.btn-link.clearnet i { color: #6c63ff; }
.btn-link.pgp i { color: #6c63ff; }

/* Enhanced Profile Container */
.profcontainer {
    background: rgba(30, 30, 47, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: var(--shadow-xl);
    color: var(--text-color);
    transition: var(--transition-base);
}

.profcontainer:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(92, 107, 192, 0.2);
}

.profcontainer * {
    background: transparent !important;
    color: var(--text-color) !important;
    border-color: var(--border-color) !important;
}

/* Fix for specific known bright blocks inside user profiles */
.profcontainer .thead,
.profcontainer .trow1,
.profcontainer .trow2,
.profcontainer .post_author,
.profcontainer .post_content,
.profcontainer .author_statistics,
.profcontainer .author_statistics_default {
    background-color: var(--light-bg) !important;
    color: var(--text-color) !important;
}

/* Force reset for span, div, strong, em */
.profcontainer span,
.profcontainer div,
.profcontainer strong,
.profcontainer em,
.profcontainer td {
    background-color: transparent !important;
    color: var(--text-color) !important;
}

/* Remove white background from tables */
.profcontainer table,
.profcontainer tr,
.profcontainer td {
    background: transparent !important;
    color: var(--text-color) !important;
}

/* Enhanced Login Modal */
.modal.login-modal {
    background: rgba(30, 30, 47, 0.75) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    color: var(--text-color);
}

/* Print styles for better document printing */
@media print {
    .animated-bg,
    .particles,
    .particle {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* ========================================
   ANIMATED PARTICLE BACKGROUND SYSTEM
   ======================================== */

/* Particle background container */
.particle-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1000;
    pointer-events: none;
    overflow: hidden;
}

/* Animated gradient background layer */
.particle-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(92, 107, 192, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(79, 195, 247, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(92, 107, 192, 0.02) 0%, transparent 50%);
    animation: particleBackgroundPulse 12s ease-in-out infinite;
}

/* Individual particle styling */
.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.4;
    animation: particleFloat 8s ease-in-out infinite;
}

/* Particle size variations */
.particle.small {
    width: 1px;
    height: 1px;
}

.particle.medium {
    width: 2px;
    height: 2px;
}

.particle.large {
    width: 3px;
    height: 3px;
}

/* Particle color variations */
.particle.primary {
    background: var(--primary-color);
}

.particle.secondary {
    background: var(--secondary-color);
}

.particle.accent {
    background: rgba(255, 255, 255, 0.3);
}

/* Slow animated keyframes */
@keyframes particleBackgroundPulse {
    0%, 100% { 
        opacity: 0.2;
        transform: scale(1);
    }
    50% { 
        opacity: 0.4;
        transform: scale(1.01);
    }
}

@keyframes particleFloat {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.3;
    }
    25% { 
        transform: translateY(-15px) translateX(5px) rotate(90deg);
        opacity: 0.5;
    }
    50% { 
        transform: translateY(-25px) translateX(-5px) rotate(180deg);
        opacity: 0.2;
    }
    75% { 
        transform: translateY(-10px) translateX(3px) rotate(270deg);
        opacity: 0.4;
    }
}

/* Slower animation variant for some particles */
.particle.slow {
    animation: particleFloatSlow 12s ease-in-out infinite;
}

@keyframes particleFloatSlow {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.2;
    }
    33% { 
        transform: translateY(-20px) translateX(8px) rotate(120deg);
        opacity: 0.4;
    }
    66% { 
        transform: translateY(-35px) translateX(-8px) rotate(240deg);
        opacity: 0.1;
    }
}

/* Ultra slow animation for ambient particles */
.particle.ultra-slow {
    animation: particleFloatUltraSlow 16s ease-in-out infinite;
}

@keyframes particleFloatUltraSlow {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.15;
    }
    50% { 
        transform: translateY(-30px) translateX(10px) rotate(180deg);
        opacity: 0.3;
    }
}

/* Responsive particle adjustments */
@media (max-width: 768px) {
    .particle {
        opacity: 0.2;
    }
    
    .particle.large {
        width: 2px;
        height: 2px;
    }
    
    .particle-background::before {
        animation-duration: 15s;
    }
}

@media (max-width: 480px) {
    .particle {
        opacity: 0.1;
    }
    
    .particle.medium,
    .particle.large {
        width: 1px;
        height: 1px;
    }
}

/* Accessibility: Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .particle-background::before,
    .particle {
        animation: none;
    }
    
    .particle {
        opacity: 0.1;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .particle {
        opacity: 0.05;
    }
    
    .particle-background::before {
        opacity: 0.1;
    }
}

/* Performance optimization for older devices */
@media (max-resolution: 150dpi) {
    .particle {
        animation-duration: 10s;
        opacity: 0.2;
    }
}

/* Dark mode specific particle adjustments */
@media (prefers-color-scheme: dark) {
    .particle.accent {
        background: rgba(255, 255, 255, 0.2);
    }
}

/* Light mode specific particle adjustments */
@media (prefers-color-scheme: light) {
    .particle {
        opacity: 0.3;
    }
    
    .particle.accent {
        background: rgba(0, 0, 0, 0.1);
    }
}

/* Enhanced Print Styles */
@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .navigation,
    #header,
    #panel,
    #footer,
    .post_controls,
    .postbit_buttons,
    #backtop {
        display: none !important;
    }
    
    .post {
        border: 1px solid #ccc !important;
        margin-bottom: 1em !important;
        page-break-inside: avoid;
    }
}

/* Enhanced Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

.slide-in {
    animation: slideIn 0.3s ease;
}

.bounce {
    animation: bounce 0.6s ease;
}

/* Enhanced Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #f0f0f0;
        --text-muted: #b0b0b0;
        --border-color: #4a4a5a;
    }
}

/* Enhanced High DPI Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .forum-icon,
    .sicon,
    .expcolimage img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ==========================================================================
   End Enhanced CSS Theme - Version 1.60
   ========================================================================== */

.giveaway {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.5em;
  background: linear-gradient(135deg, #ff416c, #ff4b2b);
  color: white;
  padding: 5px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(255, 75, 43, 0.4);
  display: inline-block;
  animation: glow 2s infinite ease-in-out;
  text-align: center;
}

.giveaway i {
  margin-right: 10px;
  color: #fff700;
}

.giveaway a {
  color: #ffffff;
  font-weight: bold;
  text-decoration: underline;
  margin-left: 5px;
  transition: color 0.3s ease;
}

.giveaway a:hover {
  color: #ffe600;
}

/* Optional glowing animation */
@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(255, 75, 43, 0.4);
  }
  50% {
    box-shadow: 0 0 25px rgba(255, 75, 43, 0.8);
  }
}
.giveaway-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px; /* full viewport height */
}

/* Enhanced username styling */

.phantom-prefix {
  background: #7026b6;
  color: white;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 16px;
  display: inline-block;
  box-shadow: 0 0 5px rgba(33, 147, 176, 0.5);
}

.phantom-prefix::before {
  content: "\f135";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.supreme-prefix {
  background: #ff7828;
  color: #fff;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 16px;
  display: inline-block;
  box-shadow: 0 0 5px #581b91;
}

.supreme-prefix::before {
  content: "\f3a5";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

/* Recent Threads sidebar fix */


.blavo-prefix {
  background: #4b0082;
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 0 5px #4b0082;
  display: inline-block;
  position: relative;
  padding-left: 25px;
}

.blavo-prefix::before {
  content: "\f3a5"; /* Font Awesome gem icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #ffd700;
  font-size: 14px;
}
