.thread_status {
	display: inline-block;
	width: 16px;
	height: 16px;
	background-image: url(images/folders_sprite.png);
	background-repeat: no-repeat;
}

.thread_status.dot_folder {
	background-position: 0 0;
}

.thread_status.dot_hotfolder {
	background-position: 0 -20px;
}

.thread_status.dot_hotclosefolder {
	background-position: 0 -40px;
}

.thread_status.dot_closefolder {
	background-position: 0 -60px;
}

.thread_status.dot_newfolder {
	background-position: 0 -80px;
}

.thread_status.dot_newhotfolder {
	background-position: 0 -100px;
}

.thread_status.dot_newhotclosefolder {
	background-position: 0 -120px;
}

.thread_status.dot_newclosefolder {
	background-position: 0 -140px;
}

.thread_status.folder {
	background-position: 0 -160px;
}

.thread_status.hotfolder {
	background-position: 0 -180px;
}

.thread_status.hotclosefolder {
	background-position: 0 -200px;
}

.thread_status.closefolder {
	background-position: 0 -220px;
}

.thread_status.movefolder {
	background-position: 0 -240px;
}

.thread_status.newfolder {
	background-position: 0 -260px;
}

.thread_status.newhotfolder {
	background-position: 0 -280px;
}

.thread_status.newhotclosefolder {
	background-position: 0 -300px;
}

.thread_status.newclosefolder {
	background-position: 0 -320px;
}tr td.trow1:first-child,
tr td.trow2:first-child,
tr td.trow_shaded:first-child {
	border-left: 0;
}

tr td.trow1:last-child,
tr td.trow2:last-child,
tr td.trow_shaded:last-child {
	border-right: 0;
}

.tborder {
	-moz-border-radius: 7px;
	-webkit-border-radius: 7px;
	border-radius: 7px;
}

.tborder tbody tr:last-child > td {
	border-bottom: 0;
}

.tborder tbody tr:last-child > td:first-child {
	-moz-border-radius-bottomleft: 6px;
	-webkit-border-bottom-left-radius: 6px;
	border-bottom-left-radius: 6px;
}

.tborder tbody tr:last-child > td:last-child {
	-moz-border-radius-bottomright: 6px;
	-webkit-border-bottom-right-radius: 6px;
	border-bottom-right-radius: 6px;
}

.thead {
	-moz-border-radius-topleft: 6px;
	-moz-border-radius-topright: 6px;
	-webkit-border-top-left-radius: 6px;
	-webkit-border-top-right-radius: 6px;
	border-top-left-radius: 6px;
	border-top-right-radius: 6px;
}

.thead_collapsed {
	-moz-border-radius-bottomleft: 6px;
	-moz-border-radius-bottomright: 6px;
	-webkit-border-bottom-left-radius: 6px;
	-webkit-border-bottom-right-radius: 6px;
	border-bottom-left-radius: 6px;
	border-bottom-right-radius: 6px;
}

.thead_left {
	-moz-border-radius-topright: 0;
	-webkit-border-top-right-radius: 0;
	border-top-right-radius: 0;
}

.thead_right {
	-moz-border-radius-topleft: 0;
	-webkit-border-top-left-radius: 0;
	border-top-left-radius: 0;
}

.tcat_menu {
	-moz-border-radius: 0 !important;
	-webkit-border-radius: 0 !important;
	border-radius: 0 !important;
}

.tborder tbody:nth-last-child(2) .tcat_collapse_collapsed {
	-moz-border-radius-bottomleft: 6px !important;
	-moz-border-radius-bottomright: 6px !important;
	-webkit-border-bottom-left-radius: 6px !important;
	-webkit-border-bottom-right-radius: 6px !important;
	border-bottom-left-radius: 6px !important;
	border-bottom-right-radius: 6px !important;
}

button,
input.button,
input.textbox,
input.invalid_field,
input.valid_field,
select,
textarea,
.editor_control_bar,
blockquote,
.codeblock,
fieldset,
.pm_alert,
.red_alert,
.popup_menu,
.postbit_buttons > a,
a.button {
	-moz-border-radius: 6px;
	-webkit-border-radius: 6px;
	border-radius: 6px;
}

