/* ============================================
   MODERN GAMING THEME - MyBB CSS
   Mor/Neon Renk Paleti | Performans Odaklı
   Görsel Dosyasız | Responsive Tasarım
   ============================================ */

/* CSS Değişkenleri - Tek Noktadan Kontrol */
:root {
	--primary-bg: #0a0a0f;
	--secondary-bg: #13131a;
	--card-bg: #1a1a24;
	--hover-bg: #252530;
	
	--primary-purple: #8b5cf6;
	--secondary-purple: #a78bfa;
	--neon-pink: #ec4899;
	--neon-cyan: #06b6d4;
	--accent-green: #10b981;
	
	--text-primary: #e5e7eb;
	--text-secondary: #9ca3af;
	--text-muted: #6b7280;
	
	--border-color: #2d2d3a;
	--border-glow: rgba(139, 92, 246, 0.3);
	
	--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
	--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
	--shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
	--shadow-glow: 0 0 20px rgba(139, 92, 246, 0.4);
	
	--radius-sm: 6px;
	--radius-md: 12px;
	--radius-lg: 16px;
	
	--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Base Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	background: linear-gradient(135deg, var(--primary-bg) 0%, #0f0a15 100%);
	background-attachment: fixed;
	color: var(--text-primary);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	line-height: 1.7;
	text-align: center;
	margin: 0;
	overflow-y: scroll;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Link Styles */
a:link,
a:visited {
	color: var(--secondary-purple);
	text-decoration: none;
	transition: var(--transition);
}

a:hover,
a:active {
	color: var(--primary-purple);
	text-decoration: none;
}

/* Container & Wrapper */
#container {
	color: var(--text-primary);
	text-align: left;
	line-height: 1.7;
	margin: 0;
	min-width: auto;
}

.wrapper {
	width: 95%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 15px;
}

@media (min-width: 768px) {
	.wrapper {
		width: 90%;
		padding: 0 20px;
	}
}

/* Header & Logo */
#logo {
	background: linear-gradient(180deg, var(--secondary-bg) 0%, var(--card-bg) 100%);
	padding: 25px 0;
	border-bottom: 2px solid var(--primary-purple);
	box-shadow: var(--shadow-md);
	position: relative;
}

#logo::after {
	content: "";
	position: absolute;
	bottom: -2px;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--neon-pink), var(--primary-purple), var(--neon-cyan), transparent);
	animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% { opacity: 0.5; }
	50% { opacity: 1; }
}

/* Navigation Menu */
#header ul.menu {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

#header ul.menu li {
	margin: 0;
	display: inline-block;
}

#header ul.menu li a {
	padding: 8px 16px;
	display: inline-block;
	line-height: 1.5;
	background: var(--card-bg);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	transition: var(--transition);
	position: relative;
	overflow: hidden;
}

#header ul.menu li a::before {
	content: "▸";
	margin-right: 6px;
	color: var(--primary-purple);
	transition: var(--transition);
}

#header ul.menu li a:hover {
	background: var(--hover-bg);
	border-color: var(--primary-purple);
	box-shadow: var(--shadow-glow);
	transform: translateY(-2px);
}

#header ul.menu li a:hover::before {
	color: var(--neon-pink);
	transform: translateX(3px);
}

/* Top Links */
#logo ul.top_links {
	font-weight: 600;
	text-align: right;
	margin: 0 0 15px 0;
}

/* Panel Styles */
#panel .upper {
	background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--card-bg) 100%);
	color: var(--text-primary);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md) var(--radius-md) 0 0;
	padding: 12px 16px;
	clear: both;
	box-shadow: var(--shadow-sm);
}

#panel .upper a:link,
#panel .upper a:visited,
#panel .upper a:hover,
#panel .upper a:active {
	color: var(--text-primary);
	font-weight: 600;
}

#panel .upper a.logout,
#panel .upper a.login,
#panel .upper a.register,
#panel .upper a.lost_password {
	padding: 6px 14px;
	margin-left: 8px;
	background: var(--primary-purple);
	border-radius: var(--radius-sm);
	transition: var(--transition);
	display: inline-block;
}

