/* ========================================
   KEEP EXACT WIDTHS BUT CENTER WITH MARGIN
   ======================================== */

/* Header at 85% */
html body div#header,
body div#header,
div#header {
    width: 85% !important;
    max-width: 85% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 20px !important;
    margin-bottom: 5px !important;
    float: none !important;
}

/* Category tabs at 85% and centered */
.category-tabs-wrapper {
    width: 85% !important;
    float: none !important;
    margin: 0 auto 15px auto !important;
}

.tabs-underline {
    justify-content: center !important;
}

/* Container normal */
#container {
    max-width: 100% !important;
    margin: 0 auto !important;
}

/* Forums EXACTLY 60% with left margin to center */
.forums,
div.forums,
.forums.float-left,
div.forums.float-left {
    width: 60% !important;
    max-width: 60% !important;
    float: left !important;
    box-sizing: border-box !important;
    margin-left: 7.5% !important;
}

/* Sidebar EXACTLY 25% with gap */
.main-aside,
aside.main-aside,
.main-aside.float-right,
aside.main-aside.float-right {
    width: 25% !important;
    max-width: 25% !important;
    float: right !important;
    margin-top: 0 !important;
    margin-right: 7.5% !important;
    margin-left: 0 !important;
    box-sizing: border-box !important;
}
/* ========================================
   CORRECT HEADER WIDTH & CENTERING
   Replace everything at the top with this
   ======================================== */

/* Remove container padding that's causing issues */
#container {
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 1 !important;
}

body {
    padding: 0 20px !important;
    background: #0a0a0a !important;
}

/* Override OLD logo styling */
#header .logo {
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    text-align: left !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    font-size: 28px !important;
    font-weight: 900 !important;
    letter-spacing: 2px !important;
    padding: 0 !important;
}

#header .logo h1 {
    font-size: inherit !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline !important;
}

#header .logo h1 a {
    font-size: inherit !important;
    display: inline-flex !important;
    height: auto !important;
    width: auto !important;
}

#header .logo h1 a::before,
#header .logo h1 a::after {
    content: none !important;
    display: none !important;
}

#header .logo a {
    display: inline-flex !important;
    width: auto !important;
    height: auto !important;
    text-decoration: none !important;
}

#header .logo span.logo-game {
    color: #ffffff !important;
    display: inline !important;
}

#header .logo span.logo-hooked {
    color: #ff3333 !important;
    display: inline !important;
}

/* PROPER MODERN HEADER */
body #header,
div#header {
    position: relative !important;
    background: rgba(15, 15, 15, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(143, 34, 34, 0.2) !important;
    border-radius: 16px !important;
    padding: 20px 30px !important;
    margin: 20px 0 5px 0 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* HEADER RIGHT */
#header .header-right {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* TOP MENU */
#header .top-menu {
    display: flex !important;
    flex-direction: row !important;
    gap: 15px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

#header .top-menu a {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d) !important;
    border: 1.5px solid #2a2a2a !important;
    padding: 10px 20px !important;
    border-radius: 10px !important;
    color: #999999 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

#header .top-menu a:hover {
    background: linear-gradient(145deg, #2a0808, #150505) !important;
    border-color: #ff3333 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.3) !important;
}

/* USER CONTROLS */
#header .user-controls {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    align-items: center !important;
}

#header .control-btn {
    width: 44px !important;
    height: 44px !important;
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d) !important;
    border: 1.5px solid #2a2a2a !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #999999 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    text-decoration: none !important;
}

#header .control-btn i {
    font-size: 18px !important;
}

#header .control-btn:hover {
    background: linear-gradient(145deg, #2a0808, #150505) !important;
    border-color: #ff3333 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.3) !important;
}

/* Hide badges */
#header .badge {
    display: none !important;
}

/* USER PROFILE BUTTON */
#header .user-profile-btn {
    background: linear-gradient(135deg, rgba(143, 34, 34, 0.3), rgba(143, 34, 34, 0.1)) !important;
    border: 1px solid rgba(143, 34, 34, 0.2) !important;
    border-radius: 12px !important;
    padding: 8px 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

#header .user-profile-btn:hover {
    background: linear-gradient(135deg, rgba(143, 34, 34, 0.5), rgba(143, 34, 34, 0.2)) !important;
    border-color: #ff3333 !important;
    transform: translateY(-2px) !important;
}

#header .user-avatar {
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
    border: 2px solid #ff3333 !important;
    object-fit: cover !important;
}

#header .user-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

#header .user-name {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
}

#header .user-rank {
    font-size: 11px !important;
    color: #ff3333 !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

#header .dropdown-icon {
    color: #999999 !important;
    font-size: 12px !important;
    transition: transform 0.3s ease !important;
}

#header .user-profile-btn.active .dropdown-icon {
    transform: rotate(180deg) !important;
}

/* Hide old panel */
#panel {
    display: none !important;
}
/* Hide Recent Posts Widget */
.recent-posts-widget {
    display: none !important;
}

/* ========================================
   OPTION 3: CARD TABS WITH ICONS - CATEGORY TABS
   Replace your existing .tabs-underline and related styles with this
   ======================================== */

/* Category Tabs Wrapper - Match forum width */
.category-tabs-wrapper {
	margin-bottom: 20px;
	width: 75%;
	float: left;
}

/* Card Tabs Container - No background bar, centered cards */
.tabs-underline {
	display: flex;
	gap: 15px;
	padding: 20px 0 20px 0;
	background: transparent;
	border: none;
	border-radius: 0;
	overflow: hidden;
	overflow-x: auto;
	justify-content: center;
}

/* Hide scrollbar but keep functionality */
.tabs-underline::-webkit-scrollbar {
	height: 6px;
}

.tabs-underline::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, 0.2);
}

.tabs-underline::-webkit-scrollbar-thumb {
	background: rgba(143, 34, 34, 0.5);
	border-radius: 3px;
}

.tabs-underline::-webkit-scrollbar-thumb:hover {
	background: rgba(143, 34, 34, 0.8);
}

/* Individual Tab Card */
.tab-underline {
	padding: 24px 32px;
	background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
	border: 1px solid #2a2a2a;
	border-radius: 20px;
	color: #888;
	cursor: pointer;
	transition: all 0.4s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 15px;
	min-width: 170px;
	text-align: center;
	margin-bottom: 0;
	white-space: nowrap;
	user-select: none;
	position: relative;
	box-shadow: 
		8px 8px 16px rgba(0, 0, 0, 0.5),
		-8px -8px 16px rgba(40, 40, 40, 0.1);
}

/* Tab Icon */
.tab-underline i {
	font-size: 32px;
	transition: all 0.4s ease;
	color: #ff3333;
}

/* Tab Text */
.tab-underline span {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #888;
	transition: all 0.3s ease;
}

/* Tab Hover State */
.tab-underline:hover {
	transform: translateY(-8px);
	box-shadow: 
		12px 12px 24px rgba(0, 0, 0, 0.6),
		-12px -12px 24px rgba(50, 50, 50, 0.1),
		0 0 30px rgba(255, 51, 51, 0.3);
	border-color: #ff3333;
	color: #fff;
}

.tab-underline:hover i {
	transform: scale(1.2) rotateZ(5deg);
	filter: drop-shadow(0 5px 15px #ff3333);
	color: #ff5555;
}

.tab-underline:hover span {
	color: #fff;
}

/* Tab Active State */
.tab-underline.active {
	background: linear-gradient(145deg, #2a0808, #150505);
	border-color: #ff3333;
	color: #fff;
	box-shadow: 
		inset 4px 4px 8px rgba(0, 0, 0, 0.5),
		inset -4px -4px 8px rgba(60, 20, 20, 0.2),
		0 0 40px rgba(255, 51, 51, 0.4);
}

.tab-underline.active i {
	color: #ff3333;
	transform: scale(1.1);
}

.tab-underline.active span {
	color: #fff;
}

/* Hide collapse/expand button on category tabs */
.tabs-underline .expcolimage,
.category-tabs-wrapper .expcolimage,
.forum-category-wrapper .expcolimage {
	display: none !important;
}

/* Hide original category headers when using tabs */
.forum-category-wrapper .category-header {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	
}

/* Forum category wrapper visibility */
.forum-category-wrapper {
	display: none;
}

.forum-category-wrapper:first-of-type {
	display: block;
}

/* Responsive adjustments */
@media (max-width: 968px) {
	.tab-underline {
		min-width: 120px;
		padding: 15px 20px;
	}
	
	.tab-underline i {
		font-size: 20px;
	}
	
	.tab-underline span {
		font-size: 12px;
	}
}

/* Live Activity Widget - Right Sidebar */
.live-activity-widget {
	background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
	border: 1.5px solid #2a2a2a;
	border-radius: 20px;
	overflow: hidden;
	margin-bottom: 20px;
}

.live-activity-widget .widget-header {
	background: #391717;
	padding: 20px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: none;
	gap: 12px;
}

.live-activity-widget .widget-header i {
	color: #ff3333;
	font-size: 20px;
}

.live-activity-widget .widget-header span {
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.live-indicator {
	margin-left: auto;
	background: #ff3333;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 11px !important;
	font-weight: 700 !important;
	color: #fff !important;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.7; }
}

.activity-list {
	padding: 20px;
	max-height: 500px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.activity-item {
	padding: 18px;
	background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
	border: 1.5px solid #2a2a2a;
	border-radius: 16px;
	transition: all 0.3s ease;
	box-shadow: 
		4px 4px 8px rgba(0, 0, 0, 0.4),
		-2px -2px 6px rgba(40, 40, 40, 0.1);
}

.activity-item:hover {
	transform: translateY(-4px) scale(1.02);
	border: 1.5px solid #ff3333;
	box-shadow: 
		6px 6px 12px rgba(0, 0, 0, 0.5),
		-3px -3px 8px rgba(50, 50, 50, 0.1),
		0 0 20px rgba(255, 51, 51, 0.2);
}

.activity-icon {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: all 0.3s ease;
}

.activity-icon i {
	font-size: 14px;
}

.activity-icon.new-thread {
	color: #ff3333;
}

.activity-icon.new-thread i {
	color: #ff3333;
}

.activity-icon.new-reply {
	color: #ff3333;
}

.activity-icon.new-reply i {
	color: #ff3333;
}

.activity-title {
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	display: block;
	margin-bottom: 8px;
	line-height: 1.4;
	transition: color 0.3s ease;
}

.activity-title:hover {
	color: #ff5555;
}

.activity-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 12px;
	color: #999;
}

.activity-user {
	color: #ff3333;
	font-weight: 600;
}

.activity-time {
	color: #999;
}

/* Recent Posts Widget - Below Header */
.recent-posts-widget {
	background: rgba(26, 26, 26, 0.95);
	border: 1px solid rgba(143, 34, 34, 0.3);
	border-radius: 8px;
	margin-bottom: 20px;
	overflow: hidden;
	width: 100%;
	clear: both;
}

.widget-header-posts {
	background: linear-gradient(90deg, rgba(143, 34, 34, 0.3), rgba(143, 34, 34, 0.1));
	padding: 15px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid rgba(143, 34, 34, 0.3);
}

.header-left {
	display: flex;
	align-items: center;
	gap: 10px;
}

.header-left i {
	color: #ff3333;
	font-size: 18px;
}

.header-left span {
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.live-feed-link {
	color: #ff6666;
	font-size: 13px;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.3s ease;
}

.live-feed-link:hover {
	color: #ff3333;
}

.recent-posts-list {
	padding: 15px;
	display: flex;
	flex-direction: column;
	gap: 15px;
	max-height: 400px;
	overflow-y: auto;
}

.recent-post-item {
	display: flex;
	gap: 15px;
	padding: 15px;
	background: rgba(15, 15, 15, 0.5);
	border-radius: 8px;
	border-left: 3px solid rgba(143, 34, 34, 0.5);
	transition: all 0.3s ease;
}

.recent-post-item:hover {
	background: rgba(45, 15, 15, 0.5);
	border-left-color: #ff3333;
}

.post-avatar {
	flex-shrink: 0;
}

.post-avatar img {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	border: 2px solid rgba(143, 34, 34, 0.3);
}

.post-content {
	flex: 1;
	min-width: 0;
}

.post-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.post-author {
	font-size: 14px;
	font-weight: 600;
	color: #ff6666;
}

.post-time {
	font-size: 12px;
	color: #666;
}

.post-text {
	font-size: 14px;
	color: #d2d2d2;
	line-height: 1.5;
	margin-bottom: 8px;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.post-location {
	font-size: 12px;
	color: #999;
	font-style: italic;
}

.post-location a {
	color: #ff6666;
	text-decoration: none;
}

.post-location a:hover {
	color: #ff3333;
}

/* Scrollbar styling for feeds */
.activity-list::-webkit-scrollbar,
.recent-posts-list::-webkit-scrollbar {
	width: 6px;
}

.activity-list::-webkit-scrollbar-track,
.recent-posts-list::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, 0.2);
}

.activity-list::-webkit-scrollbar-thumb,
.recent-posts-list::-webkit-scrollbar-thumb {
	background: rgba(143, 34, 34, 0.5);
	border-radius: 3px;
}

.activity-list::-webkit-scrollbar-thumb:hover,
.recent-posts-list::-webkit-scrollbar-thumb:hover {
	background: rgba(143, 34, 34, 0.8);
}

/* Modern Forum Cards - Option 1 Style */

/* Category Wrapper */
.forum-category-wrapper {
	margin-bottom: 30px;
}

/* Category Header */
.category-header {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 15px 20px;
	background: rgba(143, 34, 34, 0.2);
	border-radius: 8px;
	margin-bottom: 15px;
	border-left: 4px solid #ff3333;
}

.category-header .cat-icon {
	width: 50px;
	height: 50px;
	background: linear-gradient(135deg, #d32f2f, #ff6659);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	color: #fff;
	box-shadow: 0 4px 15px rgba(255, 51, 51, 0.4);
	margin: 0;
	float: none;
}

.category-header .cat-icon i {
	line-height: normal;
	color: #ffffff !important;
	opacity: 1 !important;
}

.category-title {
	flex: 1;
}

.category-title a {
	font-size: 16px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #fff;
	text-decoration: none;
}

.category-header .expcolimage {
	margin: 0;
	float: none;
	background: rgba(0, 0, 0, 0.3);
	width: 40px;
	height: 40px;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.category-header .expcolimage:hover {
	background: rgba(0, 0, 0, 0.5);
}

/* Forum List Container */
.forum-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Individual Forum Card - Activity Feed Style */
/* ========================================
   FORUM CARDS - CLEAN FINAL VERSION
   ======================================== */

.forum-card {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border: 1.5px solid #2a2a2a;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 14px;
    display: block;
    transition: all 0.3s ease;
    position: relative;
}

.forum-card:hover {
    background: linear-gradient(145deg, #2a0808, #150505);
    border-color: #ff3333;
    box-shadow: 0 0 40px rgba(255, 51, 51, 0.4);
    transform: translateY(-2px);
}


.forum-header-section {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.forum-icon-wrapper {
    flex-shrink: 0;
    width: 64px;
}

.forum_status {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: #251414;
    border: 1.5px solid #391717;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    overflow: hidden;
}

.forum_status i {
    font-size: 28px;
    color: #ff3333 !important;
    opacity: 1;
}


.forum-content {
    flex: 1;
    min-width: 0;
}

.forum-header {
    margin-bottom: 8px;
}

.forum-name {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.forum-name a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
}

.forum-name a:hover {
    color: #ff3333;
}

.forum-description {
    font-size: 14px;
    line-height: 1.6;
    color: #aaa;
    margin: 0 0 16px 0;
}

.forum-meta {
    display: flex;
    gap: 32px;
    align-items: center;
}

.forum-stat {
    display: flex;
    align-items: center;
    gap: 8px;
}

.forum-stat i {
    color: #666;
    font-size: 15px;
}

.forum-stat .stat-label {
    color: #777;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.forum-stat .stat-value {
    color: #ff3333;
    font-weight: 700;
    font-size: 20px;
}

.forum-lastpost {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: flex-start;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid rgba(60, 60, 60, 0.3);
    margin-left: 0;
    padding-left: 0;
}

.lastpost-with-avatar {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: flex-start;
    width: 100%;
}

.lastpost-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.lastpost-content {
    flex: 1;
    min-width: 0;
}

.lastpost-title {
    font-size: 14px;
    font-weight: 600;
    color: #ddd;
    margin-bottom: 4px;
}

.lastpost-title a {
    color: #ddd;
    text-decoration: none;
}

.lastpost-title a:hover {
    color: #ff3333;
}

.lastpost-meta {
    font-size: 12px;
    color: #777;
}

.lastpost-meta a {
    color: #ff3333;
    text-decoration: none;
}

.no-posts-yet {
    color: #666;
    font-size: 13px;
    font-style: italic;
    margin-left: 0;
    padding-left: 0;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid rgba(60, 60, 60, 0.3);
}

/* Category tabs - bold text and proper icon size */
.tab-underline,
.category-tab,
.tabs-underline .tab-underline {
    font-weight: 700;
}

.tab-underline i,
.category-tab i,
.tabs-underline .tab-underline i {
    font-size: 22px;
}
	min-width: 200px;
	font-size: 13px;
	color: #999;
}

/* Remove old table styling conflicts */
.tborder {
	background: transparent;
	padding: 0;
	border: none;
}



blockquote {
	background: #1b1b1b;
	border-left: 3px solid #e79100;
	padding: 10px;
	border-radius: 4px;
}

blockquote cite {
	font-weight: bold;
	border-bottom: 1px solid #2f2f2f;
	font-style: normal;
	display: block;
	padding-bottom: 3px;
	margin: 0 0 10px 0;
}

blockquote cite span {
	float: right;
	font-weight: normal;
	font-size: 12px;
	color: #D2D2D2;
}

blockquote cite span.highlight {
	float: none;
	font-weight: bold;
	padding-bottom: 0;
}

html, body {
	margin: 0;
	padding: 0;
	background: #0d0d0d;
	font-family: 'Arial', sans-serif;
	font-size: 12px;
	line-height: 1.4;
	font-weight: 300;
	color: #D2D2D2;
	background-size: cover;
	overflow-x: hidden;
}

a, input, textarea, button, .button {
	-webkit-transition: all 0.3s ease-in-out;
	-moz-transition: all 0.3s ease-in-out;
	-o-transition: all 0.3s ease-in-out;
	-ms-transition: all 0.3s ease-in-out;
}

a:link, a:visited {
	color: #D2D2D2;
	text-decoration: none;
}

a:hover, a:active {
	color: #D2D2D2;
	text-decoration: none;
}

input, textarea {
	padding: 10px 15px;
	font-size: 14px;
	font-family: 'Arial', sans-serif;
	color: #D2D2D2;
}

button, .button {
	background: #348e1d;
	padding: 9px 16px;
	border-radius: 3px;
	font-family: 'Arial', sans-serif;
	font-size: 14px;border: none;
	color: #fff;
	cursor: pointer;
}

button:hover, button:focus, .button:hover, .button:focus {
	background: #636468;
	outline: 0;
}

.float-left {
	float: left;
}

.float-right {
	float: right;
}

.clear {
	clear: both;
}

.green {
	background:#348e1d;
}

.blue {
	background: #8f2222;
}

.yellow {
	background: #f0b400
}

.shodow {
	border-radius: 4px;
}

.border-bottom {
	border-bottom: solid 1px #1c1c1c;
}

.main-conteiner {
	width: 98%;
	min-width: 960px;
	max-width: 1600px;
	margin: 0 auto;
	position: relative;
}

.conteiner {
	width: 80%;
	padding: 10px 0px;
	min-width: 960px;
	margin: 0 auto;
}

.main-body {
	background: linear-gradient(-45deg, #1a1a1a, #2d0f0f, #4d1515, #1a1a1a);
	background-size: 400% 400%;
	animation: gradientShift 15s ease infinite;
	height: 180px;
	position: relative;
	overflow: visible;
}

.main-body::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: 
		repeating-linear-gradient(30deg, transparent, transparent 50px, rgba(255, 51, 51, 0.08) 50px, rgba(255, 51, 51, 0.08) 51px),
		repeating-linear-gradient(-30deg, transparent, transparent 50px, rgba(255, 51, 51, 0.08) 50px, rgba(255, 51, 51, 0.08) 51px),
		repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(255, 51, 51, 0.08) 50px, rgba(255, 51, 51, 0.08) 51px);
	animation: hexMatrixPulse 4s ease-in-out infinite;
	filter: drop-shadow(0 0 5px rgba(255, 51, 51, 0.15));
	pointer-events: none;
	z-index: 0;
}


/* Divider bar after header */
.main-body::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: linear-gradient(90deg, 
		transparent,
		rgba(143, 34, 34, 0.5) 10%,
		rgba(255, 51, 51, 0.8) 50%,
		rgba(143, 34, 34, 0.5) 90%,
		transparent);
	box-shadow: 0 2px 10px rgba(255, 51, 51, 0.3);
	z-index: 10;
}

@keyframes hexMatrixPulse {
	0%, 100% { 
		opacity: 0.3;
		transform: scale(1);
	}
	50% { 
		opacity: 0.6;
		transform: scale(1.01);
	}
}

@keyframes gradientShift {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

/* main-header removed - user area now in gradient */ 





/* User Quick Actions - Top Right Corner */
.user-area-top {
	position: absolute;
	top: 15px;
	right: 0.5%;
	z-index: 100;
}

.user-area-top .user-quick-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.user-quick-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.user-info-display {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 16px;
	background: rgba(15, 15, 15, 0.9);
	border: 1px solid rgba(143, 34, 34, 0.3);
	border-radius: 6px;
	margin-left: 4px;
}

.user-info-display img {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 2px solid #701919;
	background: #701919;
}

.user-info-display span {
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.quick-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: rgba(15, 15, 15, 0.9);
	border: 1px solid rgba(143, 34, 34, 0.3);
	border-radius: 6px;
	color: #d2d2d2;
	font-size: 16px;
	text-decoration: none;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.quick-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background: linear-gradient(90deg, transparent, #ff3333, transparent);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.quick-btn:hover {
	background: rgba(143, 34, 34, 0.3);
	color: #fff;
	border-color: #ff3333;
	box-shadow: 0 0 20px rgba(255, 51, 51, 0.3);
	transform: translateY(-2px);
}

.quick-btn:hover::before {
	opacity: 1;
}


/* Horizontal Login/Register Buttons with Text */
.quick-btn-text {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	background: rgba(15, 15, 15, 0.9);
	border: 1px solid rgba(143, 34, 34, 0.3);
	border-radius: 6px;
	color: #d2d2d2;
	font-size: 13px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	text-decoration: none;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.quick-btn-text i {
	font-size: 14px;
}

.quick-btn-text::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background: linear-gradient(90deg, transparent, #ff3333, transparent);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.quick-btn-text:hover {
	background: rgba(143, 34, 34, 0.3);
	color: #fff;
	border-color: #ff3333;
	box-shadow: 0 0 20px rgba(255, 51, 51, 0.3);
	transform: translateY(-2px);
}

.quick-btn-text:hover::before {
	opacity: 1;
}



/* Hide old welcomeblock text */
.welcomeblock {
	display: none;
}


.main-body-menu {
	background-color: transparent;
	height: auto;
	border-radius: 0;
	padding: 0;
	position: absolute;
	top: 15px;
	left: 0.5%;
	z-index: 10;
	display: flex;
	justify-content: flex-start;
	align-items: center;
}

.main-menu {
	font-size: 13px;
	text-transform: uppercase;
	display: flex;
	justify-content: flex-start;
}

.main-menu > ul {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: nowrap;
}

.position {
	display: flex !important;
	justify-content: flex-start;
	align-items: center;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.main-menu>ul i {
	background: transparent;
	line-height: inherit;
	text-align: center;
	margin-right: 6px;
	width: auto;
	border-radius: 0;
	font-size: 14px;
	color: #fff;
	box-shadow: none;
	display: inline-block;
	vertical-align: middle;
}

.main-menu>ul>li {
	display: inline-block;
	position: relative;
	margin: 0 3px;
	height: auto;
	flex-shrink: 0;
}

.main-menu>ul>li:first-child {
	order: -1;
	margin-left: 0;
}

.main-menu>ul>li:last-child {
	margin-right: 0;
}

.main-menu>ul>li>a:link, .main-menu>ul>li>a:visited {
	display: block;
	padding: 10px 16px;
	color: #d2d2d2;
	font-weight: 500;
	font-size: 12px;
	background: rgba(15, 15, 15, 0.9);
	border: 1px solid rgba(143, 34, 34, 0.3);
	border-radius: 6px;
	position: relative;
	overflow: hidden;
	transition: all 0.3s ease;
}

.main-menu>ul>li>a::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background: linear-gradient(90deg, transparent, #ff3333, transparent);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.main-menu>ul>li>a i, .main-menu>ul>li>a i {
	font-size: 17px;
}

.main-menu>ul>li>a:hover, .main-menu>ul>li>a:active {
	background: rgba(143, 34, 34, 0.3);
	color: #fff;
	border-color: #ff3333;
	box-shadow: 0 0 20px rgba(255, 51, 51, 0.3);
	transform: translateY(-2px);
}

.main-menu>ul>li>a:hover::before, .main-menu>ul>li>a:active::before {
	opacity: 1;
}

.main-menu>ul>li>ul {
	position: absolute;
	display: none;
	top: 50px;
	left: -60px;
	width: 200px;
	background: #131313;
	z-index: 9997;
	box-shadow: 0px 7px 20px rgba(0, 0, 0, 0.2);
	border-radius: 4px;
	padding: 5px;
}

.main-menu>ul>li>ul::before {
	width: 0;
	height: 0;
	display: block;
	border-left: 10px solid transparent;
	border-right: 10px solid transparent;
	border-bottom: 10px solid #131313;
	content: '';
	position: absolute;
	top: -10px;
	left: 80px;
}

.main-menu>ul>li>ul>li>a {
	display: block;
	padding: 5px 0;
}

.main-menu>ul>li>ul>li {
	display: block;
}

.main-menu>ul>li>ul>li>a:link, .main-menu>ul>li>ul>li>a:visited {
	display: block;
	color: #a6a6a6;
	padding: 8px 10px;
	font-size: 14px;
}

.main-menu>ul>li>ul>li>a:hover, .main-menu>ul>li>ul>li>a:active {
	color: #ff6c00;
}

.user-log {
	margin-top: 9px;
}

.user-log-panel {
	float: right;
}

.user-log>ul>li {
	display: block;
	float: left;
	position: relative;
	text-transform: uppercase;
	font-size: 13px;
}

.user-log>ul>li>a:link, .user-log>ul>li>a:visited {
	display: block;
	float: left;
	padding: 12px 20px;
	color: #D2D2D2;
	font-weight: 500;
	border-radius: 4px;
}

.user-log>ul>li>a:hover, .user-log>ul>li>a:active {
	background: rgba(0,0,0,0.3);
}

.welcomeblock {
	line-height: 60px;
	color:#D2D2D2;
	font-size: 13px;
}

.welcomeblock span {
	color:#ff6c00;
}

#login-modal {
	display: none;
	position: absolute;
	background: #131313;
	height: 255px;
	width: 270px;
	margin-top: 50px;
	border:1px solid rgba(0,0,0,0.1);
	z-index: 9999;
	border-radius: 4px;
	box-shadow:0 0 3px rgba(0,0,0,0.5);
}

#login-modal::before {
	width: 0;
	height: 0;
	display: block;
	border-left: 10px solid transparent;
	border-right: 10px solid transparent;
	border-bottom: 10px solid #131313;
	content: '';
	position: absolute;
	top: -10px;
	left: 45px;
}

#login-modal h1 {
	padding-top: 13px;
	font-size: 17px;
	font-family: 'Arial', sans-serif;
	font-weight: 100;
}

#login-modal i {
	background: #8f2222;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 3px;
	height: 30px;
	width: 30px;
	text-align: center;
	line-height: 30px;
	color: #D2D2D2;
	float: left;
	margin: 10px;
	border-radius: 3px;
}

#login-modal .input-wraper {
	position: relative;
	margin: 10px;
}

#login-modal .input-wraper .txt-icon {
	position: absolute;
	font-size: 14px;
	top: 14px;
	left: 15px;
}

#login-modal .input-wraper input.txt-field {
	width: 218px;
	padding-left: 15px;
	border: 1px solid #2e2e2e;
	background: #2e2e2e;
}

#login-modal button {
	width: 100%;
	background: #8f2222;
}