.post.classic .post_author {
	-moz-border-radius: 0 6px 6px 0;
	-webkit-border-radius: 0 6px 6px 0;
	border-radius: 0 6px 6px 0;
}

.popup_menu .popup_item_container:first-child .popup_item {
	-moz-border-radius-topleft: 6px;
	-moz-border-radius-topright: 6px;
	-webkit-border-top-left-radius: 6px;
	-webkit-border-top-right-radius: 6px;
	border-top-left-radius: 6px;
	border-top-right-radius: 6px;
}

.popup_menu .popup_item_container:last-child .popup_item {
	-moz-border-radius-bottomleft: 6px;
	-moz-border-radius-bottomright: 6px;
	-webkit-border-bottom-left-radius: 6px;
	-webkit-border-bottom-right-radius: 6px;
	border-bottom-left-radius: 6px;
	border-bottom-right-radius: 6px;
}

.pagination a {
	-moz-border-radius: 6px;
	-webkit-border-radius: 6px;
	border-radius: 6px;
}

.pollbar {
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	border-radius: 3px;
}

div.error {
	-moz-border-radius: 6px;
    	-webkit-border-radius: 6px;
   	 border-radius: 6px;
}/* ================================================================
   CRITICAL MOBILE HEADER FIXES - COMPLETE OVERRIDE
   ================================================================ */

/* Force proper box-sizing on ALL elements */
@media (max-width: 1024px) {
    * {
        box-sizing: border-box !important;
    }
}

/* ================================================================
   HAMBURGER MENU BUTTON STYLING
   ================================================================ */

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    z-index: 10000;
    flex-shrink: 0;
}

.hamburger-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--accent1);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ================================================================
   CONTAINER & WRAPPER - CRITICAL OVERRIDES
   ================================================================ */

@media (max-width: 1024px) {
    html,
    body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    #container {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    .wrapper {
        width: 95% !important;
        min-width: 0 !important;
        max-width: 95% !important;
        margin: 3rem auto 2rem !important;
        padding: 1.5em !important;
    }
    
    .nav-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 10px !important;
    }
}

/* ================================================================
   TABLET - 1024px and below
   ================================================================ */

@media (max-width: 1024px) {
    #logo {
        height: auto !important;
        width: 100% !important;
    }
    
    #logo .nav-wrapper:first-child {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 15px !important;
    }
    
    #logo .nav-wrapper > a.site-title {
        font-size: 1.6em !important;
        order: 1 !important;
        flex: 1 1 auto !important;
    }
    
    .main-navigation {
        order: 3 !important;
        flex-basis: 100% !important;
        width: 100% !important;
    }
    
    .main-navigation ul.menu {
        flex-wrap: wrap !important;
        gap: 5px !important;
        justify-content: center !important;
        margin-top: 10px !important;
    }
    
    .main-navigation ul.menu li a {
        padding: 8px 12px !important;
        font-size: 0.85em !important;
    }
    
    /* Breadcrumb navigation */
    #logo .nav-wrapper:last-child {
        order: 4 !important;
        flex-basis: 100% !important;
        margin-top: 10px !important;
        padding: 0 !important;
    }
    
    .navigation {
        width: 100% !important;
        padding: 8px 0 !important;
        font-size: 0.9em !important;
        text-align: center !important;
    }
    
    /* Panel adjustments */
    #panel {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    #panel .glass {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    #panel .upper .nav-wrapper {
        flex-wrap: wrap !important;
        gap: 10px !important;
        padding: 10px 15px !important;
    }
    
    span.welcome {
        order: 1 !important;
        flex: 1 1 100% !important;
        justify-content: center !important;
        text-align: center !important;
        margin-bottom: 10px !important;
    }
    
    span.lower {
        order: 2 !important;
        flex: 1 1 100% !important;
        justify-content: center !important;
    }
    
    span.lower ul.menu {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    
    #content {
        margin-top: 220px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
}

/* ================================================================
   MOBILE - 768px and below - COMPLETE REWRITE
   ================================================================ */