#panel .upper a.logout::after,
#panel .upper a.register::after {
	content: " →";
	margin-left: 4px;
}

#panel .upper a.login::before,
#panel .upper a.lost_password::before {
	content: "← ";
	margin-right: 4px;
}

#panel .upper a:hover {
	background: var(--neon-pink);
	box-shadow: 0 0 16px rgba(236, 72, 153, 0.5);
	transform: translateY(-1px);
}

#panel .lower {
	background: var(--card-bg);
	color: var(--text-secondary);
	border: 1px solid var(--border-color);
	border-top: none;
	border-radius: 0 0 var(--radius-md) var(--radius-md);
	padding: 10px 16px;
	margin-bottom: 20px;
}

#panel .lower ul.panel_links {
	float: left;
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

#panel .lower ul.user_links {
	float: right;
}

#panel .lower a {
	color: var(--text-secondary);
	padding: 4px 10px;
	border-radius: var(--radius-sm);
	transition: var(--transition);
}

#panel .lower a::before {
	content: "◆ ";
	color: var(--primary-purple);
	font-size: 10px;
}

#panel .lower a:hover {
	color: var(--text-primary);
	background: var(--hover-bg);
}

/* Content Area */
#content {
	background: transparent;
	padding: 20px 0;
	overflow: hidden;
}

/* Search Box */
#search {
	border: 0;
	padding: 0;
	margin: 0;
	float: right;
	vertical-align: middle;
}

#search input.textbox {
	background: var(--card-bg);
	border: 1px solid var(--border-color);
	color: var(--text-primary);
	padding: 8px 12px;
	border-radius: var(--radius-sm) 0 0 var(--radius-sm);
	outline: none;
	transition: var(--transition);
}

#search input.textbox:focus {
	border-color: var(--primary-purple);
	box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

#search input.button {
	background: linear-gradient(135deg, var(--primary-purple) 0%, var(--neon-pink) 100%);
	color: var(--text-primary);
	border: 1px solid var(--primary-purple);
	padding: 8px 16px;
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	cursor: pointer;
	font-weight: 600;
	transition: var(--transition);
}

#search input.button:hover {
	box-shadow: 0 0 16px rgba(139, 92, 246, 0.6);
	transform: translateY(-1px);
}

/* Modern Table Styles - Card Based */
.tborder {
	background: var(--card-bg);
	width: 100%;
	margin: 0 auto 20px;
	border: 1px solid var(--border-color);
	border-radius: var(--radius-lg);
	padding: 0;
	box-shadow: var(--shadow-md);
	overflow: hidden;
}

table {
	color: var(--text-primary);
	font-size: 15px;
	width: 100%;
	border-collapse: collapse;
}

/* Table Header */
.thead {
	background: linear-gradient(135deg, var(--primary-purple) 0%, #6d28d9 100%);
	color: #ffffff;
	border: none;
	padding: 16px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-size: 13px;
	position: relative;
}

.thead::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.thead a:link,
.thead a:visited,
.thead a:hover,
.thead a:active {
	color: #ffffff;
	text-decoration: none;
}

/* Table Category */
.tcat {
	background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--card-bg) 100%);
	color: var(--text-primary);
	border-top: 1px solid var(--border-color);
	border-bottom: 1px solid var(--border-color);
	padding: 12px 16px;
	font-size: 14px;
	font-weight: 600;
}

.tcat a:link,
.tcat a:visited,
.tcat a:hover,
.tcat a:active {
	color: var(--text-primary);
}

/* Table Rows */
.trow1,
.trow2 {
	border: none;
	border-bottom: 1px solid rgba(45, 45, 58, 0.5);
	transition: var(--transition);
}

.trow1 {
	background: rgba(26, 26, 36, 0.4);
}

.trow2 {
	background: rgba(19, 19, 26, 0.4);
}

.trow1:hover,
.trow2:hover {
	background: var(--hover-bg);
	box-shadow: inset 3px 0 0 var(--primary-purple);
}