#login-modal button:hover {
	width: 100%;
	background: #1c5d8f;
}

#login-modal .checkbox {
	margin: 10px 0px;
}

#login-modal .checkbox p {
	margin-left: 16px;
}

#login-modal ul.login-menu {
	margin: 5px 10px;
	text-align: center;
}

#login-modal ul.login-menu li {
	display: block;
	margin-top: 5px;
}

#login-modal ul.login-menu li a {
	background: none!important;
}

.dropit {
	list-style: none;
	padding: 0;
	margin: 0;
}

.dropit .dropit-trigger {
	position: relative;
	font-size: 17px;
	line-height: 60px;
	margin-left: 10px;
}

.dropit .dropit-trigger a {
	color: #D2D2D2;
}

.dropit .dropit-trigger i {
	color: #D2D2D2;
}

.dropit .dropit-submenu {
	position: absolute;
	top: 100%;
	right: 0;
	z-index: 1000;
	display: none;
	list-style: none;
	padding: 0;
	margin: 0;
}

.dropit .dropit-open .dropit-submenu {
	display: block;
}

.user-drop {
	width: 250px;
}

.user-drop .user-info img {
	border-radius: 90px;
	height: 40px;
	width: 40px;
	margin-top: 10px;
	float: left;
	background: #701919;
	border: 2px solid #701919;
}

.user-panel ul {
	display: none;
} 

.user-panel ul.dropit-submenu {
	background: #131313;
	padding: 5px 0px;
	width: 250px;
	margin-top: 0px;
	border:1px solid rgba(0,0,0,0.1);
	box-shadow: 0px 7px 20px rgba(0, 0, 0, 0.2);
	border-radius: 4px;
	padding: 5px;
}

.user-panel ul.dropit-submenu ::before {
	width: 0;
	height: 0;
	display: block;
	border-left: 10px solid transparent;
	border-right: 10px solid transparent;
	border-bottom: 10px solid #131313;
	content: '';
	position: absolute;
	top: -10px;
	left: 80%;
}

.user-panel ul.dropit-submenu h2 {
	background:#1c1c1c;
	font-size: 15px;
	height: 30px;
	line-height: 30px;
	padding: 0px 5px;
	font-weight: 100;
	color: #D2D2D2;
}

.user-panel ul.dropit-submenu a {
	display: block;
	font-size: 15px;
	line-height: 40px;
	color: #D2D2D2;
	padding: 0 5px;
}

.user-panel ul.dropit-submenu a:hover {
	background: rgba(0,0,0,0.1);
	color: #D2D2D2;
	text-decoration: none;
}

.logo {
	margin: 0 auto;
	width: 400px;
	height: 180px;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Custom GameHooked Logo - Split Color Clean */
.logo h1 {
	font-size: 52px;
	font-weight: 900;
	letter-spacing: 4px;
	text-transform: uppercase;
	margin: 0;
	line-height: 1.2;
}

.logo h1 a {
	text-decoration: none;
	display: inline-block;
	font-size: 0;
}

/* GAME in white */
.logo h1 a::before {
	content: 'GAME';
	color: #fff;
	font-size: 52px;
	font-weight: 900;
	letter-spacing: 4px;
	text-shadow: none;
}

/* HOOKED in red - no space */
.logo h1 a::after {
	content: 'HOOKED';
	color: #ff3333;
	font-size: 52px;
	font-weight: 900;
	letter-spacing: 4px;
	text-shadow: none;
	margin-left: -16px;
}

.logo a {
	display: block;
	width: 100%;
	height: 180px;
}

#search {
	border: 0;
	padding: 0;
	margin: 0;
	float: right;
	vertical-align: middle;
}

#search input.button, #search input.textbox {
	border-color: #000;
}

#search input.button {
	background: #0066a2 url(../../../images/thead.png) top left repeat-x;
	color: #fff;
}

#search input {
	margin: -3px 0;
}

.forums {
	width: 75%;
}
.forums-content {
	padding: 20px;
	background: #fff;
	border-radius: 3px;
}

.main-aside {
	width: 24%;
}

.footer {
	background: linear-gradient(-45deg, #1a1a1a, #2d0f0f, #4d1515, #1a1a1a);
	background-size: 400% 400%;
	animation: gradientShift 15s ease infinite;
	height: 180px;
	position: relative;
	overflow: hidden;
}

.footer::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: 
		repeating-linear-gradient(30deg, transparent, transparent 50px, rgba(255, 51, 51, 0.08) 50px, rgba(255, 51, 51, 0.08) 51px),
		repeating-linear-gradient(-30deg, transparent, transparent 50px, rgba(255, 51, 51, 0.08) 50px, rgba(255, 51, 51, 0.08) 51px),
		repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(255, 51, 51, 0.08) 50px, rgba(255, 51, 51, 0.08) 51px);
	animation: hexMatrixPulse 4s ease-in-out infinite;
	filter: drop-shadow(0 0 5px rgba(255, 51, 51, 0.15));
	pointer-events: none;
	z-index: 0;
}

.footer-menu {
	background-color: #080808;
	height: 60px;
	font-family: 'Arial', sans-serif;
	border-bottom: 1px solid #131313;
	border-top: 1px solid #131313;
} 

.footer-menu .links {
	float: right;
	line-height: 60px;
}

.footer-menu .links a {
	margin-left: 20px;
	font-size: 14px;
	font-weight: 300;
	color: inherit;
	text-transform: uppercase;
}

.footer-menu .links a:hover {
	color: #ff6c00;
}

.footer-top {
	margin-top: 50px;
	text-align: center;
}

.footer-top a {
	display: inline-block;
	padding: 10px 11px 12px;
	background:rgba(255,255,255,0.1);
	border-radius: 5px;
	color: #D2D2D2;
	transition: all 0.2s;
}

.footer-top a:hover, footer .top a:focus {
	color: #EEE;
}

.footer-mybb {
	margin-top: -35px;
	font-size: 13px;
	color: #D2D2D2;
}

.footer-coding {
	margin-top: -65px;
	font-size: 13px;
	color: #D2D2D2;
	text-align:right;
}

.footer-mybb a, .footer-coding a {
	color: #D2D2D2;
}

.scaleimages img {
	max-width: 100%;
}


.forum_status i {
	display: inline-block;
	line-height: 50px;
}

.forum_on {
	color: #348e1d;
}

.forum_off, .forum_offlock, .forum_offlink {
	color: #D2D2D2;
}

.forum_off i {
	opacity: .4;
}

.forum_offlock i:before {
	content: "\f023";
}

.forum_offlink i:before {
	content: "\f0c1";
}

.tborder-name{
	margin-left: 50px;
	line-height: 38px;
}

.color-theme {
	color:#3f3f3f;
	font-size: 13px;
}

.subforumicon {
	height: 10px;
	width: 10px;
	display: inline-block;
	margin: 0 5px;
	background: url(../../../images/mini_status_sprite.png) no-repeat 0 0;
}

.subforum_minion {
	background-position: 0 0;
}

.subforum_minioff {
	background-position: 0 -10px;
}

.subforum_miniofflock {
	background-position: 0 -20px;
}

.subforum_miniofflink {
	background-position: 0 -30px;
}



table {
	 color: #0d0d0d;
	 font-size: 13px;
}

.tfixed {
	table-layout: fixed;
	word-wrap: break-word;
}

.tborder {
	background: #121212;
	padding:6px;
	border-radius: 4px;
	width: 100%;
	margin: auto auto;
	font-family: 'Arial', sans-serif;
	border: 1px solid #131313;
}

.thead {
	position: relative;
	height: 38px;
	line-height: 38px;
	padding: 0 4px 0  4px;
	color: #D2D2D2;
	font-family: 'Arial', sans-serif;
	text-transform: uppercase;
	font-size: 15px;
	border-radius: 3px;
}

.thead a:link {
	color: #D2D2D2;
	text-decoration: none;
}

.thead a:visited {
	color: #D2D2D2;
	text-decoration: none;
}

.thead a:hover, .thead a:active {
	color: #D2D2D2;
	text-decoration: none;
}

.cat-icon {
	width: 40px;
	height: 40px;
	background: #8f2222;
	border-radius: 4px;
	margin-right: 10px;
	box-shadow:0 0 6px rgba(0,0,0,0.5);
	margin-left: -4px;
}

.cat-icon i {
	width: 40px;
	height: 40px;
	text-align: center;
	line-height: 40px;
	color: #fff;
}

.cat-icon::before {
	font-size: 16px;
	color: #fff;
	font-family: "FontAwesome";
	width: 40px;
	height: 40px;
	line-height: 40px;
	text-align: center;
	display: inline-block;
}

a.cat-link {
	font-size: 14px;
	text-transform: uppercase;
	font-weight: 900;
	height: 40px;
	line-height: 40px;
	letter-spacing: 1px;
}

.expcolimage {
	float: right;
	width: 38px;
	height: 38px;
	line-height: 38px;
	text-align: center;
	vertical-align: middle;
	background: rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	margin-right: -4px;
}

.expcolimage:hover {
	background: rgba(0,0,0,0.3);
}

.expcolimage img {
	padding:12px 0px;
}

.tcat {
	color: #fff;
	border-top: 1px solid #191919;
	border-bottom: 1px solid #191919;
	padding: 6px;
	font-size: 12px;
	text-transform: uppercase;
}

.tcat a:link {
	color: #fff;
}

.tcat a:visited {
	color: #fff;
}

.tcat a:hover, .tcat a:active {
	color: #fff;
}

.trow1 {
	padding: 10px ;
	border-bottom: 1px solid #191919;
	font-size: 16px;
	font-family: 'Arial', sans-serif;
	line-height: 1.3;
	color: #D2D2D2;
}

.trow2 {
	padding: 10px;
	border-bottom: 1px solid #191919;
	font-size: 16px;
	font-family: 'Arial', sans-serif;
	line-height: 1.3;
	color: #D2D2D2;
}

.trow_shaded {
	color: #D2D2D2;
}

.no_bottom_border {
	border-bottom: 0;
}

.trow_deleted, .post.deleted_post {
	background: #E8DEFF;
}

.trow_selected, tr.trow_selected td {
	color: #333;
	border-right-color: #191919;
	border-bottom-color: #191919;
}

.trow_selected a:link, .trow_selected a:visited, .trow_selected a:hover, .trow_selected a:active {
	color: #D2D2D2;
}

.trow_sep{
	color: #D2D2D2;
	border-bottom: 1px solid #191919;
	padding: 6px;
	font-size: 12px;
	text-transform: uppercase;
}

.tfoot {
	padding: 6px;
	background: #191919;
	color: #D2D2D2;
}

.tfoot a:link {
	color: #444;
	text-decoration: none;
}

.tfoot a:visited {
	color: #444;
	text-decoration: none;
}

.tfoot a:hover, .tfoot a:active {
	color: #444;
	text-decoration: underline;
}

.thead input.textbox, .thead select {
	border: 1px solid #263c30;
}

.bottommenu {
	background: #efefef;
	color: #333;
	border: 1px solid #4874a3;
	padding: 10px;
}

.navigation {
	color: #333;
	font-size: 12px;
}

.navigation a:link {
	text-decoration: none;
}

.navigation a:visited {
	text-decoration: none;
}

.navigation a:hover, .navigation a:active {
	text-decoration: underline;
}

.navigation .active {
	color: #333;
	font-size: small;
	font-weight: bold;
}

.smalltext {
	font-size: 11px;
	color: #D2D2D2;
}

.largetext {
	font-size: 16px;
	font-weight: bold;
}

fieldset {
	padding: 12px;
	border: 1px solid #191919;
	margin: 0;
}

fieldset.trow1, fieldset.trow2 {
	border-color: #191919;
}

fieldset.align_right {
	text-align: left;
}

input.textbox {
	background: #2a2a2a;
	color: #D2D2D2;
	border: 3px solid rgba(0,0,0,0.3);
	padding: 5px;
	outline: 0;
	font-size: 13px;
	font-family: Arial, Sans-Serif;
}

textarea {
	background: #2a2a2a;
	color: #D2D2D2;
	border: 3px solid rgba(0,0,0,0.3);
	padding: 5px;
	line-height: 1.4;
	outline: 0;
	font-family: Arial, Sans-Serif;
	font-size: 13px;
}

select {
	background: #2a2a2a;
	padding: 5px;
	border: 3px solid rgba(0,0,0,0.3);
	outline: 0;
	font-family: Arial, Sans-Serif;
	font-size: 13px;
	color: #D2D2D2;
}

button, input.button {
	padding: 8px;
	cursor: pointer;
	font-family: Arial, Sans-Serif;
	font-size: 13px;
	background: #701919;
	border: none;
	color: #fff;
	outline: 0;
}

button:hover, input.button:hover {
	background: #348e1d;
}

form {
	margin: 0;
	padding: 0;
}

input.error, textarea.error, select.error {
	border: 1px solid #f30;
	color: #f30;
}

input.valid, textarea.valid, select.valid {
	border: 1px solid #0c0;
}

label.error {
	color: #f30;
	margin: 5px;
	padding: 0px;
	display: block;
	font-weight: bold;
	font-size: 11px;
}

form #message {
	width: 500px;
}

.editor {
	background: #f1f1f1;
	border: 1px solid #ccc;
}

.editor_control_bar {
	background: #fff;
	border: 1px solid #ccc;
}

.post .editor_control_bar {
	background: #f5f5f5;
}

.trow_reputation_positive {
	background: #ccffcc;
}

.trow_reputation_negative {
	background: #ffcccc;
}

.reputation_positive {
	color: green;
}

.reputation_neutral {
	color: #444;
}

.reputation_negative {
	color: red;
}

.repbox {
	font-size:16px;
	font-weight: bold;
	padding:5px 7px 5px 7px;
}

._neutral {
	background-color:#FAFAFA;
	color: #999999;
	border:1px solid #CCCCCC;
}

._minus {
	background-color: #FDD2D1;
	color: #CB0200;
	border:1px solid #980201;
}

._plus {
	background-color:#E8FCDC;
	color: #008800;
	border:1px solid #008800;
}

img {
	border: none;
}

img.attachment {
	border: 1px solid #E9E5D7;
	padding: 2px;
}

hr {
	background-color: #000000;
	color: #000000;
	height: 1px;
	border: 0px;
}

.clear {
	clear: both;
}

.float_left {
	float: left;
}

.float_right {
	float: right;
}

.hidden {
	display: none;
	float: none;
	width: 1%;
}

.hiddenrow {
	display: none;
}

.selectall {
	background: #FFFBD9;
	border-bottom: 1px solid #F7E86A;
	color: #333;
	text-align: center;
}

.tcat_menu > .expcolimage {
	margin-top: 0;
}

.codeblock {
	background: #1b1b1b;
	border-left: 3px solid #348e1d;
	padding: 10px;
	border-radius: 4px;
}

.codeblock .title {
	border-bottom: 1px solid #2f2f2f;
	font-weight: bold;
	padding-bottom: 3px;
	margin: 0 0 10px 0;
}

.codeblock code {
	overflow: auto;
	height: auto;
	max-height: 180px;
	display: block;
	font-family: Monaco, monospace;
	font-size: 13px;
}

.smilie {
	vertical-align: middle;
}

.smilie_pointer {
	cursor: pointer;
}

.separator {
	margin: 5px;
	padding: 0;
	height: 0px;
	font-size: 1px;
	list-style-type: none;
}

.popup_menu {
	background: #1b1b1b;
	border: 1px solid #191919;
}

.popup_menu .popup_item {
	background: #efefef;
	color: #333;
}

.popup_menu .popup_item:hover {
	background: #0072BC;
	color: #D2D2D2;
}

.popup_menu .popup_item_container {
	margin: 1px;
	text-align: left;
}

.popup_menu .popup_item {
	background: #1b1b1b;
	color: #D2D2D2;
	display: block;
	padding: 4px;
	white-space: nowrap;
	text-decoration: none;
}

.popup_menu a.popup_item:hover {
	text-decoration: none;
	background: #8f2222;
}

.subject_new {
	font-weight: bold;
}

.highlight {
	background: #FFFFCC;
	padding-top: 3px;
	padding-bottom: 3px;
}

.pm_alert {
	background: #e79100;
	text-align: center;
	padding: 10px;
	margin-bottom: 15px;
	font-size: 12px;
	border-radius: 4px;
	color: #D2D2D2;
}

.pm_alert  a:link, .pm_alert  a:visited, .pm_alert  a:hover, .pm_alert  a:active {
	color: #D2D2D2;
}

.red_alert {
	background: #b83c30;
	text-align: center;
	padding: 10px;
	margin-bottom: 15px;
	font-size: 12px;
	border-radius: 4px;
	word-wrap: break-word;
	color: #fff;
}

.red_alert a:link, .red_alert a:visited, .red_alert a:hover, .red_alert  a:active  {
	color: #D2D2D2;
}

.high_warning {
	color: #CC0000;
}

.moderate_warning {
	color: #F3611B;
}

.low_warning {
	color: #AE5700;
}

.online {
	color: #15A018;
}

.offline {
	color: #C7C7C7;
}

div.error {
	padding: 5px 10px;
	border: 5px solid rgba(0,0,0,0.5);
	background: #121212;
	font-size: 12px;
}

div.error p {
	margin: 0;color: #333;
	font-weight: 100;
}

div.error p em {
	font-style: normal;
	padding-left: 24px;
	display: block;
	color: #C00;
	background: url(../../../images/error.png) no-repeat 0;
	font-size: 15px;
}

div.error ul {
	margin-left: 24px;
}

.pagination {
	font-size: 11px;
	padding-top: 10px;
	margin-bottom: 5px;
}

.tfoot .pagination, .tcat .pagination {
	padding-top: 0;
}

.pagination .pages {
	font-weight: bold;
}

.pagination .pagination_current, .pagination a {
	padding: 3px 6px;
	margin-bottom: 3px;
}

.pagination a {
	background: #f5f5f5;
	border: 1px solid #ccc;
}

.pagination .pagination_current {
	background: none;
	color: #333;
	border: none;
	font-weight: bold;
}

.pagination a:hover {
	background: #0072BC;
	color: #D2D2D2;
	border-color: #263c30;
	text-decoration: none;
}

.pagination .go_page img {
	margin-bottom: -4px;
}

.drop_go_page {
	background: #f5f5f5;
	padding: 4px;
}

.pagination_breadcrumb {
	background-color: #efefef;
	border: 1px solid #fff;
	outline: 1px solid #ccc;
	padding: 5px;
	margin-top: 5px;
	font-weight: normal;
}

.pagination_breadcrumb_link {
	vertical-align: middle;
	cursor: pointer;
}

.thread_legend, .thread_legend dd {
	padding: 6px;
}

.thread_legend dd {
	padding-bottom: 4px;
	background: #2a2a2a;
	margin-right: 15px;
	border-radius: 4px;
	margin: 2px;
}

.thread_legend img {
	margin-right: 4px;
	vertical-align: bottom;
}

.forum_legend, .forum_legend dt, .forum_legend dd {
	margin: 0;
	padding: 0;
}

.forum_legend dd {
	float: left;
	margin-right: 10px;
	margin-top: 7px;
}

.forum_legend dt {
	margin-right: 10px;
	float: left;
}

.success_message {
	color: #00b200;
	font-weight: bold;
	font-size: 10px;
	margin-bottom: 10px;
}

.error_message {
	color: #C00;
	font-weight: bold;
	font-size: 10px;
	margin-bottom: 10px;
}

#posts_container {
	padding: 0;
}

.ignored_post {
	border-top: 3px solid #333;
	padding: 15px;
}

.ignored_post .show_ignored_post {
	margin-top: -15px;
}

.ignored_post .show_ignored_post a.button span {
	background-position: 0 -400px;
}

.post_star {
	background: #1b1b1b;
	padding: 10px;
	float: left;
	margin-bottom: 10px;
	border-radius: 4px;
}

.member-avatar  img {
	margin: 10px;
	border: 5px solid #1b1b1b;
}

.usericon-online {
	float: left;
	margin-top: -7px;
	margin-right: 5px;
	font-size: 12px;
	color: #D2D2D2;
}

.postbit_buttons > a:link, .postbit_buttons > a:hover, .postbit_buttons > a:visited, .postbit_buttons > a:active {
	display: inline-block;
    padding: 9px;
    margin: 1px;
    font-size: 13px;
    background: #1b1b1b;
    border: 1px solid #1b1b1b;
	border-radius: 4px;
    color: #D2D2D2;
}

.postbit_buttons > a:hover {
	border-color: #bbb;
}

a.button:link, a.button:hover, a.button:visited, a.button:active {
	background: #348e1d;
	color: #fff;
	display: inline-block;
	padding: 8px;
	margin: 2px 2px 6px 2px;
	border: 1px solid #000;
	font-size: 14px;
}

a.button.small_button {
	font-size: 13px;
	margin: 0;
	padding: 3px 6px;
}

a.button span {
	padding-left: 20px;
	display: inline-block;
	background-image: url(../../../images/buttons_sprite.png);
	background-repeat: no-repeat;
}

a.button.new_thread_button span {
	background-position: 0 -340px;
}

a.button.new_reply_button span {
	background-position: 0 -360px;
}

a.button.closed_button span {
	background-position: 0 -380px;
}

a.button.rate_user_button span {
	background-position: 0 -400px;
}

a.button.add_buddy_button span {
	background-position: 0 -440px;
}

a.button.remove_buddy_button span {
	background-position: 0 -480px;
}

a.button.add_ignore_button span {
	background-position: 0 -460px;
}

a.button.remove_ignore_button span {
	background-position: 0 -500px;
}

a.button.report_user_button span {
	background-position: 0 -520px;
}

.quick_jump {
	background: url(../../../images/jump.png) no-repeat 0;
	width: 13px;
	height: 13px;
	padding-left: 13px;
	margin-top: -3px;
	border: none;
}

.pollbar {
	background: url(../../../images/pollbar.png) top left repeat-x;
	border: 1px solid #3f3f3f;
	height: 10px;
}

.pollbar .percent {
	display: none;
}

.posticons_label {
	white-space: nowrap;
}

.bottom_usercp ul>li>a {
	background: #1b1b1b;
	width: 180px;
	color: #D2D2D2;
	display: inline-block;
	padding: 15px 10px;
	text-align: left;
	border-radius: 4px;
	margin-bottom:4px;
	font-size: 13px;
	margin-right: 5px;
}

.bottom_usercp ul>li>a i {
	font-size: 20px;
	margin-right: 10px;
}

.bottom_usercp ul>li>a:hover {
	background: #8f2222;
	color: #D2D2D2;
}

.member_profile {
}

.member_generally {
	background: #121212;
	border-radius: 4px;
	padding: 10px;
	float: left;
	width: 49%;
}

.member_generally .avatar img {
	border-radius: 90px;
	border:5px solid #222;
}

.forum-stats {
}

.forum-stats h2 {
	font-size: 18px;
	text-transform: uppercase;
	font-weight: 200;
	color: #d2d2d2;
	padding: 5px 15px 10px 15px;
}

.border-grey {
	border-bottom: dashed 1px #343434;
}

/* ========================================
   BOARD STATISTICS FIX
   Ensure board stats appear after floated content
   ======================================== */

/* Clear floats before board stats */
.boardstats {
	clear: both !important;
	margin: 30px auto 10px auto;
	text-align: center;
	display: block;
	width: 100%;
}

/* Add clearfix wrapper if needed */
.forums::after,
.main-aside::after {
	content: "";
	display: table;
	clear: both;
}

.boardstats>ul>li {
	width: 18%;
	display: block;
	float: left;
	margin: 1%;
	padding: 5px 0px;
	border-bottom: 3px solid #701919;
}

.boardstats>ul li.last-child {
	box-shadow: none;
}