@media (max-width: 768px) {
    /* CRITICAL: Force viewport constraints */
    html,
    body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
    }
    
    #container {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    .wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding: 1em !important;
        margin: 2rem 0 1rem !important;
    }
    
    /* ============================================
       LOGO SECTION - HAMBURGER + BREADCRUMB
       ============================================ */
    
    #logo {
        position: relative !important;
        border-bottom: 1px solid var(--accent1) !important;
        padding: 10px 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* First nav-wrapper contains hamburger and breadcrumb */
    #logo .nav-wrapper:first-child {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 0 10px !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* HIDE SITE TITLE */
    #logo .nav-wrapper:first-child > a,
    #logo .nav-wrapper:first-child > a.site-title,
    #logo .nav-wrapper > a.site-title {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        opacity: 0 !important;
    }
    
    /* Show hamburger menu on LEFT */
    .mobile-menu-toggle {
        display: flex !important;
        order: 1 !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }
    
    /* Second nav-wrapper contains breadcrumb navigation */
    #logo .nav-wrapper:last-child {
        order: 2 !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        overflow: hidden !important;
    }
    
    /* Breadcrumb navigation - scrollable, left-aligned */
    .navigation {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 0.8em !important;
        padding: 0 !important;
        margin: 0 !important;
        text-align: left !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        display: block !important;
    }
    
    .navigation::-webkit-scrollbar {
        height: 3px !important;
    }
    
    /* ============================================
       NAVIGATION MENU (HAMBURGER OVERLAY)
       ============================================ */
    
    .main-navigation {
        display: none !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: var(--dark-blur) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        z-index: 9998 !important;
        padding: 80px 20px 20px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
    
    .main-navigation.active {
        display: block !important;
    }
    
    .main-navigation ul.menu,
    .main-navigation ul.top_links {
        flex-direction: column !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        list-style: none !important;
    }
    
    .main-navigation ul.menu li,
    .main-navigation ul.top_links li {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border-bottom: 1px solid var(--block-lighter) !important;
    }
    
    .main-navigation ul.menu li:last-child,
    .main-navigation ul.top_links li:last-child {
        border-bottom: none !important;
    }
    
    .main-navigation ul.menu li a,
    .main-navigation ul.top_links li a {
        display: block !important;
        width: 100% !important;
        padding: 15px 20px !important;
        font-size: 1.1em !important;
        text-align: left !important;
        background: transparent !important;
        border-radius: 0 !important;
        color: var(--accent1) !important;
    }
    
    .main-navigation ul.menu li a:hover,
    .main-navigation ul.top_links li a:hover {
        background: var(--block-light) !important;
        transform: none !important;
        text-decoration: none !important;
    }
    
    /* ============================================
       PANEL SECTION - WELCOME + BUTTONS
       ============================================ */
    
    #panel {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    #panel .glass {
        position: relative !important;
        top: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    #panel .upper .nav-wrapper {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Welcome section - LEFT SIDE */
    span.welcome {
        order: 1 !important;
        flex: 1 1 auto !important;
        font-size: 0.75em !important;
        padding: 0 !important;
        background: transparent !important;
        border-radius: 0 !important;
        width: auto !important;
        max-width: 60% !important;
        margin: 0 !important;
        text-align: left !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: flex !important;
        align-items: center !important;
    }
    
    span.welcome strong {
        display: inline !important;
        margin: 0 !important;
    }
    
    span.welcome br {
        display: none !important;
    }
    
    /* Lower span - RIGHT SIDE */
    span.lower {
        order: 2 !important;
        flex: 0 0 auto !important;
        width: auto !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 5px !important;
        align-items: center !important;
    }
    
    /* HIDE buddy link (#buddylink) and next two user_links (new/daily) */
    span.lower ul.user_links li:has(#buddylink),
    span.lower ul.user_links li:nth-child(1),
    span.lower ul.user_links li:nth-child(2),
    span.lower ul.user_links li:nth-child(3) {
        display: none !important;
    }
    
    span.lower ul.menu,
    span.lower ul.panel_links,
    span.lower ul.user_links {
        display: flex !important;
        flex-direction: row !important;
        width: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        border-radius: 0 !important;
        gap: 3px !important;
        list-style: none !important;
    }
    
    span.lower ul.panel_links {
        order: 1 !important;
    }
    
    span.lower ul.user_links {
        order: 2 !important;
    }
    
    span.lower ul.menu li {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    span.lower ul.menu li a {
        padding: 8px 10px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 36px !important;
        min-height: 36px !important;
        background: var(--block-darker) !important;
        border-radius: 3px !important;
    }
    
    span.lower ul.menu li a i {
        font-size: 1em !important;
    }
    
    /* Account switcher button */
    #accountswitcher_header {
        display: inline-block !important;
        margin: 0 !important;
    }
    
    #accountswitcher_header > a {
        padding: 8px 10px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 36px !important;
        min-height: 36px !important;
        background: var(--block-darker) !important;
        border-radius: 3px !important;
    }
    
    #accountswitcher_header > a i {
        font-size: 1em !important;
    }
    
    /* Account switcher popup */
    #accountswitcher_header_popup {
        display: none;
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 90% !important;
        max-width: 400px !important;
        max-height: 70vh !important;
        background: var(--block-dark) !important;
        border: 2px solid var(--accent1) !important;
        border-radius: 10px !important;
        padding: 15px !important;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.8) !important;
        z-index: 9999 !important;
        overflow-y: auto !important;
    }
    
    #accountswitcher_header_popup ul.trow1 {
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }
    
    #accountswitcher_header_popup .as_head_drop {
        padding: 10px !important;
        border-bottom: 1px solid var(--block-lighter) !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
    }
    
    #accountswitcher_header_popup .as_head_drop:last-child {
        border-bottom: none !important;
    }
    
    #accountswitcher_header_popup .as_head_drop img {
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
    }
    
    #accountswitcher_header_popup .as_head_drop a {
        flex: 1 !important;
        font-size: 1em !important;
    }
    
    /* Logout button */
    a.logout {
        padding: 8px 10px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 36px !important;
        min-height: 36px !important;
        background: var(--block-darker) !important;
        border-radius: 3px !important;
        margin: 0 !important;
    }
    
    a.logout i {
        font-size: 1em !important;
    }
    
    /* Content area */
    #content {
        margin-top: 0 !important;
        padding-top: 10px !important;
    }
}