.trow_shaded {
	background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
	border: 1px solid rgba(139, 92, 246, 0.3);
}

.trow_selected,
tr.trow_selected td {
	background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(167, 139, 250, 0.2) 100%);
	color: var(--text-primary);
	border-color: var(--primary-purple);
	box-shadow: inset 3px 0 0 var(--neon-pink);
}

.trow_sep {
	background: var(--secondary-bg);
	color: var(--text-primary);
	border-bottom: 2px solid var(--primary-purple);
	padding: 10px 16px;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Table Footer */
.tfoot {
	border-top: 1px solid var(--border-color);
	padding: 12px 16px;
	background: var(--secondary-bg);
	color: var(--text-secondary);
}

.tfoot a:link,
.tfoot a:visited {
	color: var(--text-secondary);
	text-decoration: none;
}

.tfoot a:hover,
.tfoot a:active {
	color: var(--primary-purple);
	text-decoration: none;
}

/* Forum Status Icons - Pure CSS */
.forum_status {
	height: 40px;
	width: 40px;
	display: inline-block;
	border-radius: 50%;
	position: relative;
	box-shadow: var(--shadow-sm);
	transition: var(--transition);
}

.forum_status::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 16px;
	height: 16px;
	border-radius: 50%;
}

.forum_on {
	background: linear-gradient(135deg, var(--accent-green) 0%, #059669 100%);
	box-shadow: 0 0 16px rgba(16, 185, 129, 0.5);
}

.forum_on::before {
	background: #ffffff;
	animation: pulse-icon 2s infinite;
}

.forum_off {
	background: linear-gradient(135deg, var(--text-muted) 0%, #4b5563 100%);
}

.forum_off::before {
	background: var(--secondary-bg);
}

.forum_offclose {
	background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.forum_offclose::before {
	content: "✕";
	background: none;
	color: #ffffff;
	font-size: 18px;
	font-weight: bold;
	width: auto;
	height: auto;
}

.forum_offlink {
	background: linear-gradient(135deg, var(--neon-cyan) 0%, #0891b2 100%);
}

.forum_offlink::before {
	content: "→";
	background: none;
	color: #ffffff;
	font-size: 18px;
	font-weight: bold;
	width: auto;
	height: auto;
}

@keyframes pulse-icon {
	0%, 100% { transform: translate(-50%, -50%) scale(1); }
	50% { transform: translate(-50%, -50%) scale(1.2); }
}

/* Subforum Icons */
.subforumicon {
	height: 12px;
	width: 12px;
	display: inline-block;
	margin: 0 6px;
	border-radius: 50%;
	position: relative;
}

.subforum_minion {
	background: var(--accent-green);
	box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.subforum_minioff {
	background: var(--text-muted);
}

.subforum_minioffclose {
	background: #ef4444;
}

.subforum_miniofflink {
	background: var(--neon-cyan);
}

/* Form Elements - Modern & Clean */
input.textbox,
textarea,
select {
	background: var(--card-bg);
	color: var(--text-primary);
	border: 1px solid var(--border-color);
	padding: 10px 14px;
	outline: 0;
	font-size: 15px;
	font-family: inherit;
	border-radius: var(--radius-sm);
	transition: var(--transition);
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

input.textbox:focus,
textarea:focus,
select:focus {
	border-color: var(--primary-purple);
	box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
	background: var(--secondary-bg);
}

textarea {
	line-height: 1.7;
	resize: vertical;
	min-height: 120px;
}

select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b5cf6' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 36px;
}

/* Modern Buttons */
button,
input.button {
	padding: 10px 20px;
	cursor: pointer;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	background: linear-gradient(135deg, var(--primary-purple) 0%, #7c3aed 100%);
	border: none;
	color: #ffffff;
	outline: 0;
	border-radius: var(--radius-sm);
	transition: var(--transition);
	box-shadow: var(--shadow-sm);
	position: relative;
	overflow: hidden;
}

button::before,
input.button::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	transform: translate(-50%, -50%);
	transition: width 0.6s, height 0.6s;
}

button:hover::before,
input.button:hover::before {
	width: 300px;
	height: 300px;
}

button:hover,
input.button:hover {
	box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
	transform: translateY(-2px);
}

button:active,
input.button:active {
	transform: translateY(0);
}

/* Form Validation */
input.error,
textarea.error,
select.error {
	border-color: #ef4444;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

input.valid,
textarea.valid,
select.valid {
	border-color: var(--accent-green);
	box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

label.error {
	color: #ef4444;
	margin: 8px 0;
	padding: 0;
	display: block;
	font-weight: 600;
	font-size: 13px;
}

/* Fieldset */
fieldset {
	padding: 20px;
	border: 1px solid var(--border-color);
	margin: 0 0 20px 0;
	border-radius: var(--radius-md);
	background: rgba(26, 26, 36, 0.4);
}

legend {
	padding: 0 12px;
	font-weight: 600;
	color: var(--primary-purple);
}

/* Blockquote & Code */
blockquote {
	border-left: 4px solid var(--primary-purple);
	margin: 16px 0;
	background: var(--secondary-bg);
	padding: 16px;
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-sm);
}

blockquote cite {
	font-weight: 600;
	border-bottom: 1px solid var(--border-color);
	font-style: normal;
	display: block;
	padding-bottom: 8px;
	margin: 0 0 12px 0;
	color: var(--primary-purple);
}

blockquote cite > span {
	float: right;
	font-weight: normal;
	font-size: 13px;
	color: var(--text-muted);
}

.codeblock {
	background: var(--primary-bg);
	border: 1px solid var(--border-color);
	padding: 16px;
	border-radius: var(--radius-md);
	margin: 16px 0;
	box-shadow: var(--shadow-sm);
}

.codeblock .title {
	border-bottom: 1px solid var(--border-color);
	font-weight: 600;
	padding-bottom: 8px;
	margin: 0 0 12px 0;
	color: var(--neon-cyan);
}

.codeblock code {
	overflow: auto;
	height: auto;
	max-height: 400px;
	display: block;
	font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
	font-size: 14px;
	line-height: 1.6;
	color: var(--text-secondary);
}

/* Posts */
.post {
	overflow: hidden;
	margin-bottom: 20px;
	background: var(--card-bg);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
	transition: var(--transition);
}

.post:hover {
	box-shadow: var(--shadow-lg);
	border-color: rgba(139, 92, 246, 0.4);
}

.post .post_author {
	background: var(--secondary-bg);
	padding: 16px;
	border-bottom: 1px solid var(--border-color);
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.post .post_author div.author_avatar {
	flex-shrink: 0;
}

.post .post_author div.author_avatar img {
	padding: 4px;
	border: 2px solid var(--primary-purple);
	background: var(--card-bg);
	border-radius: var(--radius-md);
	box-shadow: 0 0 16px rgba(139, 92, 246, 0.3);
	max-width: 80px;
	height: auto;
}

.post .post_author div.author_information {
	flex: 1;
	min-width: 150px;
}

.post .post_author div.author_statistics {
	font-size: 13px;
	color: var(--text-muted);
	line-height: 1.6;
	margin-left: auto;
}

.post .post_head {
	font-size: 13px;
	padding: 12px 16px;
	border-bottom: 1px dashed rgba(45, 45, 58, 0.5);
	background: rgba(19, 19, 26, 0.4);
}

.post .post_head span.post_date {
	color: var(--text-muted);
}

.post .post_head span.edited_post {
	font-size: 12px;
	color: var(--text-muted);
	font-style: italic;
}

.post_content {
	padding: 20px;
	font-size: 15px;
	line-height: 1.8;
}

.post_body {
	font-size: 15px;
	padding: 0;
}

.post_content .signature {
	margin-top: 16px;
	border-top: 1px dashed var(--border-color);
	padding: 16px 0 0 0;
	font-size: 13px;
	color: var(--text-muted);
}

.post .post_meta {
	margin: 12px 0;
	font-size: 13px;
	color: var(--text-muted);
}

.post_controls {
	clear: both;
	background: var(--secondary-bg);
	border-top: 1px solid var(--border-color);
	padding: 12px 16px;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

/* Post Buttons */
.postbit_buttons > a:link,
.postbit_buttons > a:hover,
.postbit_buttons > a:visited,
.postbit_buttons > a:active {
	display: inline-block;
	padding: 8px 14px;
	margin: 0;
	font-size: 13px;
	background: var(--card-bg);
	border: 1px solid var(--border-color);
	color: var(--text-secondary);
	border-radius: var(--radius-sm);
	transition: var(--transition);
	font-weight: 500;
}

.postbit_buttons > a:hover {
	background: var(--primary-purple);
	border-color: var(--primary-purple);
	color: #ffffff;
	box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
	transform: translateY(-1px);
}

.postbit_buttons a span::before {
	content: "▸ ";
	margin-right: 4px;
}

/* Action Buttons */
a.button:link,
a.button:hover,
a.button:visited,
a.button:active {
	background: linear-gradient(135deg, var(--primary-purple) 0%, var(--neon-pink) 100%);
	color: #ffffff;
	display: inline-block;
	padding: 12px 24px;
	margin: 4px;
	border: none;
	font-size: 15px;
	font-weight: 600;
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-md);
	transition: var(--transition);
}

a.button:hover {
	box-shadow: 0 0 24px rgba(139, 92, 246, 0.6);
	transform: translateY(-2px);
}

a.button span::before {
	content: "⚡ ";
	margin-right: 6px;
}

/* Pagination */
.pagination {
	font-size: 14px;
	padding: 16px 0;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.pagination .pages {
	font-weight: 600;
	color: var(--text-secondary);
	margin-right: 12px;
}

.pagination .pagination_current,
.pagination a {
	padding: 8px 14px;
	margin: 0;
	border-radius: var(--radius-sm);
	transition: var(--transition);
	display: inline-block;
}

.pagination a {
	background: var(--card-bg);
	border: 1px solid var(--border-color);
	color: var(--text-secondary);
}

.pagination .pagination_current {
	background: var(--primary-purple);
	color: #ffffff;
	border: 1px solid var(--primary-purple);
	font-weight: 600;
	box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}

.pagination a:hover {
	background: var(--hover-bg);
	border-color: var(--primary-purple);
	color: var(--primary-purple);
	transform: translateY(-1px);
}

/* Navigation Breadcrumb */
.navigation {
	color: var(--text-secondary);
	font-size: 14px;
	padding: 12px 0;
}

.navigation a:link,
.navigation a:visited {
	text-decoration: none;
	color: var(--text-secondary);
	transition: var(--transition);
}

.navigation a:hover,
.navigation a:active {
	color: var(--primary-purple);
	text-decoration: none;
}

.navigation .active {
	color: var(--text-primary);
	font-weight: 600;
}

/* Footer */
#footer {
	clear: both;
	margin-top: 40px;
}

#footer ul.menu {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	justify-content: center;
}

#footer ul.menu li {
	margin: 0;
	display: inline-block;
}

#footer .upper {
	background: var(--secondary-bg);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md) var(--radius-md) 0 0;
	padding: 16px;
	font-size: 14px;
	overflow: hidden;
}

#footer a:link,
#footer a:visited {
	color: var(--text-secondary);
	transition: var(--transition);
}

#footer a:hover,
#footer a:active {
	color: var(--primary-purple);
}

#footer .upper .language,
#footer .upper .theme {
	float: right;
	margin: 0 0 0 16px;
}