.boardstats>ul>li p {
	width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.boardstats p.largetext {
	font-size: 22px;
	color: #D2D2D2;
	font-weight: 100;
}

.boardstats p.smalltext {
	font-size: 13px;
	color: #D2D2D2;
	text-transform: uppercase;
}

.forum-statsbox p {
	padding: 3px 15px;
}

.forum-statsbox {
	padding: 10px 0;
}

.thead_stats {
	padding: 6px 0px 5px 5px;
	font-size: 15px;
	color:#D2D2D2;
	font-weight: 200;
	text-transform: uppercase;
}

.stats_trow {
	padding: 10px 0px;
	color:#D2D2D2;
}

.stats_icon {
	background: #8f2222;
	width: 40px;
	height: 40px;
	text-align: center;
	margin-right: 10px;
	border-radius: 4px;
}

.stats_trow i {
	line-height: 40px;
	font-size: 16px;
	color: #fff;
}

.hint, [data-hint] {
	position: relative;
	display: inline-block;
  }

.hint:before, .hint:after, [data-hint]:before, [data-hint]:after {
	position: absolute;
	-webkit-transform: translate3d(0, 0, 0);
	-moz-transform: translate3d(0, 0, 0);
	transform: translate3d(0, 0, 0);
	visibility: hidden;
	opacity: 0;
	z-index: 1000000;
	pointer-events: none;
	-webkit-transition: 0.3s ease;
	-moz-transition: 0.3s ease;
	transition: 0.3s ease;
	-webkit-transition-delay: 0ms;
	-moz-transition-delay: 0ms;
	transition-delay: 0ms;
}

.hint:hover:before, .hint:hover:after, .hint:focus:before, .hint:focus:after, [data-hint]:hover:before, [data-hint]:hover:after, [data-hint]:focus:before, [data-hint]:focus:after {
	  visibility: visible;
	  opacity: 1;
}

.hint:hover:before, .hint:hover:after, [data-hint]:hover:before, [data-hint]:hover:after {
	-webkit-transition-delay: 100ms;
	-moz-transition-delay: 100ms;
	transition-delay: 100ms;
}

.hint:before, [data-hint]:before {
	content: '';
	position: absolute;
	background: transparent;
	border: 6px solid transparent;
	z-index: 1000001;
}

.hint:after, [data-hint]:after {
	content: attr(data-hint);
	background: #383838;
	color: white;
	padding: 8px 10px;
	font-size: 12px;
	line-height: 13px;
	white-space: nowrap; }

.hint--top:before {
	border-top-color: #383838;
}

.hint--bottom:before {
	border-bottom-color: #383838;
}

.hint--left:before {
	border-left-color: #383838;
}

.hint--right:before {
	border-right-color: #383838;
}

.hint--top:before {
	margin-bottom: -12px;
}

.hint--top:after {
	margin-left: -18px;
}

.hint--top:before, .hint--top:after {
	bottom: 100%;
	left: 50%;
}

.hint--top:hover:after, .hint--top:hover:before, .hint--top:focus:after, .hint--top:focus:before {
	-webkit-transform: translateY(-8px);
	-moz-transform: translateY(-8px);
	transform: translateY(-8px);
}

.hint--bottom:before {
	margin-top: -12px;
}

.hint--bottom:after {
	margin-left: -18px;
}

.hint--bottom:before, .hint--bottom:after {
	top: 100%;
	left: 50%;
}

.hint--bottom:hover:after, .hint--bottom:hover:before, .hint--bottom:focus:after, .hint--bottom:focus:before {
	-webkit-transform: translateY(8px);
	-moz-transform: translateY(8px);
	transform: translateY(8px);
}

.hint--right:before {
	margin-left: -12px;
	margin-bottom: -6px;
}

.hint--right:after {
	margin-bottom: -14px;
}

.hint--right:before, .hint--right:after {
	left: 100%;
	bottom: 50%;
}

.hint--right:hover:after, .hint--right:hover:before, .hint--right:focus:after, .hint--right:focus:before {
	-webkit-transform: translateX(8px);
	-moz-transform: translateX(8px);
	transform: translateX(8px);
}

.hint--left:before {
	margin-right: -12px;
	margin-bottom: -6px;
}

.hint--left:after {
	margin-bottom: -14px;
}

.hint--left:before, .hint--left:after {
	right: 100%;
	bottom: 50%;
}

.hint--left:hover:after, .hint--left:hover:before, .hint--left:focus:after, .hint--left:focus:before {
	-webkit-transform: translateX(-8px);
	-moz-transform: translateX(-8px);
	transform: translateX(-8px);
}

.hint, [data-hint] {
}

.hint:after, [data-hint]:after {
	text-shadow: 0 -1px 0px black;
	box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
}

.hint--error:after {
	background-color: #b34e4d;
	text-shadow: 0 -1px 0px #592726;
}

.hint--error.hint--top:before {
	border-top-color: #b34e4d;
}

.hint--error.hint--bottom:before {
	border-bottom-color: #b34e4d;
}

.hint--error.hint--left:before {
	border-left-color: #b34e4d;
}

.hint--error.hint--right:before {
	border-right-color: #b34e4d;
}

.hint--warning:after {
	background-color: #c09854;
	text-shadow: 0 -1px 0px #6c5328;
}

.hint--warning.hint--top:before {
	border-top-color: #c09854;
}

.hint--warning.hint--bottom:before {
	border-bottom-color: #c09854;
}

.hint--warning.hint--left:before {
	border-left-color: #c09854;
}

.hint--warning.hint--right:before {
	border-right-color: #c09854;
}

.hint--info:after {
	background-color: #3986ac;
	text-shadow: 0 -1px 0px #193b4d;
}

.hint--info.hint--top:before {
	border-top-color: #3986ac;
}

.hint--info.hint--bottom:before {
	border-bottom-color: #3986ac;
}

.hint--info.hint--left:before {
	border-left-color: #3986ac;
}

.hint--info.hint--right:before {
	border-right-color: #3986ac;
}

.hint--success:after {
	background-color: #458746;
	text-shadow: 0 -1px 0px #1a321a;
}

.hint--success.hint--top:before {
	border-top-color: #458746;
}

.hint--success.hint--bottom:before {
	border-bottom-color: #458746;
}

.hint--success.hint--left:before {
	border-left-color: #458746;
}

.hint--success.hint--right:before {
	border-right-color: #458746;
}

.hint--always:after, .hint--always:before {
	opacity: 1;
	visibility: visible;
}

.hint--always.hint--top:after, .hint--always.hint--top:before {
	-webkit-transform: translateY(-8px);
	-moz-transform: translateY(-8px);
	transform: translateY(-8px);
}

.hint--always.hint--bottom:after, .hint--always.hint--bottom:before {
	-webkit-transform: translateY(8px);
	-moz-transform: translateY(8px);
	transform: translateY(8px);
}

.hint--always.hint--left:after, .hint--always.hint--left:before {
	-webkit-transform: translateX(-8px);
	-moz-transform: translateX(-8px);
	transform: translateX(-8px);
}

.hint--always.hint--right:after, .hint--always.hint--right:before {
	-webkit-transform: translateX(8px);
	-moz-transform: translateX(8px);
	transform: translateX(8px);
}

.hint--rounded:after {
	border-radius: 4px;
}

.hint--no-animate:before, .hint--no-animate:after {
	-webkit-transition-duration: 0ms;
	-moz-transition-duration: 0ms;
	transition-duration: 0ms;
}

.hint--bounce:before, .hint--bounce:after {
	-webkit-transition: opacity 0.3s ease, visibility 0.3s ease, -webkit-transform 0.3s cubic-bezier(0.71, 1.7, 0.77, 1.24);
	-moz-transition: opacity 0.3s ease, visibility 0.3s ease, -moz-transform 0.3s cubic-bezier(0.71, 1.7, 0.77, 1.24);
	transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.71, 1.7, 0.77, 1.24);
}

.jGrowl {
	position: fixed;
	font-size: 12px;
	color: #D2D2D2;
	z-index: 9999;
}

.jGrowl.top-left {
	top:0;
	left:0;
}

.jGrowl.top-right {
	top:0;
	right:0;
}

.jGrowl.bottom-left {
	bottom:0;
	left:0;
}

.jGrowl.bottom-right {
	bottom:0;
	right:0;
}

.jGrowl.center {
	top:0;
	left: 25%;
	width: 50%;
}

.center .jGrowl-notification, .center .jGrowl-closer {
	margin-left: auto;
	margin-right: auto;
}

.jGrowl .jGrowl-notification, .jGrowl .jGrowl-closer {
	display: none;
	margin-top: 5px;
	margin-bottom: 5px;
	padding: 10px;
	width: 235px;
	background-color: #000;
	border-radius: 5px;
	font-size: 1em;
	text-align: left;
	opacity: .85;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=85)";
	filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=85);
	zoom: 1;
	font-family: Arial, sans-serif;
}

.jGrowl .jGrowl-notification {
	min-height: 40px;
}

.jGrowl .jGrowl-notification, .jGrowl .jGrowl-closer {
	margin: 10px;
}

.jGrowl .jGrowl-notification .jGrowl-header {
	font-size: .85em;
	font-weight: bold;
}

.jGrowl .jGrowl-notification .jGrowl-close {
	float: right;
	font-size: 1em;
	font-weight: bold;
	cursor: pointer;
	z-index: 99;
}

.jGrowl .jGrowl-closer {
	padding-top: 4px;
	padding-bottom: 4px;
	font-size: .9em;
	font-weight: bold;
	text-align: center;
	cursor: pointer;
}

.modal {
	display: none;
	width: 400px;
	text-align: left;
	background: #fff;
	-webkit-border-radius: 8px;
	-moz-border-radius: 8px;
	-o-border-radius: 8px;
	-ms-border-radius: 8px;
	border-radius: 8px;
	-webkit-box-shadow: 0 0 10px #000;
	-moz-box-shadow: 0 0 10px #000;
	-o-box-shadow: 0 0 10px #000;
	-ms-box-shadow: 0 0 10px #000;
	box-shadow: 0 0 10px #000;
}

.modal a.close-modal {
	position: absolute;
	top: -12.5px;
	right: -12.5px;
	display: block;
	width: 30px;
	height: 30px;
	text-indent: -9999px;
	background: url(../../../images/close.png) no-repeat 0 0;
}

.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;
	-webkit-border-radius: 8px;
	-moz-border-radius: 8px;
	-o-border-radius: 8px;
	-ms-border-radius: 8px;
	border-radius: 8px;
}

.blocker {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	z-index: 9999;
	padding: 20px;
	box-sizing: border-box;
	background-color: rgb(0,0,0);
	background-color: rgba(0,0,0,0.75);
	text-align: center;
}

.blocker:before {
	content: "";
	display: inline-block;
	height: 100%;
	vertical-align: middle;
	margin-right: -0.05em;
}

.blocker.behind {
	background-color: transparent;
}

.modal {
	width: 400px;
	text-align: left;
	background: #fff;
	display: inline-block;
	vertical-align: middle;
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	-webkit-border-radius: 8px;
	-moz-border-radius: 8px;
	-o-border-radius: 8px;
	-ms-border-radius: 8px;
	border-radius: 8px;
	-webkit-box-shadow: 0 0 10px #000;
	-moz-box-shadow: 0 0 10px #000;
	-o-box-shadow: 0 0 10px #000;
	-ms-box-shadow: 0 0 10px #000;
	box-shadow: 0 0 10px #000;
	transform: translateX(-50%) translateY(-50%);
}

.modal a.close-modal {
	position: absolute;
	top: -12.5px;
	right: -12.5px;
	display: block;
	width: 30px;
	height: 30px;
	text-indent: -9999px;
	background: url(../../../images/close.png) no-repeat 0 0;
}

.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;
	-webkit-border-radius: 8px;
	-moz-border-radius: 8px;
	-o-border-radius: 8px;
	-ms-border-radius: 8px;
	border-radius: 8px;
}

/** jQuery-Impromptu - v6.2.1 - 2015-05-10
* http://trentrichardson.com/Impromptu
* Copyright (c) 2015 Trent Richardson; Licensed MIT
**/

.jqifade {
	position: absolute;
	background-color: #777777;
}

iframe.jqifade {
	display:block;
	z-index:-1;
}

div.jqi {
	width: 400px;
	max-width:90%;
	font-family: Arial, sans-serif;
	position: absolute;
	background-color: #ffffff;
	font-size: 11px;
	text-align: left;
	border: solid 1px #eeeeee;
	border-radius: 6px;
	-moz-border-radius: 6px;
	-webkit-border-radius: 6px;
	padding: 7px;
}

div.jqi .jqicontainer {
}

div.jqi .jqiclose {
	position: absolute;
	top: 4px;
	right: -2px;
	width: 18px;
	cursor: default;
	color: #bbbbbb;
	font-weight: bold;
}

div.jqi .jqistate {
	background-color: #fff;
}

div.jqi .jqititle {
	padding: 5px 10px;
	font-size: 16px;
	line-height: 20px;
	border-bottom: solid 1px #eeeeee;
}

div.jqi .jqimessage {
	padding: 10px;
	line-height: 20px;
	color: #D2D2D2;
	overflow: auto;
}

div.jqi .jqibuttonshide {
	display: none;
} 

div.jqi .jqibuttons {
	text-align: right;
	margin: 0 -7px -7px -7px;
	border-top: solid 1px #e4e4e4;
	background-color: #f4f4f4;
	border-radius: 0 0 6px 6px;
	-moz-border-radius: 0 0 6px 6px;
	-webkit-border-radius: 0 0 6px 6px;
}

div.jqi .jqibuttons button {
	margin: 0;
	padding: 15px 20px;
	background-color: transparent;
	font-weight: normal;
	border: none;
	border-left: solid 1px #e4e4e4;
	color: #fff;
	font-weight: bold; 
	font-size: 12px;
}

div.jqi .jqibuttons button.jqidefaultbutton {
	color: #fff;
}

div.jqi .jqibuttons button:hover, div.jqi .jqibuttons button:focus {
	color: #fff;
	outline: none;
}

div.jqi .jqibuttons button[disabled] {
	color: #fff;
}

.jqiwarning .jqi .jqibuttons {
	background-color: #b95656;
}

div.jqi .jqiparentstate::after {
	background-color: #777;
	opacity: 0.6;
	filter: alpha(opacity=60);
	content: '';
	position: absolute;
	top:0;
	left:0;
	bottom:0;
	right:0;
	border-radius: 6px;
	-moz-border-radius: 6px;
	-webkit-border-radius: 6px;
}

div.jqi .jqisubstate {
	position: absolute;
	top:0;
	left: 20px;
	width: 60%;
	padding: 7px;
	border: solid 1px #eeeeee;
	border-top: none;
	border-radius: 0 0 6px 6px;
	-moz-border-radius: 0 0 6px 6px;
	-webkit-border-radius: 0 0 6px 6px;
}

div.jqi .jqisubstate .jqibuttons button {
	padding: 10px 18px;
}

.jqi .jqiarrow {
	position: absolute;
	height: 0;
	width:0;
	line-height: 0;
	font-size: 0;
	border: solid 10px transparent;
}

.jqi .jqiarrowtl {
	left: 10px;
	top: -20px;
	border-bottom-color: #ffffff;
}

.jqi .jqiarrowtc {
	left: 50%;
	top: -20px;
	border-bottom-color: #ffffff;
	margin-left: -10px;
}

.jqi .jqiarrowtr {
	right: 10px;
	top: -20px;
	border-bottom-color: #ffffff;
}

.jqi .jqiarrowbl {
	left: 10px;
	bottom: -20px;
	border-top-color: #ffffff;
}

.jqi .jqiarrowbc {
	left: 50%;
	bottom: -20px;
	border-top-color: #ffffff;
	margin-left: -10px;
}

.jqi .jqiarrowbr {
	right: 10px;
	bottom: -20px;
	border-top-color: #ffffff;
}

.jqi .jqiarrowlt {
	left: -20px;
	top: 10px;
	border-right-color: #ffffff;
}
.jqi .jqiarrowlm {
	left: -20px;
	top: 50%;
	border-right-color: #ffffff;
	margin-top: -10px;
}

.jqi .jqiarrowlb {
	left: -20px;
	bottom: 10px;
	border-right-color: #ffffff;
}

.jqi .jqiarrowrt {
	right: -20px;
	top: 10px;
	border-left-color: #ffffff;
}

.jqi .jqiarrowrm {
	right: -20px;
	top: 50%;
	border-left-color: #ffffff;
	margin-top: -10px;
}

.jqi .jqiarrowrb {
	right: -20px;
	bottom: 10px;
	border-left-color: #ffffff;
}

/* ========================================
   FORUMDISPLAY - THREAD LIST CARD STYLING
   ======================================== */

/* Main thread list table */
.tborder tbody {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Hide the table header row */
.tborder thead,
.tborder .tcat {
	display: none !important;
}

/* Transform each thread row into a card */
.tborder tbody tr.inline_row {
	display: flex !important;
	align-items: center;
	gap: 20px;
	padding: 18px 20px;
	background: rgba(26, 26, 26, 0.8) !important;
	border-left: 3px solid #ff3333 !important;
	border-radius: 6px;
	transition: all 0.3s ease;
	border-bottom: none !important;
}

.tborder tbody tr.inline_row:hover {
	background: rgba(45, 15, 15, 0.7) !important;
	border-left-color: #ff6666 !important;
	transform: translateX(3px);
	box-shadow: 0 4px 12px rgba(255, 51, 51, 0.2);
}

/* Reset all td styles */
.tborder tbody tr.inline_row td {
	border: none !important;
	padding: 0 !important;
	background: transparent !important;
	width: auto !important;
}

/* Thread status icon (first column) */
.tborder tbody tr.inline_row td:nth-child(1) {
	flex-shrink: 0;
	width: 60px !important;
	height: 60px;
}

.tborder tbody tr.inline_row td:nth-child(1) .thread_status {
	width: 60px;
	height: 60px;
	background: linear-gradient(135deg, #d32f2f, #ff6659) !important;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #ff3333;
	position: relative;
}

/* Add Font Awesome icon overlay */
.tborder tbody tr.inline_row td:nth-child(1) .thread_status::before {
	content: '\f086';
	font-family: 'Font Awesome 6 Free', 'FontAwesome';
	font-weight: 400;
	font-size: 30px;
	color: #ffffff !important;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-indent: 0;
}

/* Locked thread icon */
.tborder tbody tr.inline_row td:nth-child(1) .thread_status.folder_lock::before,
.tborder tbody tr.inline_row td:nth-child(1) .thread_status.lockfolder::before {
	content: '\f023';
	font-weight: 900;
}

/* Hot thread icon */
.tborder tbody tr.inline_row td:nth-child(1) .thread_status.folder_hot::before,
.tborder tbody tr.inline_row td:nth-child(1) .thread_status.hotfolder::before {
	content: '\f06d';
	font-weight: 900;
}

/* Hide the default folder image */
.tborder tbody tr.inline_row td:nth-child(1) .thread_status {
	background-image: none !important;
	font-size: 0;
	overflow: hidden;
}

/* Thread icon column (second column) - hide it */
.tborder tbody tr.inline_row td:nth-child(2) {
	display: none !important;
}

/* Thread title and info (third column) */
.tborder tbody tr.inline_row td:nth-child(3) {
	flex: 1;
	min-width: 0;
	text-align: left !important;
}

.tborder tbody tr.inline_row td:nth-child(3) > div {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Thread title */
.tborder tbody tr.inline_row td:nth-child(3) span > a {
	font-size: 16px;
	font-weight: 500;
	color: #fff !important;
	text-decoration: none;
}

.tborder tbody tr.inline_row td:nth-child(3) span > a:hover {
	color: #ff6666 !important;
}

/* Thread prefix */
.tborder tbody tr.inline_row .thread_prefix {
	background: #ff3333;
	color: #fff;
	padding: 3px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	margin-right: 8px;
}

/* Thread author and date */
.tborder tbody tr.inline_row .author,
.tborder tbody tr.inline_row .thread_start_datetime {
	font-size: 13px;
	color: #999 !important;
}

.tborder tbody tr.inline_row .author a {
	color: #ff6666 !important;
	text-decoration: none;
	font-weight: 500;
}

.tborder tbody tr.inline_row .author a:hover {
	color: #ff3333 !important;
}

/* Replies column (fourth column) */
.tborder tbody tr.inline_row td:nth-child(4) {
	flex-shrink: 0;
	min-width: 70px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.tborder tbody tr.inline_row td:nth-child(4)::before {
	content: 'REPLIES';
	font-size: 11px;
	color: #666;
	text-transform: uppercase;
	font-weight: 600;
}

.tborder tbody tr.inline_row td:nth-child(4) a {
	font-size: 20px;
	font-weight: 600;
	color: #ff3333 !important;
	line-height: 1.2;
	text-decoration: none;
}

/* Views column (fifth column) */
.tborder tbody tr.inline_row td:nth-child(5) {
	flex-shrink: 0;
	min-width: 70px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	font-size: 20px;
	font-weight: 600;
	color: #ff3333 !important;
	line-height: 1.2;
}

.tborder tbody tr.inline_row td:nth-child(5)::before {
	content: 'VIEWS';
	font-size: 11px;
	color: #666;
	text-transform: uppercase;
	font-weight: 600;
}

/* Rating column (sixth column - if exists) */
.tborder tbody tr.inline_row td:nth-child(6) {
	flex-shrink: 0;
	min-width: 80px;
}

/* Last post column */
.tborder tbody tr.inline_row td:last-child {
	flex-shrink: 0;
	min-width: 200px;
	font-size: 13px;
	color: #999 !important;
	text-align: right !important;
}

.tborder tbody tr.inline_row td:last-child a {
	color: #ff6666 !important;
	text-decoration: none;
}

.tborder tbody tr.inline_row td:last-child a:hover {
	color: #ff3333 !important;
}

/* Inline moderation checkbox */
.tborder tbody tr.inline_row .forumdisplay_sticky,
.tborder tbody tr.inline_row .forumdisplay_modbit {
	margin-left: 10px;
}

/* Sticky/Announcement threads */
.tborder tbody tr.inline_row.sticky_thread,
.tborder tbody tr.inline_row[style*="background"] {
	border-left-color: #e79100 !important;
}

.tborder tbody tr.inline_row.sticky_thread:hover {
	border-left-color: #f0b400 !important;
}

/* Thread icon for sticky */
.tborder tbody tr.inline_row.sticky_thread td:nth-child(1) .thread_status::before {
	content: '\f08d';
}

/* Multipage indicator */
.tborder tbody tr.inline_row .smalltext a {
	color: #999 !important;
	font-size: 11px;
}

/* NEW THREAD BUTTON - Red theme */
a.button.new_thread_button,
a.button[href*="newthread"] {
	background: #701919 !important;
	border: none !important;
	position: relative;
	padding-left: 45px !important;
}

/* Hide the old icon image */
a.button.new_thread_button span,
a.button[href*="newthread"] span {
	background: none !important;
	padding-left: 0 !important;
}

a.button.new_thread_button::before,
a.button[href*="newthread"]::before {
	content: '\f067';
	font-family: 'Font Awesome 6 Free', 'FontAwesome';
	font-weight: 900;
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 14px;
}

a.button.new_thread_button:hover,
a.button[href*="newthread"]:hover {
	background: #8f2222 !important;
}

/* NEW POLL BUTTON */
a.button[href*="newpoll"] {
	background: #701919 !important;
	border: none !important;
	position: relative;
	padding-left: 45px !important;
}

a.button[href*="newpoll"]::before {
	content: '\f080';
	font-family: 'Font Awesome 6 Free', 'FontAwesome';
	font-weight: 900;
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
}

a.button[href*="newpoll"]:hover {
	background: #8f2222 !important;
}

/* ========================================
   UPDATED: CATEGORY TITLE CARD - BUTTON FAR RIGHT, TITLE FAR LEFT
   Replace the existing "CATEGORY TITLE - MODERN CARD DESIGN" section with this
   ======================================== */

/* Style the main table with category title as a card */
.tborder.clear > tbody > tr:first-child {
	display: block;
	background: linear-gradient(135deg, rgba(143, 34, 34, 0.25) 0%, rgba(26, 26, 26, 0.9) 100%);
	border-left: 5px solid #ff3333;
	border-radius: 10px;
	margin-bottom: 25px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
	position: relative;
	
	padding: 0;
}

/* The thead cell containing the title - FIXED LAYOUT */
.tborder.clear > tbody > tr:first-child > td.thead {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 0 !important;
	padding: 20px 24px !important;
	background: transparent !important;
	border: none !important;
	position: relative;
	z-index: 1;
	width: 100% !important;
}

/* Animated background shimmer effect */
.tborder.clear > tbody > tr:first-child::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 51, 51, 0.1), transparent);
	animation: shimmer 3s infinite;
	z-index: 0;
}

@keyframes shimmer {
	0% { left: -100%; }
	100% { left: 100%; }
}

/* Remove or minimize the background icon */
.tborder.clear > tbody > tr:first-child::after {
	display: none;
}

/* FIXED: Title on the FAR LEFT */
.tborder.clear > tbody > tr:first-child > td.thead > div:not(.float_right) {
	flex: 0 0 auto !important;
	order: 1 !important;
	margin-right: 0 !important;
	z-index: 1;
}

/* Category title - make it bold */
.tborder.clear > tbody > tr:first-child > td.thead > div:not(.float_right) strong {
	font-size: 22px;
	font-weight: 900 !important;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 2px;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
	display: block;
	margin: 0;
	white-space: nowrap;
}

/* FIXED: Button container - positioned with space from right edge */
.tborder.clear > tbody > tr:first-child > td.thead > div.float_right {
	display: flex !important;
	float: none !important;
	align-items: center !important;
	justify-content: flex-end !important;
	position: absolute !important;
	right: 80px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	z-index: 2;
	margin: 0 !important;
}

/* UPDATED: Post Thread button - better styling */
.tborder.clear > tbody > tr:first-child > td.thead > div.float_right a.button.new_thread_button {
	font-size: 12px !important;
	padding: 10px 18px !important;
	padding-left: 40px !important;
	margin: 0 !important;
	display: inline-flex !important;
	align-items: center !important;
	background: #701919 !important;
	border: none !important;
	white-space: nowrap !important;
	text-transform: uppercase !important;
	font-weight: 600 !important;
	letter-spacing: 0.5px !important;
	border-radius: 3px !important;
	position: relative !important;
}

/* The span inside the button - remove old icon background */
.tborder.clear > tbody > tr:first-child > td.thead > div.float_right a.button.new_thread_button span {
	background: none !important;
	padding: 0 !important;
	display: inline !important;
}

/* Position the FA icon correctly in the button */
.tborder.clear > tbody > tr:first-child > td.thead > div.float_right a.button.new_thread_button::before {
	content: '\f067';
	font-family: 'Font Awesome 6 Free', 'FontAwesome';
	font-weight: 900;
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 12px;
}

/* Hover effect for the button */
.tborder.clear > tbody > tr:first-child > td.thead > div.float_right a.button.new_thread_button:hover {
	background: #8f2222 !important;
	box-shadow: 0 0 15px rgba(255, 51, 51, 0.4);
	transform: translateY(-2px);
	transition: all 0.3s ease;
}

/* ========================================
   FIX: Recent Posts Widget Width
   Make it match the forum cards width (75%)
   ======================================== */

/* Recent Posts Widget - Match forum width */
.recent-posts-widget {
	background: rgba(26, 26, 26, 0.95);
	border: 1px solid rgba(143, 34, 34, 0.3);
	border-radius: 8px;
	margin-bottom: 20px;
	overflow: hidden;
	width: 75% !important;
	float: left;
	clear: both;
}

/* ========================================
   SIDEBAR LAYOUT FIX + NEW WIDGETS
   ======================================== */

/* Main Aside - Reset positioning to align with Recent Posts */
.main-aside {
	width: 24%;
	float: right;
	margin-top: 0 !important;
}

/* Live Activity Widget - Align with Recent Posts top */
.live-activity-widget {
	background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
	border: 1.5px solid #2a2a2a;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 20px;
	margin-top: 0 !important;
}

/* Announcements Widget */
.announcements-widget {
	background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
	border: 1.5px solid #2a2a2a;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 20px;
}

.announcements-widget .widget-header {
	background: linear-gradient(90deg, rgba(143, 34, 34, 0.3), rgba(143, 34, 34, 0.1));
	padding: 15px 20px;
	display: flex;
	align-items: center;
	gap: 10px;
	border-bottom: 1px solid rgba(143, 34, 34, 0.3);
}

.announcements-widget .widget-header i {
	color: #ff3333;
	font-size: 18px;
}

.announcements-widget .widget-header span {
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.announcements-list {
	padding: 10px;
	max-height: 350px;
	overflow-y: auto;
}

.announcement-item {
	padding: 12px;
	background: rgba(15, 15, 15, 0.5);
	border-left: 3px solid #e79100;
	border-radius: 4px;
	margin-bottom: 10px;
	transition: all 0.3s ease;
}

.announcement-item:hover {
	background: rgba(45, 35, 15, 0.5);
	transform: translateX(3px);
}

.announcement-icon {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #e79100;
}

.announcement-icon i {
	color: #e79100;
}

.announcement-title {
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	display: block;
	margin-bottom: 6px;
	line-height: 1.4;
}

.announcement-title:hover {
	color: #f0b400;
}

.announcement-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	color: #999;
}

.announcement-author {
	color: #e79100;
	font-weight: 500;
}

.announcement-time {
	color: #666;
}

/* General Discussions Widget */
.general-widget {
	background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
	border: 1.5px solid #2a2a2a;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 20px;
}

.general-widget .widget-header {
	background: linear-gradient(90deg, rgba(143, 34, 34, 0.3), rgba(143, 34, 34, 0.1));
	padding: 15px 20px;
	display: flex;
	align-items: center;
	gap: 10px;
	border-bottom: 1px solid rgba(143, 34, 34, 0.3);
}

.general-widget .widget-header i {
	color: #ff3333;
	font-size: 18px;
}

.general-widget .widget-header span {
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.general-list {
	padding: 10px;
	max-height: 350px;
	overflow-y: auto;
}

.general-item {
	padding: 12px;
	background: rgba(15, 15, 15, 0.5);
	border-left: 3px solid #348e1d;
	border-radius: 4px;
	margin-bottom: 10px;
	transition: all 0.3s ease;
}

.general-item:hover {
	background: rgba(15, 45, 15, 0.5);
	transform: translateX(3px);
}

.general-icon {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #348e1d;
}

.general-icon i {
	color: #348e1d;
}

.general-title {
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	display: block;
	margin-bottom: 6px;
	line-height: 1.4;
}

.general-title:hover {
	color: #4CAF50;
}

.general-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	color: #999;
}

.general-author {
	color: #348e1d;
	font-weight: 500;
}

.general-time {
	color: #666;
}

/* Scrollbar styling for new widgets */
.announcements-list::-webkit-scrollbar,
.general-list::-webkit-scrollbar {
	width: 6px;
}

.announcements-list::-webkit-scrollbar-track,
.general-list::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, 0.2);
}