/* ================================================================
   SMALL MOBILE - 480px and below
   ================================================================ */

@media (max-width: 480px) {
    .wrapper {
        width: 100% !important;
        padding: 0.5em !important;
        margin: 1rem 0 !important;
        border-radius: 0 !important;
    }
    
    .mobile-menu-toggle {
        padding: 5px !important;
    }
    
    .hamburger-icon {
        width: 22px !important;
        height: 2px !important;
    }
    
    .main-navigation {
        padding: 70px 15px 15px !important;
    }
    
    .main-navigation ul.menu li a,
    .main-navigation ul.top_links li a {
        padding: 12px 15px !important;
        font-size: 1em !important;
    }
    
    .navigation {
        font-size: 0.7em !important;
    }
    
    span.welcome {
        font-size: 0.7em !important;
        max-width: 50% !important;
    }
    
    span.lower ul.menu li a {
        min-width: 32px !important;
        min-height: 32px !important;
        padding: 6px 8px !important;
    }
    
    span.lower ul.menu li a i {
        font-size: 0.9em !important;
    }
    
    #accountswitcher_header > a {
        min-width: 32px !important;
        min-height: 32px !important;
        padding: 6px 8px !important;
    }
    
    a.logout {
        min-width: 32px !important;
        min-height: 32px !important;
        padding: 6px 8px !important;
    }
    
    #accountswitcher_header_popup {
        width: 95% !important;
        max-height: 60vh !important;
    }
    
    #accountswitcher_header_popup .as_head_drop {
        padding: 8px !important;
    }
    
    #accountswitcher_header_popup .as_head_drop img {
        width: 35px !important;
        height: 35px !important;
    }
    
    #accountswitcher_header_popup .as_head_drop a {
        font-size: 0.9em !important;
    }
}