#footer .upper ul.bottom_links {
	float: left;
	margin: 0;
}

#footer .lower {
	color: var(--text-muted);
	padding: 16px;
	background: var(--primary-bg);
	border: 1px solid var(--border-color);
	border-top: none;
	border-radius: 0 0 var(--radius-md) var(--radius-md);
	font-size: 13px;
	overflow: hidden;
}

#footer .lower #current_time {
	float: right;
	color: var(--text-muted);
}

/* Alerts & Messages */
.pm_alert {
	background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(167, 139, 250, 0.2) 100%);
	border: 1px solid var(--primary-purple);
	border-left: 4px solid var(--primary-purple);
	text-align: left;
	padding: 16px 20px;
	margin-bottom: 20px;
	font-size: 14px;
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
}

.red_alert {
	background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.2) 100%);
	border: 1px solid #ef4444;
	border-left: 4px solid #ef4444;
	color: #fca5a5;
	text-align: left;
	padding: 16px 20px;
	margin-bottom: 20px;
	font-size: 14px;
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
}

.red_alert a {
	color: #fca5a5;
	font-weight: 600;
}

div.error {
	padding: 16px 20px;
	border: 2px solid #f59e0b;
	border-left: 4px solid #f59e0b;
	background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.2) 100%);
	font-size: 14px;
	border-radius: var(--radius-md);
	margin: 20px 0;
	box-shadow: var(--shadow-sm);
}