.announcements-list::-webkit-scrollbar-thumb,
.general-list::-webkit-scrollbar-thumb {
	background: rgba(143, 34, 34, 0.5);
	border-radius: 3px;
}

.announcements-list::-webkit-scrollbar-thumb:hover,
.general-list::-webkit-scrollbar-thumb:hover {
	background: rgba(143, 34, 34, 0.8);
}

/* ========================================
   SIDEBAR POSITION FIX - Place sidebar next to Recent Posts
   ======================================== */

/* Wrapper for Recent Posts to create grid layout */
.recent-posts-widget {
	background: rgba(26, 26, 26, 0.95);
	border: 1px solid rgba(143, 34, 34, 0.3);
	border-radius: 8px;
	margin-bottom: 20px;
	overflow: hidden;
	width: 75% !important;
	float: left;
	clear: none !important; /* Don't clear floats */
}

/* Main sidebar - position next to Recent Posts */
.main-aside {
	width: 24%;
	float: right;
	margin-top: 0 !important;
	clear: none !important;
}

/* Add clearfix after sidebar to prevent layout issues */
.main-aside::after {
	content: "";
	display: table;
	clear: both;
}

/* Ensure forums section clears the floats */
.forums {
	width: 75%;
	float: left;
	clear: left !important;
}

/* ========================================

/* ========================================
   SIMPLE POST LAYOUT - BUTTONS ALIGN WITH USER CARD BOTTOM
   ======================================== */

table.tborder,
table#posts,
#posts_container,
#posts,
div#posts,
table#posts tbody,
#posts_container td {
	width: 100% !important;
	max-width: 100% !important;
	display: block !important;
}

.post {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: stretch !important;
	gap: 30px !important;
	width: 100% !important;
	padding: 25px !important;
	margin: 0 0 20px 0 !important;
	background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(20, 20, 20, 0.95) 100%) !important;
	border-radius: 12px !important;
	border-left: 5px solid #ff3333 !important;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
	box-sizing: border-box !important;
	overflow: visible !important;
}

.post_author {
	flex: 0 0 250px !important;
	width: 250px !important;
	min-width: 250px !important;
	max-width: 250px !important;
	padding: 24px !important;
	background: rgba(20, 20, 20, 0.95) !important;
	border: 1px solid rgba(60, 60, 60, 0.5) !important;
	border-radius: 12px !important;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
	text-align: center !important;
	box-sizing: border-box !important;
}

.postbit_avatar {
	width: 100% !important;
	margin-bottom: 16px !important;
}

.postbit_avatar img {
	width: 140px !important;
	height: 140px !important;
	border-radius: 16px !important;
	border: 3px solid #ff3333 !important;
	box-shadow: 0 4px 15px rgba(255, 51, 51, 0.4) !important;
	margin: 0 auto !important;
	display: block !important;
	object-fit: cover !important;
}

.author_information {
	margin-bottom: 12px !important;
}

.author_information .largetext {
	font-size: 20px !important;
	font-weight: 600 !important;
	color: #fff !important;
	margin-bottom: 10px !important;
	display: block !important;
}

.author_information .largetext a {
	color: #fff !important;
	text-decoration: none !important;
}

.author_information .largetext a:hover {
	color: #ff6666 !important;
}

.user_title_badge {
	background: #ff3333 !important;
	color: #fff !important;
	padding: 10px 20px !important;
	font-size: 12px !important;
	border-radius: 24px !important;
	display: inline-block !important;
	margin: 0 0 18px 0 !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 1px !important;
	box-shadow: 0 3px 8px rgba(255, 51, 51, 0.5) !important;
}

.author_statistics {
	width: 100% !important;
	margin-top: 18px !important;
	padding-top: 18px !important;
	border-top: 1px solid rgba(60, 60, 60, 0.6) !important;
}

.author_statistics .stat_item {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	padding: 12px 8px !important;
	border-bottom: 1px solid rgba(60, 60, 60, 0.3) !important;
}

.author_statistics .stat_item:last-child {
	border-bottom: none !important;
}

.author_statistics .stat_icon {
	font-size: 16px !important;
	width: 24px !important;
	margin-right: 10px !important;
}

.author_statistics .stat_label {
	flex: 1 !important;
	text-align: left !important;
	color: #aaa !important;
	font-size: 13px !important;
}

.author_statistics .stat_value {
	color: #fff !important;
	font-weight: 700 !important;
	font-size: 15px !important;
}

.postbit_action_buttons {
	width: 100% !important;
	display: flex !important;
	gap: 10px !important;
	margin-top: 18px !important;
	padding-top: 18px !important;
	border-top: 1px solid rgba(60, 60, 60, 0.6) !important;
}

.manual_pm_btn,
.manual_rep_btn {
	flex: 1 !important;
	padding: 12px 16px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
	border-radius: 6px !important;
	text-align: center !important;
	text-decoration: none !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	transition: all 0.3s ease !important;
}

.manual_pm_btn {
	background: rgba(112, 25, 25, 0.8) !important;
	color: #fff !important;
	border: 1px solid rgba(143, 34, 34, 0.3) !important;
}

.manual_pm_btn:hover {
	background: rgba(143, 34, 34, 0.9) !important;
	transform: translateY(-2px) !important;
}

.manual_rep_btn {
	background: rgba(52, 142, 29, 0.8) !important;
	color: #fff !important;
	border: 1px solid rgba(52, 142, 29, 0.5) !important;
}

.manual_rep_btn:hover {
	background: rgba(76, 175, 80, 0.9) !important;
	transform: translateY(-2px) !important;
}

.post_content {
	flex: 1 1 auto !important;
	min-width: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	overflow: visible !important;
}

.post_head {
	padding: 5px 0 10px 0 !important;
	border-bottom: 1px solid #191919 !important;
	margin-bottom: 12px !important;
}

.post_body {
	flex: 1 !important;
	margin-bottom: 20px !important;
	word-wrap: break-word !important;
}

.post_vote_buttons {
	display: flex !important;
	gap: 15px !important;
	padding: 12px 20px !important;
	background: rgba(20, 20, 20, 0.8) !important;
	border-radius: 10px !important;
	border: 1px solid rgba(60, 60, 60, 0.5) !important;
	width: fit-content !important;
	align-self: flex-end !important;
	margin-bottom: 10px !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.vote_button {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	padding: 10px 18px !important;
	background: rgba(30, 30, 30, 0.9) !important;
	border: 1px solid rgba(60, 60, 60, 0.5) !important;
	border-radius: 8px !important;
	cursor: pointer !important;
	transition: all 0.3s ease !important;
	font-weight: 600 !important;
}

.vote_button:hover {
	transform: translateY(-2px) !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.vote_button i {
	font-size: 18px !important;
}

.vote_count {
	font-size: 16px !important;
	font-weight: 700 !important;
	min-width: 30px !important;
	text-align: center !important;
}

.vote_button.upvote {
	border-left: 3px solid rgba(76, 175, 80, 0.5) !important;
}

.vote_button.upvote i,
.vote_button.upvote .vote_count {
	color: #4CAF50 !important;
}

.vote_button.upvote:hover {
	border-left-color: #4CAF50 !important;
	background: rgba(76, 175, 80, 0.2) !important;
}

.vote_button.downvote {
	border-left: 3px solid rgba(244, 67, 54, 0.5) !important;
}

.vote_button.downvote i,
.vote_button.downvote .vote_count {
	color: #f44336 !important;
}

.vote_button.downvote:hover {
	border-left-color: #f44336 !important;
	background: rgba(244, 67, 54, 0.2) !important;
}

.post_controls {
	display: flex !important;
	justify-content: flex-end !important;
	align-items: center !important;
	gap: 8px !important;
	padding: 0 !important;
	border: none !important;
	width: auto !important;
	align-self: flex-end !important;
}

.post_controls .author_buttons {
	display: none !important;
}

.post_controls .post_management_buttons {
	display: flex !important;
	gap: 8px !important;
}

.postbit_buttons > a {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 10px 14px !important;
	background: rgba(26, 26, 26, 0.9) !important;
	border: 1px solid rgba(60, 60, 60, 0.5) !important;
	border-radius: 8px !important;
	color: #D2D2D2 !important;
	font-size: 13px !important;
	transition: all 0.3s ease !important;
	white-space: nowrap !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.postbit_buttons > a:hover {
	background: rgba(143, 34, 34, 0.4) !important;
	border-color: #ff3333 !important;
	color: #fff !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 4px 12px rgba(255, 51, 51, 0.3) !important;
}

@media (max-width: 768px) {
	.post {
		flex-direction: column !important;
	}
	
	.post_author {
		width: 100% !important;
		max-width: 400px !important;
		margin: 0 auto 20px !important;
	}
}

/* ========================================
   COMPACT REPLY FORM - CLEAN VERSION
   ======================================== */

/* Main form container */
.compact_reply_form {
	background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(20, 20, 20, 0.95) 100%) !important;
	border-radius: 25px !important;
	border: 2px solid rgba(60, 60, 60, 0.5) !important;
	padding: 12px 20px !important;
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	gap: 15px !important;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
	transition: all 0.4s ease !important;
	margin: 20px 0 !important;
}

.compact_reply_form:focus-within {
	border-color: #ff3333 !important;
	box-shadow: 0 8px 30px rgba(255, 51, 51, 0.4) !important;
	align-items: flex-start !important;
	padding: 16px 24px !important;
}

/* Avatar */
.reply_avatar {
	width: 36px !important;
	height: 36px !important;
	min-width: 36px !important;
	border-radius: 50% !important;
	
	border: 2px solid rgba(255, 51, 51, 0.3) !important;
}

.reply_avatar img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
}

/* Input wrapper */
.reply_input_wrapper {
	flex: 1 !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 10px !important;
}

/* Textarea - THE PROBLEM CHILD */
.compact_reply_form textarea#message {
	width: 100% !important;
	min-width: 0 !important;
	background: transparent !important;
	border: none !important;
	outline: none !important;
	padding: 8px 0 !important;
	margin: 0 !important;
	color: #f0f0f0 !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
	resize: none !important;
	
	
	/* THIS IS THE KEY - Single line height */
	height: 22px !important;
	line-height: 22px !important;
}

.compact_reply_form textarea#message::placeholder {
	color: #b0b0b0 !important;
}

.compact_reply_form textarea#message:focus {
	height: 140px !important;
	line-height: 1.6 !important;
	overflow-y: auto !important;
	padding: 10px 0 !important;
}

/* Formatting toolbar - hidden by default */
.formatting_tools {
	display: flex !important;
	gap: 6px !important;
	flex-wrap: wrap !important;
	opacity: 0 !important;
	max-height: 0 !important;
	
	transition: all 0.3s ease !important;
}

.compact_reply_form:focus-within .formatting_tools {
	opacity: 1 !important;
	max-height: 100px !important;
}

.format_btn {
	padding: 5px 12px !important;
	background: rgba(40, 40, 40, 0.5) !important;
	border: 1px solid rgba(60, 60, 60, 0.3) !important;
	border-radius: 12px !important;
	color: #999 !important;
	font-size: 12px !important;
	cursor: pointer !important;
	transition: all 0.3s ease !important;
}

.format_btn:hover {
	background: rgba(60, 60, 60, 0.7) !important;
	color: #fff !important;
}

/* Post options - hidden by default */
.compact_reply_form .post_options {
	display: flex !important;
	gap: 10px !important;
	opacity: 0 !important;
	max-height: 0 !important;
	
	transition: all 0.3s ease !important;
}

.compact_reply_form:focus-within .post_options {
	opacity: 1 !important;
	max-height: 100px !important;
}

.compact_reply_form .post_options label {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	padding: 6px 12px !important;
	background: rgba(30, 30, 30, 0.5) !important;
	border: 1px solid rgba(60, 60, 60, 0.3) !important;
	border-radius: 15px !important;
	font-size: 12px !important;
	color: #999 !important;
	cursor: pointer !important;
}

.compact_reply_form .post_options label:hover {
	background: rgba(40, 40, 40, 0.7) !important;
	color: #fff !important;
}

/* Action buttons */
.reply_actions {
	display: flex !important;
	gap: 8px !important;
	align-items: center !important;
}

/* Icon buttons - hidden until focus */
.icon_action_btn {
	width: 36px !important;
	height: 36px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	background: rgba(40, 40, 40, 0.6) !important;
	border: none !important;
	border-radius: 50% !important;
	color: #999 !important;
	cursor: pointer !important;
	font-size: 14px !important;
	opacity: 0 !important;
	transform: scale(0.8) !important;
	transition: all 0.3s ease !important;
}

.compact_reply_form:focus-within .icon_action_btn {
	opacity: 1 !important;
	transform: scale(1) !important;
}

.icon_action_btn:hover {
	background: rgba(60, 60, 60, 0.8) !important;
	color: #fff !important;
}

/* Preview button */
.preview_btn {
	width: 36px !important;
	height: 36px !important;
	background: rgba(60, 60, 60, 0.6) !important;
	border: 1px solid rgba(80, 80, 80, 0.5) !important;
	border-radius: 50% !important;
	cursor: pointer !important;
	opacity: 0 !important;
	transform: scale(0.8) !important;
	transition: all 0.3s ease !important;
}

.compact_reply_form:focus-within .preview_btn {
	opacity: 1 !important;
	transform: scale(1) !important;
}

/* Send button */
.send_btn,
button.send_btn {
	width: 36px !important;
	height: 36px !important;
	min-width: 36px !important;
	background: linear-gradient(135deg, #ff3333, #d32f2f) !important;
	border: none !important;
	border-radius: 50% !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 !important;
	transition: all 0.3s ease !important;
}

.send_btn:hover,
button.send_btn:hover {
	transform: scale(1.1) rotate(15deg) !important;
	box-shadow: 0 4px 15px rgba(255, 51, 51, 0.6) !important;
}

.send_btn svg,
button.send_btn svg {
	width: 16px !important;
	height: 16px !important;
	fill: white !important;
}

/* Multiquote notice */
.compact_reply_form .editor_control_bar {
	padding: 10px !important;
	background: rgba(143, 34, 34, 0.2) !important;
	border-radius: 8px !important;
	border-left: 3px solid #ff3333 !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
	.compact_reply_form {
		flex-wrap: wrap !important;
	}
}

/* Preview button icon fix */
.preview_btn {
	position: relative !important;
}

.preview_btn::before {
	content: '?' !important;
	font-size: 16px !important;
	position: absolute !important;
	top: 50% !important;
	left: 50% !important;
	transform: translate(-50%, -50%) !important;
}

/* ========================================
   TELEGRAM-STYLE POSTBIT CSS
   ======================================== */

/* Post Container - Flex Layout */
.post-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    animation: fadeInPost 0.3s ease;
    position: relative;
}

@keyframes fadeInPost {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   PROFILE CARD SIDEBAR
   ======================================== */

.profile-card {
    width: 220px;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.8) 0%, rgba(20, 20, 20, 0.8) 100%);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(60, 60, 60, 0.3);
}

.profile-header {
    position: relative;
    height: 32px;
    margin-bottom: 10px;
}

/* Compact PM Button */
.pm-btn-compact {
    position: absolute;
    top: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: rgba(139, 0, 0, 0.4);
    border: 1px solid rgba(220, 20, 60, 0.5);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.pm-btn-compact i {
    color: #fff;
    font-size: 14px;
}

.pm-btn-compact:hover {
    background: rgba(139, 0, 0, 0.7);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(220, 20, 60, 0.4);
}

.pm-btn-compact::after {
    content: 'PM';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: rgba(20, 20, 20, 0.95);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    color: #fff;
    white-space: nowrap;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.pm-btn-compact:hover::after {
    transform: translateX(-50%) scale(1);
}

/* Profile Avatar */
.profile-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 50%;
    border: 3px solid #ff3333;
    overflow: hidden;
    background: linear-gradient(135deg, #ff3333, #ff6666);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Profile Username */
.profile-username {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.profile-username a {
    color: #fff;
    text-decoration: none;
}

.profile-username a:hover {
    color: #ff6666;
}

/* Profile Badge & Group Image */
.profile-badge-wrapper {
    margin-bottom: 15px;
}

.profile-badge-wrapper .smalltext {
    display: inline-block;
    background: #ff3333;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-badge-wrapper img {
    display: block;
    margin: 8px auto 0;
    max-width: 100%;
}

/* Profile Stats */
.profile-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(60, 60, 60, 0.3);
}

.profile-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(40, 40, 40, 0.4);
    border-radius: 8px;
    font-size: 12px;
}

.stat-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #999;
}

.stat-label i {
    color: #ff6666;
    width: 16px;
}

.stat-value {
    font-weight: 700;
    color: #fff;
}

/* ========================================
   POST CONTENT (TELEGRAM BUBBLE)
   ======================================== */

.post-content {
    flex: 1;
    position: relative;
}

.post-bubble {
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.7) 0%, rgba(30, 30, 30, 0.7) 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(60, 60, 60, 0.3);
    transition: all 0.2s ease;
}

.post-bubble:hover {
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.8) 0%, rgba(35, 35, 35, 0.8) 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Post Header */
.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(60, 60, 60, 0.3);
}

.post-number {
    font-size: 12px;
    color: #999;
    font-weight: 600;
}

.post-number a {
    color: #999;
    text-decoration: none;
}

.post-number a:hover {
    color: #ff6666;
}

.post-time {
    font-size: 12px;
    color: #888;
}

/* Post Body */
.post-body {
    color: #d2d2d2;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* Post Meta */
.post-meta {
    font-size: 11px;
    color: #888;
    margin-bottom: 10px;
}

.post-edit {
    font-style: italic;
}

/* Post Footer */
.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(60, 60, 60, 0.3);
    flex-wrap: wrap;
    gap: 10px;
}