div.error p {
	margin: 0;
	color: var(--text-primary);
	font-weight: normal;
}

div.error p em {
	font-style: normal;
	font-weight: 600;
	display: block;
	color: #fbbf24;
	margin-bottom: 8px;
}

div.error p em::before {
	content: "⚠ ";
	margin-right: 6px;
}

.success_message {
	color: var(--accent-green);
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 12px;
}

.success_message::before {
	content: "✓ ";
	margin-right: 4px;
}

.error_message {
	color: #ef4444;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 12px;
}

.error_message::before {
	content: "✕ ";
	margin-right: 4px;
}

/* Reputation */
.trow_reputation_positive {
	background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
	border-left: 3px solid var(--accent-green);
}

.trow_reputation_negative {
	background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
	border-left: 3px solid #ef4444;
}

.reputation_positive {
	color: var(--accent-green);
	font-weight: 600;
}

.reputation_neutral {
	color: var(--text-muted);
}

.reputation_negative {
	color: #ef4444;
	font-weight: 600;
}

.repbox {
	font-size: 18px;
	font-weight: 700;
	padding: 8px 16px;
	border-radius: var(--radius-sm);
	display: inline-block;
}

._neutral {
	background: var(--secondary-bg);
	color: var(--text-muted);
	border: 1px solid var(--border-color);
}

._minus {
	background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.2) 100%);
	color: #fca5a5;
	border: 1px solid #ef4444;
}

._plus {
	background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.2) 100%);
	color: #6ee7b7;
	border: 1px solid var(--accent-green);
}

/* User Status */
.online {
	color: var(--accent-green);
	font-weight: 600;
}

.online::before {
	content: "● ";
	margin-right: 4px;
}

.offline {
	color: var(--text-muted);
}

.offline::before {
	content: "○ ";
	margin-right: 4px;
}

/* Popup Menu - Checkbox Hack */
.popup_menu {
	background: var(--card-bg);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
}

.popup_menu .popup_item {
	background: transparent;
	color: var(--text-primary);
	padding: 12px 16px;
	display: block;
	transition: var(--transition);
	border-bottom: 1px solid rgba(45, 45, 58, 0.5);
}

.popup_menu .popup_item:last-child {
	border-bottom: none;
}

.popup_menu .popup_item:hover {
	background: var(--primary-purple);
	color: #ffffff;
}

/* Utility Classes */
.clear {
	clear: both;
}

.float_left {
	float: left;
}

.float_right {
	float: right;
}

.hidden {
	display: none;
}

.smalltext {
	font-size: 13px;
}

.largetext {
	font-size: 18px;
	font-weight: 700;
}

.highlight {
	background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(236, 72, 153, 0.3) 100%);
	padding: 4px 8px;
	border-radius: 4px;
	font-weight: 600;
}

/* Poll Bar */
.pollbar {
	background: linear-gradient(90deg, var(--primary-purple) 0%, var(--neon-pink) 100%);
	border: none;
	height: 24px;
	border-radius: var(--radius-sm);
	position: relative;
	overflow: hidden;
	box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}