.post-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.post-actions a,
.post-actions .postbit_button {
    background: rgba(60, 60, 60, 0.6);
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    color: #999;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.post-actions a:hover,
.post-actions .postbit_button:hover {
    background: rgba(143, 34, 34, 0.3);
    color: #fff;
}

.post-reactions {
    display: flex;
    gap: 6px;
}

.post-status {
    font-size: 11px;
    color: #888;
}

/* ========================================
   VOTING BUTTONS
   ======================================== */

.vote-buttons {
    position: absolute;
    right: -60px;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.post-container:hover .vote-buttons {
    opacity: 1;
}

.vote-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid rgba(60, 60, 60, 0.5);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vote-btn.upvote:hover {
    background: rgba(46, 125, 50, 0.4);
    border-color: rgba(76, 175, 80, 0.7);
    transform: translateY(-2px);
}

.vote-btn.downvote:hover {
    background: rgba(198, 40, 40, 0.4);
    border-color: rgba(244, 67, 54, 0.7);
    transform: translateY(-2px);
}

.vote-btn i {
    font-size: 16px;
    color: #999;
}

.vote-btn:hover i {
    color: #fff;
}

.vote-count {
    font-size: 12px;
    color: #999;
    margin-top: 3px;
    font-weight: 600;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 900px) {
    .post-container {
        flex-direction: column;
    }

    .profile-card {
        width: 100%;
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 15px;
        text-align: left;
        align-items: center;
        padding: 15px;
    }

    .profile-avatar {
        width: 60px;
        height: 60px;
        margin: 0;
    }

    .profile-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        border-top: none;
        padding-top: 0;
    }

    .vote-buttons {
        position: static;
        flex-direction: row;
        opacity: 1;
        margin-top: 10px;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .post-actions {
        width: 100%;
    }

    .post-actions a,
    .post-actions .postbit_button {
        flex: 1;
        justify-content: center;
    }
}

/* Hide old postbit elements that are no longer needed */
.post .post_author,
.post .author_information,
.post .user_title_badge,
.post .author_statistics,
.post .postbit_action_buttons,
.post .post_head,
.post .post_vote_buttons,
.post .post_controls {
    display: none !important;
}

/* Make sure emoji button is always visible */
.emoji_btn_visible {
	opacity: 1 !important;
	transform: scale(1) !important;
	pointer-events: all !important;
}

/* Match preview button exactly to other icon buttons */
.compact_reply_form .preview_btn {
	background: rgba(40, 40, 40, 0.6) !important;
	border: none !important;
	width: 36px !important;
	height: 36px !important;
	color: #999 !important;
}

.compact_reply_form .preview_btn i {
	color: #999 !important;
	font-size: 14px !important;
}

.compact_reply_form .preview_btn:hover {
	background: rgba(60, 60, 60, 0.8) !important;
	color: #fff !important;
	transform: scale(1.05) !important;
}

.compact_reply_form .preview_btn:hover i {
	color: #fff !important;
}

/* Make sure preview button SVG shows */
.preview_btn svg,
button.preview_btn svg {
	width: 16px !important;
	height: 16px !important;
	fill: white !important;
	display: block !important;
	opacity: 1 !important;
	visibility: visible !important;
}

/* ========================================
   COMPLETE FIXES FOR TELEGRAM POSTBIT
   ======================================== */

/* 1. MAKE POSTS 1250PX WIDE AND CENTERED */
.thread_content,
#posts,
.post-container {
    max-width: 1250px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body {
    overflow-x: hidden;
}

/* 2. MAKE PROFILE CARD NARROWER - 180px instead of 220px */
.profile-card {
    width: 180px !important;
}

.profile-avatar {
    width: 80px !important;
    height: 80px !important;
}

/* 3. MOVE PM BUTTON TO LEFT SIDE */
.pm-btn-compact {
    left: 0 !important;
    right: auto !important;
}

/* 4. FIX VOTING BUTTONS POSITION - Move to bottom of post */
.vote-buttons {
    position: static !important;
    flex-direction: row !important;
    opacity: 1 !important;
    margin-top: 15px !important;
    justify-content: flex-start !important;
    padding-top: 12px !important;
    border-top: 1px solid rgba(60, 60, 60, 0.3) !important;
    gap: 12px !important;
}

.vote-btn {
    width: auto !important;
    height: auto !important;
    flex-direction: row !important;
    padding: 8px 16px !important;
    gap: 8px !important;
}

/* 5. ADD TEXT TO POST ACTION BUTTONS */
.post-actions a::after,
.post-actions .postbit_button::after {
    content: attr(title);
    margin-left: 4px;
}

/* Make sure icons show */
.post-actions a i,
.post-actions .postbit_button i {
    display: inline-block;
}

/* 6. FIX THREAD TITLE BAR - MATCH POST WIDTH */
.thread-header {
    max-width: 1250px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.thread-title {
    font-size: 20px !important;
    font-weight: 600 !important;
}

/* 7. FIX THREAD TOOLS BAR */
.thread-tools {
    max-width: 1250px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Responsive */
@media (max-width: 1350px) {
    .thread_content,
    #posts,
    .post-container,
    .thread-header,
    .thread-tools {
        max-width: 95% !important;
    }
}

@media (max-width: 900px) {
    .profile-card {
        width: 100% !important;
    }
    
    .profile-avatar {
        width: 60px !important;
        height: 60px !important;
    }
}

/* ========================================
   FIX POST WIDTH AND ALIGNMENT
   ======================================== */

.thread_content,
#posts,
.post-container {
    max-width: 1250px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body {
    overflow-x: hidden;
}

.profile-card {
    width: 180px !important;
}

.profile-avatar {
    width: 80px !important;
    height: 80px !important;
}

.pm-btn-compact {
    left: 0 !important;
    right: auto !important;
}

.vote-buttons {
    position: static !important;
    flex-direction: row !important;
    opacity: 1 !important;
    margin-top: 15px !important;
    justify-content: flex-start !important;
    padding-top: 12px !important;
    border-top: 1px solid rgba(60, 60, 60, 0.3) !important;
    gap: 12px !important;
}

.vote-btn {
    width: auto !important;
    height: auto !important;
    flex-direction: row !important;
    padding: 8px 16px !important;
    gap: 8px !important;
}

/* ========================================
   REMOVE CARD BORDERS
   ======================================== */

table.tborder {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-collapse: collapse !important;
}

.tborder td {
    border: none !important;
}

/* ========================================
   FIX TITLE BAR - CENTERED & SMALLER TEXT
   ======================================== */

td.thead {
    background: transparent !important;
    border: none !important;
    max-width: 1250px !important;
    margin: 0 auto 20px auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 15px 20px !important;
    min-height: 50px !important;
}

table.tborder.tfixed.clear {
    max-width: 1250px !important;
    margin: 0 auto !important;
    background: transparent !important;
}

/* Title text styling */
.thead strong,
td.thead strong,
.thead span,
td.thead span {
    font-size: 18px !important;
    font-weight: 600 !important;
    text-align: center !important;
}

/* ========================================
   RESTORE ADMIN BADGE
   ======================================== */

.profile-badge-wrapper .smalltext,
.profile-card .smalltext {
    display: inline-block !important;
    background: #ff3333 !important;
    color: #fff !important;
    padding: 4px 12px !important;
    border-radius: 12px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin: 0 !important;
}

.profile-badge-wrapper {
    margin-bottom: 15px !important;
    text-align: center !important;
}

/* ========================================
   BUTTON STYLING
   ======================================== */

/* ========================================
   CLEAN POST ACTION BUTTONS
   ======================================== */

.post-actions [class*="hint--"]::before,
.post-actions [class*="hint--"]::after {
    display: none !important;
    content: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.post-actions a {
    background: rgba(60, 60, 60, 0.6) !important;
    border: none !important;
    padding: 8px 14px !important;
    border-radius: 8px !important;
    color: #d2d2d2 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.post-actions a i {
    font-size: 14px !important;
    margin: 0 !important;
    display: inline-block !important;
}

.post-actions a .btn-text {
    font-size: 12px !important;
    font-weight: 500 !important;
    display: inline !important;
}

.post-actions a:hover {
    background: rgba(143, 34, 34, 0.3) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.post-actions a.post-edit-btn:hover {
    background: rgba(70, 130, 180, 0.4) !important;
}

.post-actions a.post-delete-btn:hover {
    background: rgba(180, 70, 70, 0.4) !important;
}

.post-actions a.post-report-btn:hover {
    background: rgba(255, 165, 0, 0.3) !important;
}

.post-actions img {
    display: none !important;
}

.post-actions {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}

/* ========================================
   STICKY QUICK REPLY BAR
   ======================================== */

form#quick_reply_form,
.compact_reply_form {
    position: fixed !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 1000 !important;
    max-width: 1200px !important;
    width: calc(100% - 40px) !important;
    margin: 0 !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5) !important;
}

#posts,
.thread_content {
    padding-bottom: 120px !important;
}

/* ========================================
   STICKY PAGINATION - TOP RIGHT
   ======================================== */

.thread_content > .pagination:first-of-type,
table.tborder + .pagination {
    display: none !important;
}

.pagination {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    bottom: auto !important;
    z-index: 1001 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: rgba(20, 20, 20, 0.95) !important;
    padding: 8px 12px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(143, 34, 34, 0.3) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

.pagination .pages {
    color: #999 !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    margin-right: 6px !important;
}

.pagination a {
    background: rgba(40, 40, 40, 0.8) !important;
    border: 1px solid rgba(60, 60, 60, 0.5) !important;
    color: #d2d2d2 !important;
    padding: 6px 10px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    min-width: 32px !important;
    text-align: center !important;
}

.pagination a:hover {
    background: rgba(143, 34, 34, 0.4) !important;
    border-color: #ff3333 !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
}

.pagination .pagination_current,
.pagination span.pagination_current {
    background: rgba(143, 34, 34, 0.4) !important;
    border: 1px solid #ff3333 !important;
    color: #fff !important;
    padding: 6px 10px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    min-width: 32px !important;
    text-align: center !important;
}

.pagination .pagination_previous,
.pagination .pagination_next {
    background: rgba(40, 40, 40, 0.8) !important;
    border: 1px solid rgba(60, 60, 60, 0.5) !important;
    padding: 6px 10px !important;
}

.pagination .pagination_previous:hover,
.pagination .pagination_next:hover {
    background: rgba(143, 34, 34, 0.4) !important;
    border-color: #ff3333 !important;
}

.pagination input[type="image"],
.pagination .go_page {
    display: none !important;
}

/* ========================================
   MODAL BACKGROUND FIX
   ======================================== */

html, body {
    background: #0d0d0d !important;
}

.blocker {
    background: rgba(0, 0, 0, 0.9) !important;
}

/* ========================================
   ULTRA-MODERN NEW THREAD PAGE STYLING
   ======================================== */

/* Animated Background for New Thread Page */
body.newthread {
    background: linear-gradient(-45deg, #1a1a1a, #2d0f0f, #4d1515, #1a1a1a) !important;
    background-size: 400% 400% !important;
    animation: gradientShift 15s ease infinite !important;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* New Thread Form Container */
.newthread .tborder,
form[action*="newthread"] .tborder {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(20, 20, 20, 0.95)) !important;
    border-radius: 20px !important;
    border: 1px solid rgba(143, 34, 34, 0.3) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6) !important;
}

/* Hide default table borders */
.newthread .tborder table,
form[action*="newthread"] .tborder table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

/* Table rows */
.newthread .trow1,
.newthread .trow2,
form[action*="newthread"] .trow1,
form[action*="newthread"] .trow2 {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(60, 60, 60, 0.3) !important;
    padding: 25px 20px !important;
}

.newthread .trow1:last-of-type,
.newthread .trow2:last-of-type {
    border-bottom: none !important;
}

/* Labels */
.newthread .trow1 strong,
.newthread .trow2 strong,
form[action*="newthread"] .trow1 strong,
form[action*="newthread"] .trow2 strong {
    color: #ff6666 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    display: block !important;
    margin-bottom: 12px !important;
}

/* Text inputs */
.newthread input.textbox,
.newthread input[type="text"],
.newthread select,
form[action*="newthread"] input.textbox,
form[action*="newthread"] input[type="text"],
form[action*="newthread"] select {
    width: 100% !important;
    max-width: 100% !important;
    background: rgba(40, 40, 40, 0.8) !important;
    border: 2px solid rgba(60, 60, 60, 0.5) !important;
    color: #fff !important;
    padding: 14px 18px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
}

.newthread input.textbox:focus,
.newthread input[type="text"]:focus,
.newthread select:focus,
form[action*="newthread"] input.textbox:focus,
form[action*="newthread"] input[type="text"]:focus,
form[action*="newthread"] select:focus {
    border-color: #ff3333 !important;
    background: rgba(50, 50, 50, 0.9) !important;
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.3) !important;
    outline: none !important;
}

/* Textarea */
.newthread textarea,
form[action*="newthread"] textarea {
    width: 100% !important;
    min-height: 250px !important;
    background: rgba(30, 30, 30, 0.95) !important;
    border: 2px solid rgba(60, 60, 60, 0.5) !important;
    color: #fff !important;
    padding: 20px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    resize: vertical !important;
}

.newthread textarea:focus,
form[action*="newthread"] textarea:focus {
    border-color: #ff3333 !important;
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.2) !important;
    outline: none !important;
}

/* SCEditor */
.newthread .sceditor-container,
form[action*="newthread"] .sceditor-container {
    background: rgba(30, 30, 30, 0.95) !important;
    border: 2px solid rgba(60, 60, 60, 0.5) !important;
    border-radius: 12px !important;
}

.newthread .sceditor-toolbar,
form[action*="newthread"] .sceditor-toolbar {
    background: rgba(30, 30, 30, 0.9) !important;
    padding: 12px !important;
    border-radius: 12px 12px 0 0 !important;
    border-bottom: 1px solid rgba(60, 60, 60, 0.5) !important;
}

.newthread .sceditor-button,
form[action*="newthread"] .sceditor-button {
    background: rgba(50, 50, 50, 0.8) !important;
    border: 1px solid rgba(70, 70, 70, 0.5) !important;
    border-radius: 8px !important;
}

.newthread .sceditor-button:hover,
form[action*="newthread"] .sceditor-button:hover {
    background: rgba(143, 34, 34, 0.4) !important;
    border-color: #ff3333 !important;
}

/* Post Icons */
.newthread .post_icons,
form[action*="newthread"] .post_icons {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    margin-top: 10px !important;
}

.newthread .post_icons input[type="radio"],
form[action*="newthread"] .post_icons input[type="radio"] {
    display: none !important;
}

.newthread .post_icons label,
form[action*="newthread"] .post_icons label {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    background: rgba(40, 40, 40, 0.8) !important;
    border: 2px solid rgba(60, 60, 60, 0.5) !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
    margin: 0 !important;
}

.newthread .post_icons label:hover,
form[action*="newthread"] .post_icons label:hover {
    background: rgba(143, 34, 34, 0.3) !important;
    border-color: #ff3333 !important;
    transform: translateY(-2px) !important;
}

.newthread .post_icons input[type="radio"]:checked + label,
form[action*="newthread"] .post_icons input[type="radio"]:checked + label {
    background: rgba(143, 34, 34, 0.4) !important;
    border-color: #ff3333 !important;
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.4) !important;
}

/* Checkboxes */
.newthread input[type="checkbox"],
form[action*="newthread"] input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    margin-right: 10px !important;
    cursor: pointer !important;
    accent-color: #ff3333 !important;
}

.newthread label,
form[action*="newthread"] label {
    color: #d2d2d2 !important;
    font-size: 13px !important;
    cursor: pointer !important;
}

/* Fieldsets */
.newthread fieldset,
form[action*="newthread"] fieldset {
    background: rgba(40, 40, 40, 0.5) !important;
    border: 1px solid rgba(60, 60, 60, 0.3) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin: 15px 0 !important;
}

.newthread legend,
form[action*="newthread"] legend {
    color: #ff6666 !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    letter-spacing: 1px !important;
    padding: 0 10px !important;
}

/* Submit Buttons */
.newthread input[type="submit"],
.newthread button[type="submit"],
.newthread .button,
form[action*="newthread"] input[type="submit"],
form[action*="newthread"] button[type="submit"],
form[action*="newthread"] .button {
    background: linear-gradient(135deg, #ff3333, #d32f2f) !important;
    color: #fff !important;
    border: none !important;
    padding: 15px 30px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(255, 51, 51, 0.3) !important;
}

.newthread input[type="submit"]:hover,
.newthread button[type="submit"]:hover,
.newthread .button:hover,
form[action*="newthread"] input[type="submit"]:hover,
form[action*="newthread"] button[type="submit"]:hover,
form[action*="newthread"] .button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(255, 51, 51, 0.5) !important;
}

/* Preview Button */
.newthread input[name="previewpost"],
form[action*="newthread"] input[name="previewpost"] {
    background: rgba(60, 60, 60, 0.8) !important;
    border: 2px solid rgba(80, 80, 80, 0.5) !important;
    box-shadow: none !important;
}

.newthread input[name="previewpost"]:hover,
form[action*="newthread"] input[name="previewpost"]:hover {
    background: rgba(80, 80, 80, 0.9) !important;
    border-color: rgba(143, 34, 34, 0.5) !important;
    transform: translateY(-3px) !important;
}

/* Hide default thead */
.newthread .thead,
form[action*="newthread"] .thead {
    display: none !important;
}


/* ========================================
   FIXED NEW THREAD STYLING - NO RED BACKGROUND
   ======================================== */

/* Remove animated background wrapper - let default background show */
.newthread-modern-wrapper {
    background: transparent !important;
    min-height: auto !important;
    padding: 40px 20px !important;
}

/* Page header card - keep this */
.newthread-header-card {
    max-width: 1200px;
    margin: 0 auto 40px auto;
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(20, 20, 20, 0.9));
    border-radius: 16px;
    border: 1px solid rgba(143, 34, 34, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.newthread-header-card h1 {
    color: #fff !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 3px !important;
    margin: 0 !important;
}

/* Main content card */
.newthread-content-card {
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(20, 20, 20, 0.95));
    border-radius: 20px;
    border: 1px solid rgba(143, 34, 34, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    padding: 40px;
}

/* Form */
.newthread-content-card form {
    all: unset;
    display: block;
}

/* Table */
.newthread-content-card .tborder {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.newthread-content-card table {
    width: 100% !important;
    border-collapse: collapse !important;
}

.newthread-content-card .thead {
    display: none !important;
}

/* Table rows */
.newthread-content-card .trow1,
.newthread-content-card .trow2 {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(60, 60, 60, 0.3) !important;
    padding: 25px 20px !important;
    vertical-align: top !important;
}

.newthread-content-card tbody tr:last-child .trow1,
.newthread-content-card tbody tr:last-child .trow2 {
    border-bottom: none !important;
}

/* Labels */
.newthread-content-card .trow1 strong,
.newthread-content-card .trow2 strong {
    color: #ff6666 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    display: block !important;
    margin-bottom: 15px !important;
}

/* Text inputs */
.newthread-content-card input[type="text"],
.newthread-content-card input.textbox,
.newthread-content-card select {
    width: 100% !important;
    background: rgba(40, 40, 40, 0.8) !important;
    border: 2px solid rgba(60, 60, 60, 0.5) !important;
    color: #fff !important;
    padding: 14px 18px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

.newthread-content-card input[type="text"]:focus,
.newthread-content-card select:focus {
    border-color: #ff3333 !important;
    background: rgba(50, 50, 50, 0.9) !important;
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.3) !important;
    outline: none !important;
}

/* Textarea */
.newthread-content-card textarea,
.newthread-content-card textarea#message {
    width: 100% !important;
    min-height: 250px !important;
    background: rgba(30, 30, 30, 0.95) !important;
    border: 2px solid rgba(60, 60, 60, 0.5) !important;
    color: #fff !important;
    padding: 20px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    resize: vertical !important;
}

.newthread-content-card textarea:focus {
    border-color: #ff3333 !important;
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.2) !important;
    outline: none !important;
}

/* SCEditor */
.newthread-content-card .sceditor-container {
    background: rgba(30, 30, 30, 0.95) !important;
    border: 2px solid rgba(60, 60, 60, 0.5) !important;
    border-radius: 12px !important;
}

.newthread-content-card .sceditor-toolbar {
    background: rgba(30, 30, 30, 0.9) !important;
    padding: 12px !important;
    border-radius: 12px 12px 0 0 !important;
    border-bottom: 1px solid rgba(60, 60, 60, 0.5) !important;
}

.newthread-content-card .sceditor-button {
    background: rgba(50, 50, 50, 0.8) !important;
    border: 1px solid rgba(70, 70, 70, 0.5) !important;
    border-radius: 8px !important;
}

.newthread-content-card .sceditor-button:hover {
    background: rgba(143, 34, 34, 0.4) !important;
    border-color: #ff3333 !important;
}

.newthread-content-card .sceditor-container iframe {
    background: rgba(30, 30, 30, 0.95) !important;
}

.newthread-content-card .sceditor-container iframe html,
.newthread-content-card .sceditor-container iframe body {
    background: rgba(30, 30, 30, 0.95) !important;
    color: #fff !important;
}

/* POST ICONS - FIX THE STYLING */
.newthread-content-card td:has(.post_icons) {
    padding: 20px !important;
}

.newthread-content-card .post_icons {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
}

/* Hide ALL radio buttons for post icons */
.newthread-content-card .post_icons input[type="radio"],
.newthread-content-card input[name="icon"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
}

/* Style ALL post icon labels */
.newthread-content-card .post_icons label,
.newthread-content-card td.trow2 label:has(> img) {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    background: rgba(40, 40, 40, 0.8) !important;
    border: 2px solid rgba(60, 60, 60, 0.5) !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
    margin: 0 !important;
}

.newthread-content-card .post_icons label:hover,
.newthread-content-card td.trow2 label:has(> img):hover {
    background: rgba(143, 34, 34, 0.3) !important;
    border-color: #ff3333 !important;
    transform: translateY(-2px) !important;
}

.newthread-content-card .post_icons input[type="radio"]:checked + label,
.newthread-content-card input[name="icon"]:checked + label {
    background: rgba(143, 34, 34, 0.4) !important;
    border-color: #ff3333 !important;
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.4) !important;
}

/* "no icon" text */
.newthread-content-card .post_icons label[for*="noicon"] {
    width: auto !important;
    padding: 8px 15px !important;
    font-size: 12px !important;
}

/* SMILIES - Move completely below editor, organized */
.newthread-content-card #clickable_smilies {
    display: block !important;
    width: 100% !important;
    background: rgba(30, 30, 30, 0.8) !important;
    padding: 20px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(60, 60, 60, 0.3) !important;
    margin-top: 15px !important;
    clear: both !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
}

.newthread-content-card #clickable_smilies table {
    width: 100% !important;
}

.newthread-content-card #clickable_smilies td {
    padding: 5px !important;
    text-align: center !important;
}

/* Checkboxes & radios */
.newthread-content-card input[type="checkbox"],
.newthread-content-card fieldset input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    margin-right: 10px !important;
    cursor: pointer !important;
    accent-color: #ff3333 !important;
}

.newthread-content-card label {
    color: #d2d2d2 !important;
    font-size: 13px !important;
    cursor: pointer !important;
}

/* Fieldsets */
.newthread-content-card fieldset {
    background: rgba(40, 40, 40, 0.5) !important;
    border: 1px solid rgba(60, 60, 60, 0.3) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin: 15px 0 !important;
}

.newthread-content-card legend {
    color: #ff6666 !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    letter-spacing: 1px !important;
    padding: 0 10px !important;
}

/* Poll number input */
.newthread-content-card input[type="number"] {
    width: 100% !important;
    max-width: 300px !important;
    background: rgba(40, 40, 40, 0.8) !important;
    border: 2px solid rgba(60, 60, 60, 0.5) !important;
    color: #fff !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
}

/* Attachment area */
.newthread-content-card .attachments,
.newthread-content-card #attachments {
    background: rgba(30, 30, 30, 0.8) !important;
    border: 1px solid rgba(60, 60, 60, 0.3) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin: 20px 0 !important;
}

/* Buttons */
.newthread-buttons {
    margin-top: 35px !important;
    padding-top: 30px !important;
    border-top: 1px solid rgba(60, 60, 60, 0.3) !important;
    text-align: center !important;
    display: flex !important;
    gap: 15px !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

.newthread-buttons .btn-primary {
    background: linear-gradient(135deg, #ff3333, #d32f2f) !important;
    color: #fff !important;
    border: none !important;
    padding: 16px 36px !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(255, 51, 51, 0.3) !important;
}

.newthread-buttons .btn-primary:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(255, 51, 51, 0.5) !important;
}

.newthread-buttons .btn-secondary,
.newthread-buttons input[name="previewpost"],
.newthread-buttons input[value*="Draft"] {
    background: rgba(60, 60, 60, 0.8) !important;
    color: #d2d2d2 !important;
    border: 2px solid rgba(80, 80, 80, 0.5) !important;
    padding: 16px 32px !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.newthread-buttons .btn-secondary:hover,
.newthread-buttons input[name="previewpost"]:hover {
    background: rgba(80, 80, 80, 0.9) !important;
    border-color: rgba(143, 34, 34, 0.5) !important;
    color: #fff !important;
    transform: translateY(-3px) !important;
}

.newthread-content-card .smalltext,
.newthread-content-card small {
    color: #999 !important;
    font-size: 12px !important;
}

@media (max-width: 768px) {
    .newthread-content-card {
        padding: 25px !important;
    }
    
    .newthread-buttons {
        flex-direction: column !important;
    }
    
    .newthread-buttons input {
        width: 100% !important;
    }
}


/* ========================================
   ULTRA-AGGRESSIVE POST ICON FIX
   ======================================== */

/* Hide ALL images in the post icons row */
.newthread-content-card tr:has(strong:contains("POST ICON")) img,
.newthread-content-card .trow2 img[src*="icon"],
.newthread-content-card td.trow2 label img {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
}

/* Force post icon row to use flexbox */
.newthread-content-card tr:has(strong:contains("POST ICON")) .trow2,
.newthread-content-card tr:has(strong:contains("Post Icon")) .trow2 {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding: 20px !important;
}

/* ALL labels in post icon row become boxes */
.newthread-content-card tr:has(strong:contains("POST ICON")) label,
.newthread-content-card tr:has(strong:contains("Post Icon")) label {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    background: rgba(40, 40, 40, 0.8) !important;
    border: 2px solid rgba(60, 60, 60, 0.5) !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 20px !important;
    
}

.newthread-content-card tr:has(strong:contains("POST ICON")) label:hover,
.newthread-content-card tr:has(strong:contains("Post Icon")) label:hover {
    background: rgba(143, 34, 34, 0.3) !important;
    border-color: #ff3333 !important;
    transform: translateY(-2px) !important;
}

/* Add emoji content to labels using data attributes or after pseudo */
.newthread-content-card tr:has(strong:contains("POST ICON")) label::before,
.newthread-content-card tr:has(strong:contains("Post Icon")) label::before {
    content: "?" !important;
    font-size: 20px !important;
    line-height: 1 !important;
}

/* "no icon" label */
.newthread-content-card tr:has(strong:contains("POST ICON")) label:first-of-type::before,
.newthread-content-card tr:has(strong:contains("Post Icon")) label:first-of-type::before {
    content: "⚪" !important;
}
/* ========================================
   HIDE POST ICONS ROW ON NEW THREAD PAGE
   ======================================== */

/* Hide the post icons row by targeting the row that contains post icon images */
form[action*="newthread.php"] tr:has(img[src*="icon"]),
form[action*="newthread.php"] tr:has(img[src*="/images/icons/"]) {
    display: none !important;
}

/* Alternative - hide by checking for "POST ICON" or "Post Icon" label */
form[action*="newthread.php"] tbody tr:has(td strong:contains("POST ICON")),
form[action*="newthread.php"] tbody tr:has(td strong:contains("Post Icon")) {
    display: none !important;
}

/* Fallback - target the specific row structure (usually 3rd row after username and subject) */
form[action*="newthread.php"] table.tborder tbody tr:nth-child(3) {
    display: none !important;
}


/* ========================================
   CLEAN STYLING FOR POST OPTIONS SECTIONS
   ======================================== */

/* Fieldsets - Post Options, Moderator Options, etc. */
form[action*="newthread.php"] fieldset {
    background: rgba(30, 30, 30, 0.8) !important;
    border: 1px solid rgba(143, 34, 34, 0.3) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin: 20px 0 !important;
}

form[action*="newthread.php"] legend {
    color: #ff6666 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 0 10px !important;
}

/* Checkbox and radio button rows */
form[action*="newthread.php"] fieldset .trow1,
form[action*="newthread.php"] fieldset .trow2 {
    background: transparent !important;
    border: none !important;
    padding: 10px 0 !important;
}

/* Style checkboxes and radios */
form[action*="newthread.php"] input[type="checkbox"],
form[action*="newthread.php"] input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    margin-right: 10px !important;
    cursor: pointer !important;
    accent-color: #ff3333 !important;
}

form[action*="newthread.php"] fieldset label {
    color: #d2d2d2 !important;
    font-size: 13px !important;
    cursor: pointer !important;
}

/* Poll section specific */
form[action*="newthread.php"] fieldset:has(legend:contains("POLL")) input[type="number"],
form[action*="newthread.php"] input[name*="poll"] {
    max-width: 300px !important;
    background: rgba(40, 40, 40, 0.8) !important;
    border: 2px solid rgba(60, 60, 60, 0.5) !important;
    color: #fff !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
}

/* Small descriptive text */
form[action*="newthread.php"] .smalltext,
form[action*="newthread.php"] small {
    color: #999 !important;
    font-size: 12px !important;
    display: block !important;
    margin-top: 5px !important;
}

/* Attachment upload area */
form[action*="newthread.php"] .attachments,
form[action*="newthread.php"] #attachment_form {
    background: rgba(30, 30, 30, 0.8) !important;
    border: 2px dashed rgba(143, 34, 34, 0.3) !important;
    border-radius: 12px !important;
    padding: 30px !important;
    margin: 20px 0 !important;
    text-align: center !important;
}

form[action*="newthread.php"] .attachments .smalltext {
    text-align: center !important;
}

/* Drag and drop text */
form[action*="newthread.php"] .attachments,
form[action*="newthread.php"] div[class*="upload"] {
    color: #d2d2d2 !important;
}


/* ========================================
   MODERN CARD STYLING FOR OPTIONS SECTIONS
   ======================================== */

/* Target all table rows that contain fieldsets or option groups */
form[action*="newthread.php"] tbody tr:has(fieldset) .trow1,
form[action*="newthread.php"] tbody tr:has(fieldset) .trow2 {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* Style fieldsets as modern cards */
form[action*="newthread.php"] fieldset {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.9), rgba(26, 26, 26, 0.9)) !important;
    border: 1px solid rgba(143, 34, 34, 0.3) !important;
    border-radius: 12px !important;
    padding: 25px !important;
    margin: 15px 0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

form[action*="newthread.php"] legend {
    color: #ff6666 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    padding: 0 12px !important;
    background: transparent !important;
}

/* Options inside fieldsets - add spacing */
form[action*="newthread.php"] fieldset > div,
form[action*="newthread.php"] fieldset > table {
    margin: 10px 0 !important;
}

/* Checkbox/radio option rows */
form[action*="newthread.php"] fieldset label {
    display: flex !important;
    align-items: center !important;
    padding: 12px 15px !important;
    background: rgba(40, 40, 40, 0.5) !important;
    border: 1px solid rgba(60, 60, 60, 0.3) !important;
    border-radius: 8px !important;
    margin: 8px 0 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    color: #d2d2d2 !important;
    font-size: 13px !important;
}

form[action*="newthread.php"] fieldset label:hover {
    background: rgba(50, 50, 50, 0.7) !important;
    border-color: rgba(143, 34, 34, 0.5) !important;
}

/* Checkboxes and radios */
form[action*="newthread.php"] input[type="checkbox"],
form[action*="newthread.php"] input[type="radio"] {
    width: 20px !important;
    height: 20px !important;
    margin-right: 12px !important;
    cursor: pointer !important;
    accent-color: #ff3333 !important;
    flex-shrink: 0 !important;
}

/* Poll number input */
form[action*="newthread.php"] input[type="number"] {
    width: 100% !important;
    max-width: 300px !important;
    background: rgba(40, 40, 40, 0.8) !important;
    border: 2px solid rgba(60, 60, 60, 0.5) !important;
    color: #fff !important;
    padding: 14px 18px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    margin-top: 10px !important;
    transition: all 0.3s ease !important;
}