.pollbar::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
	animation: shimmer 2s infinite;
}

@keyframes shimmer {
	0% { transform: translateX(-100%); }
	100% { transform: translateX(100%); }
}

.pollbar .percent {
	display: none;
}

/* Editor */
.editor {
	background: var(--card-bg);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	overflow: hidden;
}

.editor_control_bar {
	background: var(--secondary-bg);
	border-bottom: 1px solid var(--border-color);
	padding: 8px;
}

/* Image Scaling */
.scaleimages img {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius-sm);
}

img {
	border: none;
}

img.attachment {
	border: 1px solid var(--border-color);
	padding: 4px;
	border-radius: var(--radius-sm);
	background: var(--card-bg);
}

/* Horizontal Rule */
hr {
	background: var(--border-color);
	color: var(--border-color);
	height: 1px;
	border: 0;
	margin: 20px 0;
}

/* Thread Legend */
.thread_legend,
.thread_legend dd {
	margin: 0;
	padding: 0;
}

.thread_legend dd {
	padding: 8px 12px;
	margin-right: 12px;
	background: var(--card-bg);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	display: inline-block;
	margin-bottom: 8px;
}

.forum_legend,
.forum_legend dt,
.forum_legend dd {
	margin: 0;
	padding: 0;
}

.forum_legend dd {
	float: left;
	margin-right: 12px;
	margin-top: 8px;
	padding: 8px 12px;
	background: var(--card-bg);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
}

.forum_legend dt {
	margin-right: 12px;
	float: left;
	margin-top: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
	body {
		font-size: 14px;
	}
	
	.wrapper {
		width: 100%;
		padding: 0 10px;
	}
	
	#logo {
		padding: 15px 0;
	}
	
	#header ul.menu {
		flex-direction: column;
		gap: 6px;
	}
	
	#header ul.menu li a {
		display: block;
		text-align: center;
	}
	
	.post .post_author {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.post .post_author div.author_statistics {
		margin-left: 0;
		margin-top: 12px;
		width: 100%;
	}
	
	#panel .lower ul.panel_links,
	#panel .lower ul.user_links {
		float: none;
		display: flex;
		flex-direction: column;
		gap: 6px;
	}
	
	#footer .upper .language,
	#footer .upper .theme,
	#footer .upper ul.bottom_links {
		float: none;
		margin: 8px 0;
	}
	
	.pagination {
		justify-content: center;
	}
	
	a.button {
		display: block;
		text-align: center;
		margin: 8px 0;
	}
}

@media (max-width: 480px) {
	body {
		font-size: 13px;
	}
	
	.post_content {
		padding: 14px;
	}
	
	.forum_status {
		height: 32px;
		width: 32px;
	}
	
	.forum_status::before {
		width: 12px;
		height: 12px;
	}
}

/* Performance Optimizations */
* {
	-webkit-tap-highlight-color: rgba(139, 92, 246, 0.2);
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* Scrollbar Styling - Webkit Browsers */
::-webkit-scrollbar {
	width: 12px;
	height: 12px;
}

::-webkit-scrollbar-track {
	background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
	background: var(--primary-purple);
	border-radius: 6px;
	border: 2px solid var(--primary-bg);
}

::-webkit-scrollbar-thumb:hover {
	background: var(--secondary-purple);
}

/* Firefox Scrollbar */
* {
	scrollbar-width: thin;
	scrollbar-color: var(--primary-purple) var(--primary-bg);
}

/* Selection Color */
::selection {
	background: rgba(139, 92, 246, 0.4);
	color: #ffffff;
}

::-moz-selection {
	background: rgba(139, 92, 246, 0.4);
	color: #ffffff;
}

/* Loading Animation - Optional */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.tborder,
.post {
	animation: fadeIn 0.4s ease-out;
}

/* Print Styles */
@media print {
	body {
		background: white;
		color: black;
	}
	
	.no-print,
	#panel,
	#footer,
	.post_controls,
	.postbit_buttons {
		display: none !important;
	}
}