form[action*="newthread.php"] input[type="number"]:focus {
    border-color: #ff3333 !important;
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.3) !important;
    outline: none !important;
}

/* Small descriptive text */
form[action*="newthread.php"] .smalltext,
form[action*="newthread.php"] small {
    color: #999 !important;
    font-size: 12px !important;
    display: block !important;
    margin: 8px 0 !important;
    line-height: 1.5 !important;
}

/* Poll checkbox label */
form[action*="newthread.php"] fieldset > label:has(input[type="checkbox"]) {
    display: flex !important;
    align-items: flex-start !important;
}

/* Attachment upload area */
form[action*="newthread.php"] .attachments,
form[action*="newthread.php"] #attachment_form,
form[action*="newthread.php"] div[style*="border"]:has(+ br) {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.9), rgba(26, 26, 26, 0.9)) !important;
    border: 2px dashed rgba(143, 34, 34, 0.4) !important;
    border-radius: 12px !important;
    padding: 40px !important;
    margin: 20px 0 !important;
    text-align: center !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

/* Remove the table structure for POST OPTIONS and MODERATOR OPTIONS if they're in tables */
form[action*="newthread.php"] fieldset table {
    background: transparent !important;
    border: none !important;
}

form[action*="newthread.php"] fieldset table td {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}


/* ========================================
   CORRECT MODERN STYLING FOR OPTIONS
   ======================================== */

/* Target the actual tr rows for post options */
form[action*="newthread.php"] tr:has(td > span.smalltext) {
    background: transparent !important;
}

form[action*="newthread.php"] tr:has(td > span.smalltext) td.trow1 {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.9), rgba(26, 26, 26, 0.9)) !important;
    border: 1px solid rgba(143, 34, 34, 0.3) !important;
    border-radius: 12px !important;
    padding: 25px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

/* Style the section titles (POST OPTIONS:, MODERATOR OPTIONS:, etc) */
form[action*="newthread.php"] td.trow1 > strong {
    color: #ff6666 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    display: block !important;
    margin-bottom: 15px !important;
}

/* Style each label/checkbox row as a card */
form[action*="newthread.php"] td.trow1 label {
    display: flex !important;
    align-items: center !important;
    padding: 12px 15px !important;
    background: rgba(40, 40, 40, 0.5) !important;
    border: 1px solid rgba(60, 60, 60, 0.3) !important;
    border-radius: 8px !important;
    margin: 8px 0 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    color: #d2d2d2 !important;
    font-size: 13px !important;
}

form[action*="newthread.php"] td.trow1 label:hover {
    background: rgba(50, 50, 50, 0.7) !important;
    border-color: rgba(143, 34, 34, 0.5) !important;
}

/* Checkboxes and radios styling */
form[action*="newthread.php"] td.trow1 input[type="checkbox"],
form[action*="newthread.php"] td.trow1 input[type="radio"] {
    width: 20px !important;
    height: 20px !important;
    margin: 0 12px 0 0 !important;
    cursor: pointer !important;
    accent-color: #ff3333 !important;
    flex-shrink: 0 !important;
}

/* Small text descriptions */
form[action*="newthread.php"] td.trow1 span.smalltext {
    color: #999 !important;
    font-size: 12px !important;
    display: block !important;
    margin-bottom: 15px !important;
    line-height: 1.5 !important;
}

/* Remove extra line breaks */
form[action*="newthread.php"] td.trow1 br {
    display: none !important;
}

/* Fieldsets (for Poll, Thread Subscription if they use fieldsets) */
form[action*="newthread.php"] fieldset {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.9), rgba(26, 26, 26, 0.9)) !important;
    border: 1px solid rgba(143, 34, 34, 0.3) !important;
    border-radius: 12px !important;
    padding: 25px !important;
    margin: 15px 0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

form[action*="newthread.php"] legend {
    color: #ff6666 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    padding: 0 12px !important;
}

/* Poll number input */
form[action*="newthread.php"] input[type="number"],
form[action*="newthread.php"] input[type="text"][name*="poll"] {
    width: 100% !important;
    max-width: 300px !important;
    background: rgba(40, 40, 40, 0.8) !important;
    border: 2px solid rgba(60, 60, 60, 0.5) !important;
    color: #fff !important;
    padding: 14px 18px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    margin-top: 10px !important;
}

form[action*="newthread.php"] input[type="number"]:focus {
    border-color: #ff3333 !important;
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.3) !important;
    outline: none !important;
}


/* ========================================
   CLEAN UP THE LAYOUT - FIX MESSY SPACING
   ======================================== */

/* Fix table cell layout - make them full width blocks */
form[action*="newthread.php"] tr:has(td > strong) td {
    display: block !important;
    width: 100% !important;
}

/* Section containers - full width, proper spacing */
form[action*="newthread.php"] td.trow1:has(> strong) {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.9), rgba(26, 26, 26, 0.9)) !important;
    border: 1px solid rgba(143, 34, 34, 0.3) !important;
    border-radius: 12px !important;
    padding: 25px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    display: block !important;
    width: 100% !important;
}

/* Fix the two-column layout - make title full width */
form[action*="newthread.php"] td.trow1[width="20%"] {
    width: 100% !important;
    display: none !important;
}

form[action*="newthread.php"] tr:has(td[width="20%"]:has(strong)) {
    display: block !important;
    margin-bottom: 20px !important;
}

/* The content cell takes full width */
form[action*="newthread.php"] tr:has(td[width="20%"]) td:last-child {
    display: block !important;
    width: 100% !important;
}

/* Remove the left cell, move title inside content */
form[action*="newthread.php"] td.trow1:has(+ td > label),
form[action*="newthread.php"] td.trow1:has(+ td > fieldset) {
    position: absolute !important;
    left: -9999px !important;
}

/* Add title before content using CSS */
form[action*="newthread.php"] tr:has(td:contains("POST OPTIONS")) td:last-child::before {
    content: "POST OPTIONS:" !important;
    display: block !important;
    color: #ff6666 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 15px !important;
}

/* Option labels - clean layout */
form[action*="newthread.php"] td.trow1 label,
form[action*="newthread.php"] td:last-child label {
    display: flex !important;
    align-items: center !important;
    padding: 14px 16px !important;
    background: rgba(40, 40, 40, 0.5) !important;
    border: 1px solid rgba(60, 60, 60, 0.3) !important;
    border-radius: 8px !important;
    margin: 10px 0 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    color: #d2d2d2 !important;
    font-size: 13px !important;
}

form[action*="newthread.php"] label:hover {
    background: rgba(50, 50, 50, 0.7) !important;
    border-color: rgba(143, 34, 34, 0.5) !important;
    transform: translateX(5px) !important;
}

/* Checkboxes */
form[action*="newthread.php"] input[type="checkbox"],
form[action*="newthread.php"] input[type="radio"] {
    width: 22px !important;
    height: 22px !important;
    margin: 0 15px 0 0 !important;
    cursor: pointer !important;
    accent-color: #ff3333 !important;
    flex-shrink: 0 !important;
}

/* Small text */
form[action*="newthread.php"] span.smalltext {
    color: #999 !important;
    font-size: 12px !important;
    display: block !important;
    margin: 0 0 15px 0 !important;
    line-height: 1.6 !important;
}

/* Fieldsets get same treatment */
form[action*="newthread.php"] fieldset {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.9), rgba(26, 26, 26, 0.9)) !important;
    border: 1px solid rgba(143, 34, 34, 0.3) !important;
    border-radius: 12px !important;
    padding: 25px !important;
    margin: 20px 0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

form[action*="newthread.php"] legend {
    color: #ff6666 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    padding: 0 12px !important;
}


/* ========================================
   HIDE POLL, THREAD SUBSCRIPTION, AND ATTACHMENTS
   ======================================== */

/* Hide Poll section */
form[action*="newthread.php"] tr:has(td:contains("POLL")),
form[action*="newthread.php"] fieldset:has(legend:contains("Poll")),
form[action*="newthread.php"] fieldset:has(legend:contains("POLL")) {
    display: none !important;
}

/* Hide Thread Subscription section */
form[action*="newthread.php"] tr:has(td:contains("THREAD SUBSCRIPTION")),
form[action*="newthread.php"] tr:has(td:contains("Thread Subscription")),
form[action*="newthread.php"] fieldset:has(legend:contains("Thread Subscription")) {
    display: none !important;
}

/* Hide Attachments section */
form[action*="newthread.php"] .attachments,
form[action*="newthread.php"] #attachment_form,
form[action*="newthread.php"] tr:has(div[style*="border"]) {
    display: none !important;
}

/* Alternative - hide by checking for specific row content */
form[action*="newthread.php"] tbody tr:has(td strong:contains("POLL:")),
form[action*="newthread.php"] tbody tr:has(td strong:contains("THREAD SUBSCRIPTION:")) {
    display: none !important;
}
/* ========================================
   FIX BARS STICKING OUT OF CONTAINER
   ======================================== */

/* Force everything inside the card to respect container width */
.newthread-content-card * {
    box-sizing: border-box !important;
}

.newthread-content-card table,
.newthread-content-card .tborder,
.newthread-content-card fieldset,
.newthread-content-card tr,
.newthread-content-card td {
    max-width: 100% !important;
}

/* Make the table itself fit */
.newthread-content-card > form > table {
    width: 100% !important;
    table-layout: fixed !important;
}

/* Ensure table cells wrap content properly */
.newthread-content-card td {
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
}

/* Fix input and textarea widths */
.newthread-content-card input[type="text"],
.newthread-content-card textarea,
.newthread-content-card .sceditor-container {
    max-width: 100% !important;
    width: 100% !important;
}


/* ========================================
   MATCH MODERATOR OPTIONS STYLING TO POST OPTIONS
   ======================================== */

/* Apply same card styling to both sections */
.newthread-content-card tr:has(td strong:contains("POST OPTIONS")),
.newthread-content-card tr:has(td strong:contains("MODERATOR OPTIONS")) {
    display: block;
    margin: 20px 0;
}

/* Style both option sections the same */
.newthread-content-card tr:has(td strong:contains("POST OPTIONS")) td,
.newthread-content-card tr:has(td strong:contains("MODERATOR OPTIONS")) td {
    display: block;
    width: 100%;
    padding: 25px;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.9), rgba(26, 26, 26, 0.9));
    border: 1px solid rgba(143, 34, 34, 0.3);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Section titles */
.newthread-content-card td strong:contains("POST OPTIONS"),
.newthread-content-card td strong:contains("MODERATOR OPTIONS") {
    color: #ff6666 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    display: block !important;
    margin-bottom: 15px !important;
}

/* Style checkbox labels as cards */
.newthread-content-card tr:has(td strong:contains("POST OPTIONS")) label,
.newthread-content-card tr:has(td strong:contains("MODERATOR OPTIONS")) label {
    display: flex !important;
    align-items: center !important;
    padding: 14px 16px !important;
    background: rgba(40, 40, 40, 0.5) !important;
    border: 1px solid rgba(60, 60, 60, 0.3) !important;
    border-radius: 8px !important;
    margin: 10px 0 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    color: #d2d2d2 !important;
    font-size: 13px !important;
}

.newthread-content-card tr:has(td strong:contains("POST OPTIONS")) label:hover,
.newthread-content-card tr:has(td strong:contains("MODERATOR OPTIONS")) label:hover {
    background: rgba(50, 50, 50, 0.7) !important;
    border-color: rgba(143, 34, 34, 0.5) !important;
    transform: translateX(5px) !important;
}

/* Checkboxes */
.newthread-content-card tr:has(td strong:contains("POST OPTIONS")) input[type="checkbox"],
.newthread-content-card tr:has(td strong:contains("MODERATOR OPTIONS")) input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    margin-right: 12px !important;
    cursor: pointer !important;
    accent-color: #ff3333 !important;
    flex-shrink: 0 !important;
}


/* ========================================

/* ========================================
   HIDE USERNAME/CHANGE USER SECTION ONLY
   ======================================== */

/* Hide only the row that contains the username and change user link */
.newthread-content-card table tbody tr:first-of-type {
    display: none !important;
}

/* ========================================
   HIDE CLICKABLE SMILIES BOX
   ======================================== */

/* Hide the clickable smilies section */
.newthread-content-card #clickable_smilies,
.newthread-content-card div[id*="clickable"] {
    display: none !important;
}

/* ========================================
   MODERN SMILIES STYLING
   ======================================== */

/* Remove the previous hiding rule */
.newthread-content-card #clickable_smilies,
.newthread-content-card div[id*="clickable"] {
    display: block !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 15px 0 0 0 !important;
    max-width: none !important;
}

/* Hide the "SMILIES" title */
.newthread-content-card #clickable_smilies::before {
    display: none !important;
}

/* Style smilies as inline modern emojis */
.newthread-content-card #clickable_smilies table {
    background: transparent !important;
    border: none !important;
    display: inline-block !important;
}

.newthread-content-card #clickable_smilies td {
    padding: 5px !important;
    background: transparent !important;
    border: none !important;
}

.newthread-content-card #clickable_smilies img {
    width: 24px !important;
    height: 24px !important;
    cursor: pointer !important;
    transition: transform 0.2s !important;
}

.newthread-content-card #clickable_smilies img:hover {
    transform: scale(1.3) !important;
}

/* Hide [get more] link if you don't want it */
.newthread-content-card #clickable_smilies a {
    display: none !important;
}


/* ========================================
   EMOJI BAR STYLING - LIKE DEMO
   ======================================== */

/* Remove the emoji button */
.newthread-content-card .emoji_btn {
    display: none !important;
}

/* Style the smilies as a horizontal bar */
.newthread-content-card #clickable_smilies {
    display: block !important;
    background: rgba(30, 30, 30, 0.8) !important;
    border: 1px solid rgba(60, 60, 60, 0.3) !important;
    border-radius: 10px !important;
    padding: 12px 15px !important;
    margin: 10px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Make smilies display inline in a row */
.newthread-content-card #clickable_smilies table {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

.newthread-content-card #clickable_smilies tbody,
.newthread-content-card #clickable_smilies tr {
    display: contents !important;
}

.newthread-content-card #clickable_smilies td {
    padding: 5px !important;
    background: transparent !important;
    border: none !important;
    display: inline-block !important;
}

.newthread-content-card #clickable_smilies img {
    width: 24px !important;
    height: 24px !important;
    cursor: pointer !important;
    transition: transform 0.2s ease !important;
    vertical-align: middle !important;
}

.newthread-content-card #clickable_smilies img:hover {
    transform: scale(1.3) !important;
}

/* Hide [get more] link */
.newthread-content-card #clickable_smilies a {
    display: none !important;
}

/* ========================================
   HIDE CLICKABLE SMILIES BOX
   ======================================== */

/* Hide the clickable smilies section */
.newthread-content-card #clickable_smilies,
.newthread-content-card div[id*="clickable"] {
    display: none !important;
}


/* ========================================
   HIDE OLD SMILIES COMPLETELY
   ======================================== */

/* Hide the old clickable smilies section completely */
.newthread-content-card #clickable_smilies {
    display: none !important;
}
/* ========================================
   HIDE OLD SMILIES - SHOW ONLY MODERN EMOJI BAR
   ======================================== */

/* Hide the old clickable smilies section completely */
.newthread-content-card #clickable_smilies {
    display: none !important;
}


/* ========================================
   MODERN SCEDITOR TOOLBAR STYLING
   ======================================== */

/* Style the editor toolbar */
.newthread-content-card .sceditor-toolbar {
    background: rgba(30, 30, 30, 0.9) !important;
    border: none !important;
    border-bottom: 1px solid rgba(60, 60, 60, 0.3) !important;
    padding: 10px !important;
    border-radius: 12px 12px 0 0 !important;
}

/* Style toolbar buttons */
.newthread-content-card .sceditor-button {
    background: rgba(50, 50, 50, 0.6) !important;
    border: 1px solid rgba(70, 70, 70, 0.5) !important;
    border-radius: 6px !important;
    margin: 2px !important;
    padding: 5px !important;
    transition: all 0.2s ease !important;
}

.newthread-content-card .sceditor-button:hover {
    background: rgba(143, 34, 34, 0.4) !important;
    border-color: #ff3333 !important;
    transform: translateY(-1px) !important;
}

.newthread-content-card .sceditor-button.active {
    background: rgba(143, 34, 34, 0.6) !important;
    border-color: #ff3333 !important;
}

/* Style the editor container */
.newthread-content-card .sceditor-container {
    background: rgba(30, 30, 30, 0.95) !important;
    border: 2px solid rgba(60, 60, 60, 0.5) !important;
    border-radius: 12px !important;
}

/* Style the editor content area */
.newthread-content-card .sceditor-container iframe,
.newthread-content-card .sceditor-container textarea {
    background: rgba(30, 30, 30, 0.95) !important;
    color: #fff !important;
}

/* Dropdown menus */
.newthread-content-card .sceditor-dropdown {
    background: rgba(30, 30, 30, 0.98) !important;
    border: 2px solid #ff3333 !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6) !important;
}

.newthread-content-card .sceditor-dropdown a {
    color: #d2d2d2 !important;
    padding: 8px 12px !important;
}

.newthread-content-card .sceditor-dropdown a:hover {
    background: rgba(143, 34, 34, 0.4) !important;
    color: #fff !important;
}

/* Color picker */
.newthread-content-card .sceditor-color-option {
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.newthread-content-card .sceditor-color-option:hover {
    border-color: #ff3333 !important;
    transform: scale(1.1) !important;
}


/* ========================================
   FIX SCEDITOR BUTTON GROUPS - MODERN SEPARATED BUTTONS
   ======================================== */

/* Remove the grouped button styling */
.newthread-content-card .sceditor-group {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 5px 0 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    gap: 4px !important;
}

/* Individual button styling - override previous */
.newthread-content-card .sceditor-button {
    background: rgba(40, 40, 40, 0.8) !important;
    border: 1px solid rgba(60, 60, 60, 0.5) !important;
    border-radius: 8px !important;
    margin: 0 !important;
    padding: 8px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

.newthread-content-card .sceditor-button:hover {
    background: rgba(143, 34, 34, 0.5) !important;
    border-color: #ff3333 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 10px rgba(255, 51, 51, 0.3) !important;
}

.newthread-content-card .sceditor-button.active,
.newthread-content-card .sceditor-button:active {
    background: rgba(143, 34, 34, 0.7) !important;
    border-color: #ff3333 !important;
}

/* Make icons visible and properly sized */
.newthread-content-card .sceditor-button div {
    background-size: contain !important;
    opacity: 0.9 !important;
}

.newthread-content-card .sceditor-button:hover div {
    opacity: 1 !important;
}

/* Toolbar improvements */
.newthread-content-card .sceditor-toolbar {
    background: rgba(25, 25, 25, 0.95) !important;
    border: none !important;
    border-bottom: 2px solid rgba(143, 34, 34, 0.3) !important;
    padding: 12px !important;
    border-radius: 12px 12px 0 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 3px !important;
}


/* ========================================
   FIX SCEDITOR ICONS VISIBILITY
   ======================================== */

/* Ensure icon divs are visible */
.newthread-content-card .sceditor-button div {
    width: 16px !important;
    height: 16px !important;
    background-size: auto !important;
    opacity: 1 !important;
    filter: brightness(0) invert(1) !important; /* Make icons white */
}

.newthread-content-card .sceditor-button:hover div {
    filter: brightness(0) invert(1) !important; /* Keep white on hover */
}

.newthread-content-card .sceditor-button.active div {
    filter: brightness(0) invert(1) !important; /* Keep white when active */
}

/* Add text labels if icons don't show */
.newthread-content-card .sceditor-button {
    position: relative !important;
    font-size: 0 !important; /* Hide any text */
}

/* Show button titles on hover */
.newthread-content-card .sceditor-button:hover::after {
    content: attr(title) !important;
    position: absolute !important;
    bottom: -30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: rgba(20, 20, 20, 0.95) !important;
    color: #fff !important;
    padding: 5px 10px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
    z-index: 1000 !important;
    border: 1px solid #ff3333 !important;
}


/* ========================================
   HIDE SPECIFIC SCEDITOR BUTTONS
   ======================================== */

/* Hide unwanted buttons */
.newthread-content-card .sceditor-button-source,      /* View source */
.newthread-content-card .sceditor-button-maximize,    /* Maximize */
.newthread-content-card .sceditor-button-php,         /* PHP */
.newthread-content-card .sceditor-button-emoticon,    /* Insert emoticon */
.newthread-content-card .sceditor-button-email,       /* Insert email */
.newthread-content-card .sceditor-button-font,        /* Font name */
.newthread-content-card .sceditor-button-justify,     /* Justify */
.newthread-content-card .sceditor-button-ltr,         /* Left to right (if exists) */
.newthread-content-card .sceditor-button-rtl          /* Right to left (if exists) */
{
    display: none !important;
}


/* ========================================
   REPLACE SCEDITOR ICONS WITH FONT AWESOME
   ======================================== */

/* Hide default SCEditor icons */
.newthread-content-card .sceditor-button div {
    display: none !important;
}

/* Use Font Awesome icons instead */
.newthread-content-card .sceditor-button::before {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    font-size: 16px !important;
    color: #d2d2d2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.newthread-content-card .sceditor-button:hover::before {
    color: #fff !important;
}

/* Bold */
.newthread-content-card .sceditor-button-bold::before {
    content: "\f032" !important; /* fa-bold */
}

/* Italic */
.newthread-content-card .sceditor-button-italic::before {
    content: "\f033" !important; /* fa-italic */
}

/* Underline */
.newthread-content-card .sceditor-button-underline::before {
    content: "\f0cd" !important; /* fa-underline */
}

/* Strikethrough */
.newthread-content-card .sceditor-button-strike::before {
    content: "\f0cc" !important; /* fa-strikethrough */
}

/* Subscript */
.newthread-content-card .sceditor-button-subscript::before {
    content: "\f12c" !important; /* fa-subscript */
}

/* Superscript */
.newthread-content-card .sceditor-button-superscript::before {
    content: "\f12b" !important; /* fa-superscript */
}

/* Left align */
.newthread-content-card .sceditor-button-left::before {
    content: "\f036" !important; /* fa-align-left */
}

/* Center */
.newthread-content-card .sceditor-button-center::before {
    content: "\f037" !important; /* fa-align-center */
}

/* Right align */
.newthread-content-card .sceditor-button-right::before {
    content: "\f038" !important; /* fa-align-right */
}

/* Bullet list */
.newthread-content-card .sceditor-button-bulletlist::before {
    content: "\f0ca" !important; /* fa-list-ul */
}

/* Ordered list */
.newthread-content-card .sceditor-button-orderedlist::before {
    content: "\f0cb" !important; /* fa-list-ol */
}

/* Table */
.newthread-content-card .sceditor-button-table::before {
    content: "\f0ce" !important; /* fa-table */
}

/* Code */
.newthread-content-card .sceditor-button-code::before {
    content: "\f121" !important; /* fa-code */
}

/* Quote */
.newthread-content-card .sceditor-button-quote::before {
    content: "\f10e" !important; /* fa-quote-right */
}

/* Horizontal rule */
.newthread-content-card .sceditor-button-horizontalrule::before {
    content: "\f068" !important; /* fa-minus */
}

/* Image */
.newthread-content-card .sceditor-button-image::before {
    content: "\f03e" !important; /* fa-image */
}

/* Link */
.newthread-content-card .sceditor-button-link::before {
    content: "\f0c1" !important; /* fa-link */
}

/* Unlink */
.newthread-content-card .sceditor-button-unlink::before {
    content: "\f127" !important; /* fa-unlink */
}

/* Video */
.newthread-content-card .sceditor-button-video::before {
    content: "\f03d" !important; /* fa-video */
}

/* YouTube */
.newthread-content-card .sceditor-button-youtube::before {
    content: "\f167" !important; /* fa-youtube */
}

/* Font color */
.newthread-content-card .sceditor-button-color::before {
    content: "\f1fc" !important; /* fa-paint-brush */
}

/* Font size */
.newthread-content-card .sceditor-button-size::before {
    content: "\f034" !important; /* fa-font */
}

/* Remove formatting */
.newthread-content-card .sceditor-button-removeformat::before {
    content: "\f12d" !important; /* fa-eraser */
}

/* Undo */
.newthread-content-card .sceditor-button-undo::before {
    content: "\f0e2" !important; /* fa-undo */
}

/* Redo */
.newthread-content-card .sceditor-button-redo::before {
    content: "\f01e" !important; /* fa-redo */
}

/* Date */
.newthread-content-card .sceditor-button-date::before {
    content: "\f133" !important; /* fa-calendar */
}

/* Time */
.newthread-content-card .sceditor-button-time::before {
    content: "\f017" !important; /* fa-clock */
}

/* Spoiler */
.newthread-content-card .sceditor-button-spoiler::before {
    content: "\f070" !important; /* fa-eye-slash */
}


/* ========================================
   CENTER FONT AWESOME ICONS PROPERLY
   ======================================== */

/* Make buttons flex containers for perfect centering */
.newthread-content-card .sceditor-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
}

/* Center the icon pseudo-element */
.newthread-content-card .sceditor-button::before {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    line-height: 40px !important;
    text-align: center !important;
}


/* ========================================
   HIDE SPECIFIC BUTTONS - OVERRIDE PREVIOUS RULES
   ======================================== */

/* Hide unwanted buttons - IMPORTANT rule */
.newthread-content-card .sceditor-button-source,      /* View source */
.newthread-content-card .sceditor-button-maximize,    /* Maximize */
.newthread-content-card .sceditor-button-php,         /* PHP */
.newthread-content-card .sceditor-button-emoticon,    /* Insert emoticon */
.newthread-content-card .sceditor-button-email,       /* Insert email */
.newthread-content-card .sceditor-button-font,        /* Font name */
.newthread-content-card .sceditor-button-justify      /* Justify */
{
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
}


/* ========================================
   HIDE POST OPTIONS TITLE AND EMPTY CONTAINERS
   ======================================== */

/* Hide "POST OPTIONS:" and "MODERATOR OPTIONS:" titles */
.newthread-content-card td.trow1 > strong:first-child {
    display: none !important;
}

/* Hide empty containers/divs after editor */
.newthread-content-card .sceditor-container + div:empty,
.newthread-content-card textarea#message + div:empty {
    display: none !important;
}

/* Alternative: hide all empty divs in the editor area */
.newthread-content-card .trow2 > div:empty {
    display: none !important;
}



/* ========================================
   HIDE ONLY THE TITLE CELLS, NOT THE OPTIONS
   ======================================== */

/* Hide the left column that contains "POST OPTIONS:" or "MODERATOR OPTIONS:" */
.newthread-content-card td.trow1[width="20%"]:has(strong) {
    display: none !important;
}

/* Make the right column (with checkboxes) full width */
.newthread-content-card tr:has(td.trow1[width="20%"] > strong) td.trow1:last-child {
    display: block !important;
    width: 100% !important;
}

/* Hide empty divs */
.newthread-content-card div:empty {
    display: none !important;
}
/* ========================================
   FIX SCEDITOR TEXT COLOR
   ======================================== */

/* Override the default SCEditor text color */
.sceditor-container iframe,
.sceditor-container textarea {
    color: #d2d2d2 !important;
}

/* Target the body inside the iframe */
.sceditor-container iframe html body {
    color: #d2d2d2 !important;
}
/* ========================================
   APPLY NEW THREAD STYLES TO NEW REPLY PAGE
   ======================================== */

/* Copy button styling for newreply */
.newreply-content-card .sceditor-group {
    background: transparent !important;
    border: none !important;
    margin: 0 5px 0 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    gap: 4px !important;
}

.newreply-content-card .sceditor-button {
    background: rgba(40, 40, 40, 0.8) !important;
    border: 1px solid rgba(60, 60, 60, 0.5) !important;
    border-radius: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}

.newreply-content-card .sceditor-button:hover {
    background: rgba(143, 34, 34, 0.5) !important;
    border-color: #ff3333 !important;
    transform: translateY(-2px) !important;
}

/* Hide default icons, use Font Awesome */
.newreply-content-card .sceditor-button div {
    display: none !important;
}

.newreply-content-card .sceditor-button::before {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    font-size: 16px !important;
    color: #d2d2d2 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    line-height: 40px !important;
    text-align: center !important;
}

.newreply-content-card .sceditor-button:hover::before {
    color: #fff !important;
}

/* Font Awesome icons for newreply */
.newreply-content-card .sceditor-button-bold::before { content: "\f032" !important; }
.newreply-content-card .sceditor-button-italic::before { content: "\f033" !important; }
.newreply-content-card .sceditor-button-underline::before { content: "\f0cd" !important; }
.newreply-content-card .sceditor-button-strike::before { content: "\f0cc" !important; }
.newreply-content-card .sceditor-button-subscript::before { content: "\f12c" !important; }
.newreply-content-card .sceditor-button-superscript::before { content: "\f12b" !important; }
.newreply-content-card .sceditor-button-left::before { content: "\f036" !important; }
.newreply-content-card .sceditor-button-center::before { content: "\f037" !important; }
.newreply-content-card .sceditor-button-right::before { content: "\f038" !important; }
.newreply-content-card .sceditor-button-bulletlist::before { content: "\f0ca" !important; }
.newreply-content-card .sceditor-button-orderedlist::before { content: "\f0cb" !important; }
.newreply-content-card .sceditor-button-table::before { content: "\f0ce" !important; }
.newreply-content-card .sceditor-button-code::before { content: "\f121" !important; }
.newreply-content-card .sceditor-button-quote::before { content: "\f10e" !important; }
.newreply-content-card .sceditor-button-horizontalrule::before { content: "\f068" !important; }
.newreply-content-card .sceditor-button-image::before { content: "\f03e" !important; }
.newreply-content-card .sceditor-button-link::before { content: "\f0c1" !important; }
.newreply-content-card .sceditor-button-unlink::before { content: "\f127" !important; }
.newreply-content-card .sceditor-button-video::before { content: "\f03d" !important; }
.newreply-content-card .sceditor-button-youtube::before { content: "\f167" !important; }
.newreply-content-card .sceditor-button-color::before { content: "\f1fc" !important; }
.newreply-content-card .sceditor-button-size::before { content: "\f034" !important; }
.newreply-content-card .sceditor-button-removeformat::before { content: "\f12d" !important; }
.newreply-content-card .sceditor-button-undo::before { content: "\f0e2" !important; }
.newreply-content-card .sceditor-button-redo::before { content: "\f01e" !important; }
.newreply-content-card .sceditor-button-date::before { content: "\f133" !important; }
.newreply-content-card .sceditor-button-time::before { content: "\f017" !important; }
.newreply-content-card .sceditor-button-spoiler::before { content: "\f070" !important; }

/* Hide unwanted buttons in newreply */
.newreply-content-card .sceditor-button-source,
.newreply-content-card .sceditor-button-maximize,
.newreply-content-card .sceditor-button-php,
.newreply-content-card .sceditor-button-emoticon,
.newreply-content-card .sceditor-button-email,
.newreply-content-card .sceditor-button-font,
.newreply-content-card .sceditor-button-justify {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
}

/* Hide old smilies in newreply */
.newreply-content-card #clickable_smilies {
    display: none !important;
}

/* Toolbar styling for newreply */
.newreply-content-card .sceditor-toolbar {
    background: rgba(25, 25, 25, 0.95) !important;
    border: none !important;
    border-bottom: 2px solid rgba(143, 34, 34, 0.3) !important;
    padding: 12px !important;
    border-radius: 12px 12px 0 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 3px !important;
}

/* ========================================
   FIX ADMINISTRATOR BADGE IN USER CARD
   ======================================== */

/* Style for Administrator text */
.post-container .user_details .largetext {
    display: inline-block;
    background: linear-gradient(135deg, rgba(143, 34, 34, 0.9), rgba(180, 40, 40, 0.9));
    color: #ffffff !important;
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 8px 0;
    border: 1px solid rgba(255, 51, 51, 0.3);
    box-shadow: 0 2px 8px rgba(143, 34, 34, 0.4);
}

/* Alternative selector if above doesn't work */
.post_author_info .largetext,
.author_information .largetext {
    display: inline-block;
    background: linear-gradient(135deg, rgba(143, 34, 34, 0.9), rgba(180, 40, 40, 0.9));
    color: #ffffff !important;
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 8px 0;
    border: 1px solid rgba(255, 51, 51, 0.3);
    box-shadow: 0 2px 8px rgba(143, 34, 34, 0.4);
}

/* Generic usergroup styling */
.post_usergroup,
.usergroup {
    display: inline-block;
    background: linear-gradient(135deg, rgba(143, 34, 34, 0.9), rgba(180, 40, 40, 0.9));
    color: #ffffff !important;
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 8px 0;
    border: 1px solid rgba(255, 51, 51, 0.3);
    box-shadow: 0 2px 8px rgba(143, 34, 34, 0.4);
}

/* ========================================
/* ========================================
   CORRECT ADMIN BADGE FIX - TARGET TEXT DIRECTLY
   ======================================== */

/* The badge wrapper contains the text directly */
.profile-badge-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #8f2222, #b42828) !important;
    color: #fff !important;
    padding: 6px 16px !important;
    border-radius: 12px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    border: 1px solid rgba(255, 51, 51, 0.4) !important;
    box-shadow: 0 3px 10px rgba(143, 34, 34, 0.5) !important;
    width: fit-content !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Group image styling */
.profile-badge-wrapper img {
    display: block !important;
    margin: 8px auto 0 !important;
    max-width: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}
    border-radius: 12px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    margin: 0 !important;
    border: 1px solid rgba(255, 51, 51, 0.4) !important;
    box-shadow: 0 3px 10px rgba(143, 34, 34, 0.5) !important;
}
/* ========================================
   ULTRA MODERN HEADER & USER CONTROLS
   Added for modern design implementation
   ======================================== */

/* Modern Header Styling - Override existing header */
#header {
    background: rgba(15, 15, 15, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(143, 34, 34, 0.2) !important;
    border-radius: 16px !important;
    padding: 20px 30px !important;
    margin-bottom: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
}

/* Logo Styling */
#header .logo {
    font-size: 28px !important;
    font-weight: 900 !important;
    letter-spacing: 2px !important;
}

/* Header Right Side Container */
.header-right {
    display: flex !important;
    gap: 30px !important;
    align-items: center !important;
}

/* Navigation Menu Styling */
.top-menu,
#panel .links {
    display: flex !important;
    gap: 15px !important;
    align-items: center !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

.top-menu a,
#panel .links a {
    background: rgba(30, 30, 30, 0.6) !important;
    border: 1.5px solid rgba(60, 60, 60, 0.5) !important;
    padding: 10px 20px !important;
    border-radius: 10px !important;
    color: #999999 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.top-menu a:hover,
#panel .links a:hover {
    background: rgba(143, 34, 34, 0.3) !important;
    border-color: #ff3333 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

/* User Controls Container */
.user-controls {
    display: flex !important;
    gap: 12px !important;
    align-items: center !important;
}

/* Control Buttons (Notifications, Messages) */
.control-btn {
    width: 44px !important;
    height: 44px !important;
    background: rgba(30, 30, 30, 0.6) !important;
    border: 1.5px solid rgba(60, 60, 60, 0.5) !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #999999 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    text-decoration: none !important;
}

.control-btn i {
    font-size: 18px !important;
}

.control-btn:hover {
    background: rgba(143, 34, 34, 0.3) !important;
    border-color: #ff3333 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

/* Notification Badge */
.control-btn .badge,
.badge-count {
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;
    background: #ff3333 !important;
    color: white !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 3px 6px !important;
    border-radius: 10px !important;
    min-width: 18px !important;
    text-align: center !important;
    box-shadow: 0 2px 8px rgba(255, 51, 51, 0.5) !important;
    animation: pulse-badge 2s infinite !important;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* User Profile Button */
.user-profile-btn {
    background: linear-gradient(135deg, rgba(143, 34, 34, 0.3), rgba(143, 34, 34, 0.1)) !important;
    border: 1px solid rgba(143, 34, 34, 0.2) !important;
    border-radius: 12px !important;
    padding: 8px 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    text-decoration: none !important;
}

.user-profile-btn:hover {
    background: linear-gradient(135deg, rgba(143, 34, 34, 0.5), rgba(143, 34, 34, 0.2)) !important;
    border-color: #ff3333 !important;
    transform: translateY(-2px) !important;
}

/* User Avatar */
.user-avatar {
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
    border: 2px solid #ff3333 !important;
    object-fit: cover !important;
}

/* User Info */
.user-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

.user-name {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
}

.user-rank {
    font-size: 11px !important;
    color: #ff3333 !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Dropdown Icon */
.dropdown-icon {
    color: #999999 !important;
    font-size: 12px !important;
    margin-left: 4px !important;
    transition: transform 0.3s ease !important;
}

.user-profile-btn:hover .dropdown-icon {
    color: #ff3333 !important;
}

.user-profile-btn.active .dropdown-icon {
    transform: rotate(180deg) !important;
}

/* ========================================
   DROPDOWN MENUS
   ======================================== */

/* Base Dropdown Styling */
.dropdown-menu {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 0 !important;
    background: rgba(15, 15, 15, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(143, 34, 34, 0.2) !important;
    border-radius: 12px !important;
    padding: 8px !important;
    min-width: 280px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) !important;
    transition: all 0.3s ease !important;
    z-index: 1000 !important;
}

.dropdown-menu.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Dropdown Header */
.dropdown-header {
    padding: 16px !important;
    border-bottom: 1px solid rgba(60, 60, 60, 0.3) !important;
    margin-bottom: 8px !important;
}

/* Dropdown User Info */
.dropdown-user-info {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
}

.dropdown-avatar {
    width: 48px !important;
    height: 48px !important;
    border-radius: 10px !important;
    border: 2px solid #ff3333 !important;
}

.dropdown-user-details h4 {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 4px !important;
}

.dropdown-user-details p {
    font-size: 12px !important;
    color: #999999 !important;
}

/* User Stats Grid */
.user-stats {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
    margin-top: 12px !important;
}

.stat-box {
    background: rgba(30, 30, 30, 0.6) !important;
    border: 1px solid rgba(60, 60, 60, 0.5) !important;
    border-radius: 8px !important;
    padding: 10px !important;
    text-align: center !important;
}

.stat-value {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #ff3333 !important;
    display: block !important;
}

.stat-label {
    font-size: 10px !important;
    color: #666666 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-top: 4px !important;
}

/* Dropdown Items */
.dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 16px !important;
    color: #999999 !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    font-size: 14px !important;
    cursor: pointer !important;
}

.dropdown-item i {
    width: 20px !important;
    font-size: 16px !important;
    color: #666666 !important;
}

.dropdown-item:hover {
    background: rgba(143, 34, 34, 0.2) !important;
    color: #ffffff !important;
    transform: translateX(4px) !important;
}

.dropdown-item:hover i {
    color: #ff3333 !important;
}

/* Dropdown Divider */
.dropdown-divider {
    height: 1px !important;
    background: rgba(60, 60, 60, 0.3) !important;
    margin: 8px 0 !important;
}

/* Danger Item (Logout) */
.dropdown-item.danger {
    color: #ff4444 !important;
}

.dropdown-item.danger:hover {
    background: rgba(255, 68, 68, 0.1) !important;
}

/* ========================================
   NOTIFICATION DROPDOWN
   ======================================== */

.notification-item {
    display: flex !important;
    gap: 12px !important;
    padding: 12px !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    border-left: 3px solid transparent !important;
}

.notification-item:hover {
    background: rgba(143, 34, 34, 0.1) !important;
    border-left-color: #ff3333 !important;
}

.notification-item.unread {
    background: rgba(143, 34, 34, 0.05) !important;
    border-left-color: #ff3333 !important;
}

.notification-icon {
    width: 40px !important;
    height: 40px !important;
    background: rgba(143, 34, 34, 0.2) !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ff3333 !important;
    flex-shrink: 0 !important;
}

.notification-content {
    flex: 1 !important;
}

.notification-title {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    margin-bottom: 4px !important;
}

.notification-text {
    font-size: 12px !important;
    color: #999999 !important;
    line-height: 1.4 !important;
    margin-bottom: 4px !important;
}

.notification-time {
    font-size: 11px !important;
    color: #666666 !important;
}

.notification-footer {
    padding: 12px 16px !important;
    border-top: 1px solid rgba(60, 60, 60, 0.3) !important;
    text-align: center !important;
}

.notification-footer a {
    color: #ff3333 !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.notification-footer a:hover {
    text-decoration: underline !important;
}

/* ========================================
   ENHANCED CATEGORY TABS - OVERRIDE EXISTING
   ======================================== */

/* Make tabs grid-based instead of flex */
.tabs-underline {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    gap: 15px !important;
    justify-content: unset !important;
}

/* Enhanced tab styling */
.tab-underline {
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Add top border effect */
.tab-underline::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, transparent, #ff3333, transparent) !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.tab-underline:hover::before,
.tab-underline.active::before {
    opacity: 1 !important;
}

/* Larger icons */
.tab-underline i {
    font-size: 32px !important;
}

/* Better hover effect */
.tab-underline:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 30px rgba(255, 51, 51, 0.2) !important;
}

.tab-underline:hover i {
    transform: scale(1.1) rotateY(360deg) !important;
}

/* Enhanced active state */
.tab-underline.active {
    box-shadow: 0 0 30px rgba(255, 51, 51, 0.3) !important;
}

/* ========================================
   RESPONSIVE - MODERN HEADER
   ======================================== */

@media (max-width: 768px) {
    #header {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .header-right {
        width: 100% !important;
        flex-direction: column !important;
        gap: 15px !important;
    }

    .top-menu,
    #panel .links {
        width: 100% !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    .user-controls {
        width: 100% !important;
        justify-content: center !important;
    }

    .user-info {
        display: none !important;
    }

    .dropdown-menu {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
    }
    
    .tabs-underline {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
/* ========================================
   MYBB HEADER FIX - ADD THIS TO YOUR GLOBAL.CSS
   Add this AFTER the previous modern header CSS
   ======================================== */

/* Force header to be horizontal */
#header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
}

/* Reset any float on logo */
#header .logo {
    float: none !important;
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}

/* Force header-right to align properly */
.header-right {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 30px !important;
    flex-wrap: nowrap !important;
    margin-left: auto !important;
}

/* Remove any default MyBB panel styling */
#panel {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    width: auto !important;
}

/* Fix panel links container */
#panel .links {
    display: flex !important;
    flex-direction: row !important;
    gap: 15px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

/* Fix panel welcome block */
#panel .welcome {
    display: none !important;
}

/* Hide default MyBB user links/welcome message */
#panel .upper,
#panel .lower {
    display: none !important;
}

/* Force top-menu to be inline */
.top-menu {
    display: flex !important;
    flex-direction: row !important;
    gap: 15px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Fix user controls alignment */
.user-controls {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    align-items: center !important;
    margin: 0 !important;
}

/* Ensure guest links don't show when logged in */
#panel .links a[href*="login"],
#panel .links a[href*="register"] {
    display: none !important;
}

/* When inside user-controls wrapper, show them */
.user-controls ~ .top-menu a[href*="login"],
.user-controls ~ .top-menu a[href*="register"] {
    display: flex !important;
}

/* Fix any absolute positioning issues */
#header * {
    position: relative !important;
}

#header .dropdown-menu {
    position: absolute !important;
}

/* Prevent header from being too tall */
#header {
    min-height: auto !important;
    height: auto !important;
}

/* Remove any clear or float from header children */
#header > * {
    float: none !important;
    clear: none !important;
}

/* Fix logo link */
#header .logo a {
    display: inline-flex !important;
    text-decoration: none !important;
}

/* Ensure control buttons are proper size */
.control-btn {
    flex-shrink: 0 !important;
}

/* Fix user profile button */
.user-profile-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

/* ========================================
   ADDITIONAL RESPONSIVE FIX
   ======================================== */

@media (max-width: 1200px) {
    .header-right {
        gap: 20px !important;
    }
    
    .top-menu {
        gap: 10px !important;
    }
    
    .top-menu a,
    #panel .links a {
        padding: 10px 15px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 992px) {
    #header .logo {
        font-size: 24px !important;
    }
    
    .top-menu a span,
    #panel .links a span {
        display: none !important;
    }
    
    .top-menu a i,
    #panel .links a i {
        margin: 0 !important;
    }
}

/* ========================================
   CRITICAL FIXES - HIDE OLD MYBB PANEL
   ======================================== */

/* Hide the default MyBB welcome block completely */
#panel,
.welcome,
.upper,
.lower {
    display: none !important;
}

/* Ensure our custom header is visible */
#header {
    display: flex !important;
}

/* Hide any panel that might appear after header */
#header + #panel {
    display: none !important;
}

/* Force logo to use custom styling */
.logo span {
    display: inline !important;
}

.logo-game {
    color: #ffffff !important;
}

.logo-hooked {
    color: #ff3333 !important;
}

/* Ensure guest menu is properly styled */
.guest-menu {
    display: flex !important;
    gap: 15px !important;
}

/* Make absolutely sure user controls show when logged in */
.user-controls {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Prevent any conflicting z-index issues */
#header {
    z-index: 100 !important;
}

#header .dropdown-menu {
    z-index: 101 !important;
}/* ========================================
   NAVBAR WITH MORE TRANSPARENT IMAGE
   ======================================== */

/* Navbar (header) with SOLID dark background */
html body div#header,
body div#header,
div#header,
#header {
    background-color: rgba(15, 15, 15, 1) !important;
    position: relative !important;
}

/* Make the background image very transparent with overlay */
html body div#header::before,
body div#header::before,
div#header::before,
#header::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-image: url(https://i.imgur.com/pSkckAC.png) !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    opacity: 0.15 !important;
    pointer-events: none !important;
    z-index: 0 !important;
    border-radius: inherit !important;
}

/* Ensure content is above overlay */
#header .logo,
#header .header-right,
#header > * {
    position: relative !important;
    z-index: 1 !important;
}

/* Navbar buttons - transparent */
.top-menu a,
.nav-item,
nav.top-menu a {
    background: rgba(30, 30, 30, 0.6) !important;
}

/* User control buttons - transparent */
.control-btn,
.user-controls .control-btn {
    background: rgba(30, 30, 30, 0.6) !important;
}

/* User profile button - transparent */
.user-profile-btn,
#userProfileBtn {
    background: rgba(30, 30, 30, 0.6) !important;
}

/* Keep hover states */
.top-menu a:hover,
.nav-item:hover {
    background: rgba(143, 34, 34, 0.3) !important;
}

.control-btn:hover {
    background: rgba(143, 34, 34, 0.3) !important;
}

.user-profile-btn:hover {
    background: rgba(143, 34, 34, 0.3) !important;
}
/* ========================================
   HIDE SPECIFIC WIDGETS
   ======================================== */

/* Hide announcement bar */
.announcement-bar,
.announcements-bar,
#announcement-bar,
.announcement-widget,
.announcements,
div[class*="announcement"],
.alert-bar,
.notice-bar,
.announcements-widget {
    display: none !important;
}

/* Hide general-widget that contains rewards/contests */
.general-widget:has(.widget-header span:contains("Reward")),
.general-widget:has(.widget-header span:contains("Contest")),
.main-aside .general-widget:nth-child(3) {
    display: none !important;
}

/* Alternative: Hide by checking text content */
.general-widget .widget-header span {
    /* This will be caught by JS or we hide the third widget */
}

/* Hide the third widget in sidebar (after live-activity and announcements) */
aside.main-aside > div.general-widget:last-child,
aside.main-aside > .general-widget:nth-of-type(3) {
    display: none !important;
}
/* ========================================
   NOTIFICATION BADGE - NO BORDER
   ======================================== */

/* Bell button container needs to be relative for badge positioning */
.control-btn[href*="alerts"],
a[href*="alerts.php"],
.user-controls .control-btn:has(i.fa-bell) {
    position: relative !important;
}

/* Notification badge - positioned at top-right corner */
.control-btn[href*="alerts"]::after,
a[href*="alerts.php"]::after {
    content: "3" !important;
    position: absolute !important;
    top: -2px !important;
    right: -2px !important;
    background: #ff3333 !important;
    color: #ffffff !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    min-width: 14px !important;
    height: 14px !important;
    border-radius: 7px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1px 3px !important;
    box-shadow: 0 2px 6px rgba(255, 51, 51, 0.4) !important;
    border: none !important;
    line-height: 1 !important;
    z-index: 10 !important;
}

/* Hide badge if there are 0 notifications */
.control-btn[href*="alerts"][data-count="0"]::after {
    display: none !important;
}

/* Subtle pulse animation */
@keyframes notification-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 6px rgba(255, 51, 51, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 3px 8px rgba(255, 51, 51, 0.5);
    }
}

.control-btn[href*="alerts"]::after,
a[href*="alerts.php"]::after {
    animation: notification-pulse 2s ease-in-out infinite !important;
}
/* ========================================
   FIX POSTS BOX TEXT ALIGNMENT
   ======================================== */

/* Hide PM button from header */
.control-btn[href*="private"],
.header-right .control-btn:has(i.fa-envelope),
a[href*="private.php"].control-btn,
.user-controls .control-btn:has(i.fa-envelope) {
    display: none !important;
}

/* Hide REP and CREDITS boxes */
.user-stats .stat-box:nth-child(2),
.user-stats .stat-box:nth-child(3) {
    display: none !important;
}

/* User stats grid layout */
.user-stats {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    gap: 12px !important;
}

/* Fix POSTS box alignment */
.stat-box {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 10px !important;
}

.stat-value {
    display: block !important;
    text-align: center !important;
    width: 100% !important;
}

.stat-label {
    display: block !important;
    text-align: center !important;
    width: 100% !important;
}

/* Position dropdown header relatively */
.dropdown-header {
    position: relative !important;
}

/* Style PM button when in dropdown */
.dropdown-header .pm-button-moved,
.dropdown-header .control-btn[href*="private"],
.user-stats .pm-button-moved {
    position: static !important;
    width: 80px !important;
    height: 68px !important;
    background: rgba(30, 30, 30, 0.6) !important;
    border: 1px solid rgba(60, 60, 60, 0.5) !important;
    border-radius: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    color: #999 !important;
    transition: all 0.3s ease !important;
    padding: 10px !important;
    margin: 0 !important;
    text-decoration: none !important;
    gap: 4px !important;
}

.dropdown-header .pm-button-moved:hover,
.dropdown-header .control-btn[href*="private"]:hover,
.user-stats .pm-button-moved:hover {
    background: rgba(143, 34, 34, 0.3) !important;
    border-color: #ff3333 !important;
    color: #ff3333 !important;
}

/* Add "PM" label */
.dropdown-header .pm-button-moved::after,
.dropdown-header .control-btn[href*="private"]::after,
.user-stats .pm-button-moved::after {
    content: "PM" !important;
    font-size: 10px !important;
    color: #666 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
}

/* Make PM icon larger */
.dropdown-header .pm-button-moved i,
.dropdown-header .control-btn[href*="private"] i,
.user-stats .pm-button-moved i {
    font-size: 18px !important;
    color: #ff3333 !important;
}
/* ========================================
   FIX MORE BUTTON - ICON AFTER TEXT
   ======================================== */

/* Target the MORE button and reverse flex order */
.top-menu a[href*="misc.php?action=help"],
nav.top-menu a:last-child {
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
    gap: 8px !important;
}

/* Alternative: If the icon has a class */
.top-menu a[href*="misc.php?action=help"] i {
    order: 2 !important;
}

.top-menu a[href*="misc.php?action=help"] span {
    order: 1 !important;
}

/* Forums/Sidebar gap */
.forums, div.forums, .forums.float-left, div.forums.float-left {
    width: 62.5% !important;
    max-width: 62.5% !important;
    margin-right: 1.5% !important;
}

.main-aside, aside.main-aside, .main-aside.float-right, aside.main-aside.float-right {
    width: 21% !important;
    max-width: 21% !important;
}

/* ========================================
   CATEGORY TAB ICONS - FORCE 22PX
   ======================================== */

.tab-underline i,
.tabs-underline .tab-underline i,
.category-tabs .tab-underline i,
i.fa-solid.fa-home,
.tab-underline i.fa-solid {
    font-size: 27px !important;
}


/* ========================================
   LASTPOST USERNAME RED & ICON SQUARE RED ICON
   ======================================== */

/* Make lastpost username red */
.lastpost-meta a,
.forum-lastpost .lastpost-meta a {
    color: #ff3333 !important;
}

/* Make forum icon red */
.forum_status i,
.forum-card .forum_status i,
.forum-icon-wrapper .forum_status i {
    color: #ff3333 !important;
}
/* ========================================
   FORUM CARD HOVER - OPTION 4: SMOOTH SLIDE UP + GRADIENT SHIFT
   ======================================== */

/* Base forum card - add transition */
.forum-card,
.forums .tborder.clear,
table.forums .tborder.clear {
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    border-radius: 12px !important;
}

/* Hover state - slide up and glow */
.forum-card:hover,
.forums .tborder.clear:hover,
table.forums .tborder.clear:hover {
    transform: translateY(-5px) !important;
    border-color: #ff3333 !important;
    box-shadow: 0 10px 30px rgba(255, 51, 51, 0.3) !important;
    background: linear-gradient(135deg, rgba(25, 25, 25, 0.95), rgba(30, 20, 20, 0.95)) !important;
}


/* Forum icon hover effect - removed translateY to prevent clipping */
.forum-card:hover .forum-icon-wrapper,
.forums .tborder.clear:hover .forum-icon-wrapper,
.forum-card:hover .forum_status,
.forums .tborder.clear:hover .forum_status {
    background: #251414 !important;
    border-color: #391717 !important;
    transition: all 0.3s ease !important;
}

/* Ensure content stays above the sweep animation */
.forum-card > *,
.forums .tborder.clear > * {
    position: relative !important;
    z-index: 1 !important;
}

/* ========================================
   FORCE FORUM ICON COLOR FIX
   ======================================== */
.forum_status.forum_off i,
.forum_status.forum_on i,
.forum_status i.fa-solid,
.forum-card .forum_status i,
.forum-icon-wrapper .forum_status i {
    color: #ff3333 !important;
}

/* FORCE FORUM CARD HOVER - Override everything */
.forum-card:hover {
    transform: translateY(-5px) !important;
    border-color: #ff3333 !important;
    box-shadow: 0 10px 30px rgba(255, 51, 51, 0.3) !important;
    background: linear-gradient(135deg, rgba(25, 25, 25, 0.95), rgba(30, 20, 20, 0.95)) !important;
}

.forum-card:hover .forum_status,
.forum-card:hover .forum-icon-wrapper .forum_status {
    background: #251414 !important;
    border-color: #391717 !important;
    box-shadow: none !important;
}

/* Remove any pseudo-elements that might be creating extra boxes */
.forum_status::before,
.forum_status::after,
.forum-icon-wrapper::before,
.forum-icon-wrapper::after {
    display: none !important;
    content: none !important;
}

/* FORCE forum_off icon to be fully visible and red */
.forum_status.forum_off i,
.forum_off i,
.forum_off.forum_status i {
    opacity: 1 !important;
    color: #ff3333 !important;
}

/* FORCE proper border radius and containment on forum_status */
.forum_status,
.forum-card .forum_status,
.forum-icon-wrapper .forum_status {
    border-radius: 12px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.forum-card:hover .forum_status,
.forum-card:hover .forum-icon-wrapper .forum_status,
.forums .tborder.clear:hover .forum_status {
    border-radius: 12px !important;
    overflow: hidden !important;
}
/* Ensure all content is above the background canvas */
#header {
    position: relative !important;
    z-index: 10 !important;
}

#content {
    position: relative !important;
    z-index: 10 !important;
}

.forums {
    position: relative !important;
    z-index: 10 !important;
}

.main-aside {
    position: relative !important;
    z-index: 10 !important;
}

#footer {
    position: relative !important;
    z-index: 10 !important;
}

/* ========================================
   BREADCRUMB BAR - NAVIGATION TEMPLATE
   ======================================== */

.breadcrumb-bar {
    width: 85%;
    margin: -5px auto 15px auto;
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border: 1.5px solid #2a2a2a;
    border-radius: 15px;
    padding: 12px 30px;
}

.breadcrumb-content {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    flex-wrap: wrap;
}

.breadcrumb-home {
    color: #999 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.breadcrumb-home:hover {
    color: #ff3333 !important;
}

.breadcrumb-home i {
    font-size: 13px !important;
}

/* Style the navbits output */
.breadcrumb-content .navigation {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumb-content a {
    color: #999 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    font-size: 13px !important;
}

.breadcrumb-content a:hover {
    color: #ff3333 !important;
}

/* Current page */
.breadcrumb-content strong {
    color: #ff3333 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
}

/* Hide MyBB's default navigation images */
.breadcrumb-content img {
    display: none !important;
}

/* Style nav_bit links - add chevron after each */
.breadcrumb-content .navigation a::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    color: #555;
    margin-left: 8px;
}

/* ========================================
   BREADCRUMB - STYLING MYBB'S DEFAULT NAV
   ======================================== */

/* MyBB outputs navigation in a div with class "navigation" */
.navigation {
    width: 85% !important;
    margin: 5px auto 15px auto !important;
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d) !important;
    border: 1.5px solid #2a2a2a !important;
    border-radius: 15px !important;
    padding: 12px 30px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 13px !important;
}

/* Style navigation links */
.navigation a {
    color: #999 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    font-size: 13px !important;
}

.navigation a:hover {
    color: #ff3333 !important;
}

/* Current page (in strong tags) */
.navigation strong {
    color: #ff3333 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
}

/* Hide MyBB's default arrow images */
.navigation img {
    display: none !important;
}

/* Add Font Awesome chevrons after each link */
.navigation a::after {
    content: '\f054' !important;
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    font-size: 10px !important;
    color: #555 !important;
    margin: 0 8px !important;
}

/* Add home icon at the start */
.navigation::before {
    content: '\f015' !important;
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    font-size: 13px !important;
    color: #999 !important;
}
/* ========================================
   GAMING NEWS PLUGIN - LARGE FEATURED GRID
   ======================================== */

.gaming-news-featured-grid {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border: 1.5px solid #2a2a2a;
    border-bottom: none;
    border-radius: 15px 15px 0 0;
    padding: 30px;
    margin-top: 20px;
}

/* Header Section */
.featured-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #2a2a2a;
}

.featured-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.featured-title i {
    color: #ff3333;
    font-size: 24px;
}

/* Category Tabs */
.featured-tabs {
    display: flex;
    gap: 10px;
}

.featured-tab-btn {
    padding: 8px 16px;
    background: rgba(30, 30, 30, 0.6);
    border: 1.5px solid #2a2a2a;
    border-radius: 8px;
    color: #999;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.featured-tab-btn:hover,
.featured-tab-btn.active {
    background: #ff3333;
    border-color: #ff3333;
    color: #fff;
}

/* Main Grid Layout */
.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

/* Featured Main Story */
.featured-main {
    position: relative;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #2a2a2a;
}

.featured-main:hover {
    transform: scale(1.02);
    border-color: #ff3333;
}

.featured-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-main:hover .featured-main-image {
    transform: scale(1.05);
}

.featured-main-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.95));
}

.featured-main-badge {
    display: inline-block;
    padding: 6px 12px;
    background: #ff3333;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.featured-main-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.3;
}

.featured-main-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #ccc;
}

.featured-main-source {
    color: #ff3333;
    font-weight: 600;
}

/* Sidebar Stories */
.featured-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.featured-small {
    position: relative;
    height: 125px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(30, 30, 30, 0.6);
    border: 1.5px solid #2a2a2a;
    transition: all 0.3s ease;
    display: flex;
}

.featured-small:hover {
    border-color: #ff3333;
    transform: translateX(5px);
    background: rgba(255, 51, 51, 0.05);
}

.featured-small-image {
    width: 180px;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.featured-small:hover .featured-small-image {
    transform: scale(1.1);
}

.featured-small-content {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.featured-small-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.featured-small-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-small-title a:hover {
    color: #ff3333;
}

.featured-small-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #999;
}

.featured-small-source {
    color: #ff3333;
    font-weight: 600;
}

/* Error State */
.gaming-news-error {
    padding: 30px;
    text-align: center;
    color: #ed4245;
    font-size: 14px;
    background: rgba(237, 66, 69, 0.1);
    border: 1px solid rgba(237, 66, 69, 0.3);
    border-radius: 10px;
}

.gaming-news-error i {
    margin-right: 8px;
}

/* Placeholder Image Styling */
.featured-main-image[src*="placeholder"],
.featured-small-image[src*="placeholder"] {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .featured-main {
        height: 350px;
    }

    .featured-sidebar {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .featured-small {
        height: 200px;
        flex-direction: column;
    }

    .featured-small-image {
        width: 100%;
        height: 120px;
    }
}

@media (max-width: 768px) {
    .gaming-news-featured-grid {
        padding: 20px;
    }

    .featured-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .featured-tabs {
        width: 100%;
        flex-wrap: wrap;
    }

    .featured-tab-btn {
        flex: 1;
        min-width: calc(50% - 5px);
        text-align: center;
    }

    .featured-main {
        height: 300px;
    }

    .featured-main-title {
        font-size: 22px;
    }

    .featured-sidebar {
        grid-template-columns: 1fr;
    }

    .featured-small {
        height: 120px;
        flex-direction: row;
    }

    .featured-small-image {
        width: 140px;
        height: 100%;
    }

    .featured-small-content {
        padding: 12px 15px;
    }

    .featured-small-title {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 480px) {
    .gaming-news-featured-grid {
        padding: 15px;
    }

    .featured-title {
        font-size: 14px;
    }

    .featured-title i {
        font-size: 18px;
    }

    .featured-tab-btn {
        font-size: 11px;
        padding: 6px 12px;
    }

    .featured-main {
        height: 250px;
    }

    .featured-main-overlay {
        padding: 25px 20px;
    }

    .featured-main-title {
        font-size: 18px;
    }

    .featured-main-meta {
        font-size: 11px;
        gap: 10px;
    }

    .featured-small {
        height: 100px;
    }

    .featured-small-image {
        width: 120px;
    }

    .featured-small-content {
        padding: 10px;
    }

    .featured-small-title {
        font-size: 12px;
    }

    .featured-small-meta {
        font-size: 10px;
    }
}

/* ========================================
   LOADING STATE
   ======================================== */

.gaming-news-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 30px;
    color: #999;
    font-size: 14px;
}

.gaming-news-loading i {
    margin-right: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.featured-main:focus,
.featured-small:focus,
.featured-tab-btn:focus {
    outline: 2px solid #ff3333;
    outline-offset: 2px;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .gaming-news-featured-grid {
        border: 1px solid #000;
        background: #fff;
        color: #000;
    }

    .featured-tabs {
        display: none;
    }

    .featured-main-overlay,
    .featured-small-content {
        background: rgba(255, 255, 255, 0.9);
        color: #000;
    }

    .featured-main-title,
    .featured-small-title,
    .featured-small-title a {
        color: #000;
    }
}/* ========================================
   GAMING NEWS PLUGIN - LARGE FEATURED GRID
   ======================================== */

.gaming-news-featured-grid {
    width: 85%;
    margin: 20px 7.5% 25px 7.5%;
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border: 1.5px solid #2a2a2a;
    border-radius: 15px;
    padding: 30px;
    box-sizing: border-box;
}

/* Header Section */
.featured-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #2a2a2a;
}

.featured-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.featured-title i {
    color: #ff3333;
    font-size: 24px;
}

/* Category Tabs */
.featured-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.featured-tab-btn {
    padding: 9px 14px;
    background: rgba(30, 30, 30, 0.6);
    border: 1.5px solid #2a2a2a;
    border-radius: 8px;
    color: #999;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.featured-tab-btn:hover,
.featured-tab-btn.active {
    background: #ff3333;
    border-color: #ff3333;
    color: #fff;
}

/* Main Grid Layout */
.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
}

/* Featured Main Story */
.featured-main {
    position: relative;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #2a2a2a;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
}

.featured-main:hover {
    transform: scale(1.02);
    border-color: #ff3333;
}

.featured-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
}

/* Handle broken images with CSS */
.featured-main-image::before {
    content: '?';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    color: #ff3333;
    opacity: 0.3;
}

.featured-main-image::after {
    content: 'Image not available';
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: #666;
    text-align: center;
}

.featured-main:hover .featured-main-image {
    transform: scale(1.05);
}

.featured-main-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.95));
}

.featured-main-badge {
    display: inline-block;
    padding: 6px 12px;
    background: #ff3333;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.featured-main-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.3;
}

.featured-main-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #ccc;
}

.featured-main-source {
    color: #ff3333;
    font-weight: 600;
}

/* Sidebar Stories */
.featured-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.featured-small {
    position: relative;
    height: 125px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(30, 30, 30, 0.6);
    border: 1.5px solid #2a2a2a;
    transition: all 0.3s ease;
    display: flex;
}

.featured-small:hover {
    border-color: #ff3333;
    transform: translateX(5px);
    background: rgba(255, 51, 51, 0.05);
}

.featured-small-image {
    width: 180px;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    position: relative;
}

/* Handle broken sidebar images */
.featured-small-image::before {
    content: '?';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: #ff3333;
    opacity: 0.3;
}

.featured-small:hover .featured-small-image {
    transform: scale(1.1);
}

.featured-small-content {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.featured-small-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.featured-small-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-small-title a:hover {
    color: #ff3333;
}

.featured-small-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #999;
}

.featured-small-source {
    color: #ff3333;
    font-weight: 600;
}

/* Error State */
.gaming-news-error {
    padding: 30px;
    text-align: center;
    color: #ed4245;
    font-size: 14px;
    background: rgba(237, 66, 69, 0.1);
    border: 1px solid rgba(237, 66, 69, 0.3);
    border-radius: 10px;
}

.gaming-news-error i {
    margin-right: 8px;
}

/* Placeholder Image Styling */
.featured-main-image[src*="placeholder"],
.featured-small-image[src*="placeholder"] {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .featured-main {
        height: 350px;
    }

    .featured-sidebar {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .featured-small {
        height: 200px;
        flex-direction: column;
    }

    .featured-small-image {
        width: 100%;
        height: 120px;
    }
}

@media (max-width: 768px) {
    .gaming-news-featured-grid {
        padding: 20px;
    }

    .featured-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .featured-tabs {
        width: 100%;
        flex-wrap: wrap;
    }

    .featured-tab-btn {
        flex: 1;
        min-width: calc(50% - 5px);
        text-align: center;
    }

    .featured-main {
        height: 300px;
    }

    .featured-main-title {
        font-size: 22px;
    }

    .featured-sidebar {
        grid-template-columns: 1fr;
    }

    .featured-small {
        height: 120px;
        flex-direction: row;
    }

    .featured-small-image {
        width: 140px;
        height: 100%;
    }

    .featured-small-content {
        padding: 12px 15px;
    }

    .featured-small-title {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 480px) {
    .gaming-news-featured-grid {
        padding: 15px;
    }

    .featured-title {
        font-size: 14px;
    }

    .featured-title i {
        font-size: 18px;
    }

    .featured-tab-btn {
        font-size: 11px;
        padding: 6px 12px;
    }

    .featured-main {
        height: 250px;
    }

    .featured-main-overlay {
        padding: 25px 20px;
    }

    .featured-main-title {
        font-size: 18px;
    }

    .featured-main-meta {
        font-size: 11px;
        gap: 10px;
    }

    .featured-small {
        height: 100px;
    }

    .featured-small-image {
        width: 120px;
    }

    .featured-small-content {
        padding: 10px;
    }

    .featured-small-title {
        font-size: 12px;
    }

    .featured-small-meta {
        font-size: 10px;
    }
}

/* ========================================
   LOADING STATE
   ======================================== */

.gaming-news-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 30px;
    color: #999;
    font-size: 14px;
}

.gaming-news-loading i {
    margin-right: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.featured-main:focus,
.featured-small:focus,
.featured-tab-btn:focus {
    outline: 2px solid #ff3333;
    outline-offset: 2px;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .gaming-news-featured-grid {
        border: 1px solid #000;
        background: #fff;
        color: #000;
    }

    .featured-tabs {
        display: none;
    }

    .featured-main-overlay,
    .featured-small-content {
        background: rgba(255, 255, 255, 0.9);
        color: #000;
    }

    .featured-main-title,
    .featured-small-title,
    .featured-small-title a {
        color: #000;
    }
}/* ============================================
   HYBRID D: TWO-ROW FORUM LAYOUT
   ============================================ */

/* Main forum container */
.forum-card {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border: 1.5px solid #2a2a2a;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.forum-card:hover {
    border-color: #ff3333;
    box-shadow: 0 8px 20px rgba(255, 51, 51, 0.1);
}

/* Row 1: Icon + Title + Stats */
.forum-row-1 {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #2a2a2a;
}

.forum-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #ff3333;
}

.forum-info {
    flex: 1;
}

.forum-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #fff;
}

.forum-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forum-title a:hover {
    color: #ff3333;
}

.forum-description {
    color: #999;
    font-size: 13px;
    line-height: 1.4;
}

.forum-stats-vertical {
    display: flex;
    gap: 12px;
}

.stat-pill {
    padding: 8px 14px;
    background: rgba(255, 51, 51, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 51, 51, 0.1);
    text-align: center;
}

.stat-number {
    font-size: 18px;
    font-weight: 700;
    color: #ff3333;
    display: block;
}

.stat-label {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
}

/* Row 2: Subforums + Last Post */
.forum-row-2 {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    align-items: start;
}

/* Subforum Table */
.subforum-table {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.subforum-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(30, 30, 30, 0.4);
    border-radius: 6px;
    border: 1px solid #2a2a2a;
    transition: all 0.2s ease;
    cursor: pointer;
}

.subforum-row:hover {
    background: rgba(255, 51, 51, 0.05);
    border-color: rgba(255, 51, 51, 0.3);
    transform: translateX(2px);
}

.subforum-icon-small {
    width: 28px;
    height: 28px;
    background: rgba(255, 51, 51, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff3333;
    font-size: 12px;
    flex-shrink: 0;
}

.subforum-details {
    flex: 1;
    min-width: 0;
}

.subforum-name {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.subforum-name a {
    color: #fff;
    text-decoration: none;
}

.subforum-name a:hover {
    color: #ff3333;
}

.subforum-count {
    font-size: 10px;
    color: #666;
}

/* Last Post Box */
.lastpost-box {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 16px;
}

.lastpost-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.lastpost-label {
    font-size: 10px;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 0.5px;
}

.lastpost-time-badge {
    background: rgba(255, 51, 51, 0.1);
    border: 1px solid rgba(255, 51, 51, 0.2);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    color: #ff6666;
}

.lastpost-thread {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lastpost-thread a {
    color: #fff;
    text-decoration: none;
}

.lastpost-thread a:hover {
    color: #ff3333;
}

.lastpost-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lastpost-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.lastpost-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lastpost-user {
    color: #ff6666;
    font-weight: 600;
    font-size: 12px;
}

.lastpost-user a {
    color: #ff6666;
    text-decoration: none;
}

.lastpost-user a:hover {
    color: #ff3333;
}

/* No Subforums State */
.no-subforums .forum-row-2 {
    grid-template-columns: 1fr;
}

.no-subforums .lastpost-box {
    max-width: 400px;
}

/* No Last Post State */
.no-lastpost .lastpost-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    color: #666;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 1024px) {
    .forum-row-2 {
        grid-template-columns: 1fr;
    }

    .lastpost-box {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .forum-row-1 {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .forum-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .forum-stats-vertical {
        justify-content: flex-start;
    }

    .subforum-table {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ADDITIONAL FIXES FOR EXISTING CLASSES
   ============================================ */

/* Make forum icon work with existing classes */
.forum-icon-wrapper .forum-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #ff3333;
    border: none;
}

/* Forum status colors */
.forum-icon.forum_on {
    color: #4CAF50;
}

.forum-icon.forum_off {
    color: #ff3333;
}

.forum-icon.forum_offlock,
.forum-icon.forum_onlock {
    color: #999;
}

/* Ensure subforums variable works */
.forum-row-2:empty {
    display: none;
}

/* If no subforums, make last post take full width */
.forum-card:has(.subforum-table:empty) .forum-row-2 {
    grid-template-columns: 1fr;
}

.forum-card:has(.subforum-table:empty) .lastpost-box {
    max-width: 500px;
}

/* Hide empty subforum table */
.subforum-table:empty {
    display: none;
}


/* Avatar wrapper and fallback icon styles */
.lastpost-avatar-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.lastpost-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lastpost-avatar-icon {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff3333, #cc0000);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
}


/* ============================================
/* Make last post box narrower and properly aligned */
.forum-row-2 {
    display: grid;
    grid-template-columns: 1fr 280px; /* Reduced from 320px to 280px */
    gap: 20px;
    align-items: start; /* Changed from start to stretch for equal height */
}

.lastpost-box {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribute content evenly */
    height: 100%; /* Make it stretch to match subforum height */
}

/* Ensure subforum table and lastpost have equal heights */
.subforum-table {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    height: 100%; /* Stretch to fill available space */
}

/* Make lastpost content properly spaced */
.lastpost-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.lastpost-thread {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: auto; /* Push author to bottom */
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1; /* Take up available space */
    padding: 8px 0;
}

.lastpost-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto; /* Stay at bottom */
    padding-top: 12px;
    border-top: 1px solid #2a2a2a;
}


/* ============================================
   FIX LAST POST CARD - CENTER VERTICALLY
   ============================================ */

/* Keep subforum and lastpost at their natural heights, center vertically */
.forum-row-2 {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 20px;
    align-items: center; /* Center vertically instead of stretch */
}

.lastpost-box {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 16px;
    height: auto; /* Natural height, not stretched */
}

/* Subforum table back to normal */
.subforum-table {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    height: auto; /* Natural height */
}

/* Reset lastpost content spacing */
.lastpost-thread {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lastpost-author {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 0; /* Remove extra padding */
    border-top: none; /* Remove border */
}


/* Last Post Preview Styling */
.lastpost-preview {
    font-size: 12px;
    color: #999;
    line-height: 1.4;
    margin: 10px 0;
    padding: 8px;
    background: rgba(20, 20, 20, 0.6);
    border-radius: 6px;
    border-left: 2px solid #ff3333;
    font-style: italic;
}

.lastpost-preview:empty {
    display: none;
}


/* ============================================
   CATEGORY HEADER WITH ICONS
   ============================================ */

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
    border: 1.5px solid #2a2a2a;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
}

.category-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ff3333;
}

.category-title {
    flex: 1;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.category-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.category-title a:hover {
    color: #ff3333;
}

/* Make first forum card under category connect visually */
.category-header + .forum-card {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top: none;
}


/* Category Icon Styling */
.forum-cat-icon {
    display: inline-block;
    margin-right: 8px;
    font-size: 18px;
    color: #ff3333;
}

.forum-cat-icon i {
    vertical-align: middle;
}


/* Category Custom Icon */
.category-custom-icon {
    display: inline-block;
    margin-right: 10px;
    font-size: 20px;
    color: #ff3333;
    vertical-align: middle;
}

.category-custom-icon i {
    vertical-align: middle;
}/* ============================================
   CRITICAL FIX FOR ICONS NOT SHOWING
   ============================================ */

/* Make sure icons inside forum_status display properly */
.forum-icon.forum_status,
.forum-icon-wrapper .forum-icon.forum_status,
.forum-icon-wrapper .forum_status.forum-icon {
    width: 70px !important;
    height: 70px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 32px !important;
}

/* Ensure the <i> tag is visible */
.forum-icon.forum_status i,
.forum-icon-wrapper .forum-icon i,
.forum-icon-wrapper .forum_status i {
    display: inline-block !important;
    font-size: 32px !important;
    color: #ff3333 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Subforum icons */
.subforum-icon-small i {
    display: inline-block !important;
    font-size: 14px !important;
    opacity: 1 !important;
    visibility: visible !important;
}
/* ============================================
   NUCLEAR OPTION - FORCE ICONS TO SHOW
   Added to fix icon display issues
   ============================================ */

/* Force the icon container to show content */
.forum-icon,
.forum-icon.forum_status,
.forum_status.forum-icon {
    width: 70px !important;
    height: 70px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a) !important;
    border-radius: 10px !important;
    font-size: 0 !important;
}

/* Force ALL <i> tags inside to be visible */
.forum-icon i,
.forum-icon.forum_status i,
.forum_status.forum-icon i,
.forum-icon-wrapper i,
.forum-icon-wrapper .forum-icon i,
.forum-icon-wrapper .forum_status i,
div[class*="forum-icon"] i,
div[class*="forum_status"] i {
    display: inline-block !important;
    font-size: 32px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    color: #ff3333 !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
}

/* Subforum icons */
.subforum-icon-small,
.subforum-icon-small i {
    display: inline-block !important;
    font-size: 14px !important;
    color: #ff3333 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Remove any pseudo-elements */
.forum-icon::before,
.forum-icon::after,
.forum_status::before,
.forum_status::after {
    display: none !important;
    content: none !important;
}

/* ============================================
   ICON FIX - FONT AWESOME FONT FAMILY
   ============================================ */

/* Main forum icons */
.forum-icon i,
.forum-icon.forum_status i,
.forum_status.forum-icon i,
.forum-icon-wrapper .forum-icon i,
.forum-icon-wrapper .forum_status i {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    font-size: 32px !important;
    font-style: normal !important;
    line-height: 1 !important;
    color: #ff3333 !important;
    opacity: 1 !important;
    visibility: visible !important;
    -webkit-font-smoothing: antialiased !important;
}

/* Subforum icon container */
.subforum-icon-small {
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

/* Subforum icons - smaller and separate rule */
.subforum-row .subforum-icon-small i,
.subforum-icon-small i {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    font-size: 14px !important;
    font-style: normal !important;
    line-height: 1 !important;
    color: #ff3333 !important;
    opacity: 1 !important;
    visibility: visible !important;
    -webkit-font-smoothing: antialiased !important;
}

/* Font Awesome icon type fixes */
.fa-solid {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

/* ============================================
   CATEGORY ICON STYLING
   ============================================ */

/* Category icon wrapper */
.category-icon-wrapper {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border-radius: 10px;
    flex-shrink: 0;
    margin-right: 15px;
}

/* Category icons */
.category-icon-wrapper i {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    font-size: 24px !important;
    font-style: normal !important;
    line-height: 1 !important;
    color: #ff3333 !important;
    opacity: 1 !important;
    visibility: visible !important;
    -webkit-font-smoothing: antialiased !important;
}

/* ============================================
   FIX CATEGORY TAB ICONS
   ============================================ */

/* Remove default before content on cat-icon */
.cat-icon::before {
    content: none !important;
    display: none !important;
}

/* Force custom icons to show in category tabs */
.cat-icon i {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    font-size: 20px !important;
    font-style: normal !important;
    line-height: 40px !important;
    color: #fff !important;
    opacity: 1 !important;
    visibility: visible !important;
    -webkit-font-smoothing: antialiased !important;
}

/* ============================================
   CATEGORY TAB ICONS - RESPECTS CUSTOM COLORS
   ============================================ */

/* Remove ALL ::before content from category-related elements */
.cat-icon::before,
.category-tab::before,
.tab-underline::before,
.tcat::before {
    content: none !important;
    display: none !important;
}

/* Force Font Awesome on category tab icons - NO color override */
.cat-icon i,
.category-tab i,
.tab-underline i,
.tabs-underline i {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    font-size: 20px !important;
    font-style: normal !important;
    line-height: 40px !important;
    opacity: 1 !important;
    visibility: visible !important;
    -webkit-font-smoothing: antialiased !important;
}

/* Only set default color if no inline style */
.tab-underline i:not([style*="color"]) {
    color: #fff;
}

/* Hide fa-folder class completely */
.fa-folder,
.fa-folder-open {
    display: none !important;
}