#panel .header-upper {
	padding: 0 !important;
	margin: 0 !important;
	background: #303030;
}
#panel .header-upper .wrapper {
	max-width: 100% !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

.market-main-header {
	display: grid;
	grid-template-rows: 46px;
	align-items: center;
	width: 100%;
}

.grid-6 {
	grid-template-columns: repeat(6, 1fr);
}

.grid-7{
	grid-template-columns: repeat(7, 1fr);
}

.link-nav {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100%
}

.link-nav > a {
	display: flex;
	min-height: 47px;
	width: 100%;
	justify-content: center;
	align-items: center;
	gap: 4px;
	padding: 0 !important;
	margin: 0 !important;
}

.link-nav > a:hover {
	text-decoration: none;
	background: var(--hover-background);
}

.link-nav:not(:last-child) {
	border-right: 0.5px solid #666666;
}

.header-guest {
	position: relative;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	padding: 15px 0;
	padding-left: 50px;
	background: #92966e;
	color: white;
}

.header-guest:after {
	content: '';
	top: 0;
	left: 0;
	width: 55px;
	position: absolute;
	height: 100%;clip-path: polygon(0% 0%, 61% 0, 100% 50%, 64% 100%, 0% 100%);
	background: #7d824e;
	box-shadow: 6px 9px 10px #444;
	z-index: 1;
}

.header-guest  .login , .header-guest  .register{
	--color: #ebebeb;
	color: var(--color) !important;
	font-weight: 900;
	font-size: 14px;
	padding: 2px 6px;
	border: 2px solid var(--color);
	margin: 0 2px;
}
.fancybox-bhtton {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	width: 100%;
}
.fancybox-button div,  .fancybox-button div svg{
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	width: 100%;
}

/* -------------------------------------------------------------------------
   Community skin refresh
   A social-first surface layered over the native MyBB markup. The original
   color tokens remain the source of truth; these variables only make the
   surfaces consistent across the header, feed, profile and forum views.
   ------------------------------------------------------------------------- */
:root {
	--community-blue: #0072bc;
	--community-blue-dark: #005b96;
	--community-olive: #92966e;
	--community-olive-dark: #7d824e;
	--community-ink: #1d2733;
	--community-muted: #66727f;
	--community-bg: #f0f2f5;
	--community-surface: #ffffff;
	--community-border: #e1e6eb;
	--community-shadow: 0 8px 24px rgba(25, 39, 52, .07);
	--community-radius: 14px;
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--community-bg);
	color: var(--community-ink);
	font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.55;
}

body::before {
	background: linear-gradient(90deg, var(--community-olive-dark), var(--community-blue), var(--community-olive));
	height: 3px;
	visibility: visible;
	z-index: 10001;
	animation: community-progress 3s ease-in-out infinite;
}

@keyframes community-progress {
	0%, 100% { opacity: .65; transform: scaleX(.35); transform-origin: left; }
	50% { opacity: 1; transform: scaleX(1); transform-origin: left; }
}

#container {
	min-width: 0;
	color: var(--community-ink);
	font-family: inherit;
}

.wrapper {
	width: min(1180px, calc(100% - 32px));
	min-width: 0;
	max-width: 1180px;
}

#logo {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(255, 255, 255, .94);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	padding: 9px 0;
	border-bottom: 1px solid var(--community-border);
	box-shadow: 0 2px 16px rgba(29, 39, 51, .06);
}

#logo .wrapper {
	display: flex;
	align-items: center;
	gap: 18px;
}

#logo img {
	width: 184px;
	height: 44px;
	object-fit: contain;
	object-position: left center;
	margin: 0;
}

.social-brand {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-right: auto;
	color: var(--community-muted);
	font-size: 12px;
	letter-spacing: .04em;
	text-transform: uppercase;
	white-space: nowrap;
}

.social-brand strong {
	color: var(--community-ink);
	font-size: 12px;
	letter-spacing: .12em;
}

.social-eyebrow {
	color: var(--community-blue);
	font-weight: 800;
}

.social-live-pill,
.presence-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-radius: 999px;
	background: #edf7f1;
	color: #237548;
	padding: 5px 9px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
}

.social-live-pill i,
.presence-pill i,
[data-live-indicator] i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #35b86b;
	box-shadow: 0 0 0 3px rgba(53, 184, 107, .15);
}

#logo ul.top_links {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
}

#logo ul.top_links li {
	margin: 0;
}

#logo ul.top_links li a {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	border-radius: 8px;
	padding: 0 10px 0 28px;
	color: var(--community-muted);
	font-size: 12px;
	transition: background .2s ease, color .2s ease, transform .2s ease;
}

#logo ul.top_links li a:hover,
#logo ul.top_links li a:focus {
	background: #edf3f8;
	color: var(--community-blue);
	text-decoration: none;
	transform: translateY(-1px);
}

#panel .header-upper {
	background: var(--community-surface);
	border-top: 0;
	border-bottom: 1px solid var(--community-border);
	color: var(--community-ink);
}

.market-main-header {
	grid-template-rows: 52px;
}

.link-nav > a {
	min-height: 52px;
	color: var(--community-muted) !important;
	font-size: 13px;
	font-weight: 700;
	transition: background .2s ease, color .2s ease;
}

.link-nav > a:hover,
.link-nav > a:focus {
	background: #eef5fa;
	color: var(--community-blue) !important;
	text-decoration: none;
}

.link-nav > a i {
	color: var(--community-blue);
	font-size: 15px;
}

.header-guest {
	min-height: 52px;
	padding: 0 18px;
	background: linear-gradient(135deg, var(--community-olive), var(--community-olive-dark));
	color: #fff;
}

.header-guest:after {
	display: none;
}

.header-guest .welcome {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 12px;
	white-space: nowrap;
}

.header-guest .login,
.header-guest .register {
	border: 0;
	border-radius: 999px;
	background: rgba(255,255,255,.17);
	color: #fff !important;
	font-size: 12px;
	padding: 7px 11px;
	margin: 0;
	transition: background .2s ease, transform .2s ease;
}

.header-guest .register {
	background: #fff;
	color: var(--community-olive-dark) !important;
}

.header-guest .login:hover,
.header-guest .register:hover {
	transform: translateY(-1px);
	text-decoration: none;
}

#content {
	background: transparent;
	padding: 22px 0 42px;
	overflow: visible;
}

.social-homebar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin: 0 0 18px;
	padding: 18px 20px;
	background: linear-gradient(135deg, #fff 0%, #f8fbfd 100%);
	border: 1px solid var(--community-border);
	border-radius: var(--community-radius);
	box-shadow: var(--community-shadow);
}

.social-homebar h1,
.social-homebar p {
	margin: 0;
}

.social-homebar h1 {
	font-size: clamp(20px, 3vw, 28px);
	letter-spacing: -.03em;
}

.social-homebar p {
	margin-top: 4px;
	color: var(--community-muted);
	font-size: 13px;
}

.social-homebar-copy {
	display: flex;
	align-items: center;
	gap: 12px;
}

.social-avatar {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--community-blue), var(--community-olive));
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	box-shadow: 0 0 0 4px #e9f2f8;
}

.social-filter-tabs {
	display: flex;
	gap: 6px;
}

.social-filter-tabs button,
.social-action,
.social-composer {
	border: 1px solid var(--community-border);
	border-radius: 9px;
	background: #fff;
	color: var(--community-muted);
	cursor: pointer;
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.social-filter-tabs button {
	padding: 8px 12px;
}

.social-filter-tabs button:hover,
.social-filter-tabs button.is-active,
.social-filter-tabs button:focus {
	background: #eaf4fb;
	border-color: #b8d8ec;
	color: var(--community-blue);
	outline: none;
}

.social-feed-layout {
	display: grid;
	grid-template-columns: 190px minmax(0, 1fr) 220px;
	gap: 18px;
	align-items: start;
}

.social-feed-main {
	min-width: 0;
}

.social-rail {
	position: sticky;
	top: 142px;
	padding: 16px;
	background: rgba(255,255,255,.82);
	border: 1px solid var(--community-border);
	border-radius: var(--community-radius);
	box-shadow: 0 4px 18px rgba(25,39,52,.04);
}

.social-rail h3 {
	margin: 0 0 12px;
	color: var(--community-ink);
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.social-rail a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 8px;
	border-radius: 8px;
	color: var(--community-muted);
	font-size: 12px;
	font-weight: 700;
	transition: background .2s ease, color .2s ease;
}

.social-rail a:hover {
	background: #eef5fa;
	color: var(--community-blue);
	text-decoration: none;
}

.social-rail .rail-count {
	margin-left: auto;
	color: var(--community-blue);
	font-size: 11px;
}

.social-rail .rail-divider {
	height: 1px;
	margin: 14px 0;
	background: var(--community-border);
}

.social-composer-card,
.social-story-strip {
	margin-bottom: 18px;
	padding: 16px;
	background: var(--community-surface);
	border: 1px solid var(--community-border);
	border-radius: var(--community-radius);
	box-shadow: var(--community-shadow);
}

.social-composer-card {
	display: flex;
	align-items: center;
	gap: 12px;
}

.social-composer {
	flex: 1;
	padding: 11px 14px;
	text-align: left;
}

.social-composer:hover,
.social-composer:focus {
	border-color: #a9cee5;
	background: #f7fbfe;
	color: var(--community-blue);
	outline: none;
}

.social-composer.is-open {
	border-color: var(--community-blue);
	box-shadow: 0 0 0 3px rgba(0,114,188,.1);
}

.social-story-strip {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 9px;
	overflow: hidden;
}

.social-story-card {
	position: relative;
	min-height: 142px;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
	padding: 11px;
	border-radius: 11px;
	background-position: center;
	background-size: cover;
	color: #fff;
	isolation: isolate;
}

.social-story-card:after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(20,31,42,.02) 20%, rgba(20,31,42,.78) 100%);
}

.social-story-card span {
	font-size: 12px;
	font-weight: 800;
	text-shadow: 0 1px 4px rgba(0,0,0,.45);
}

.social-story-card small {
	display: block;
	margin-top: 2px;
	font-size: 10px;
	font-weight: 500;
	opacity: .85;
}

.tborder {
	border: 1px solid var(--community-border);
	border-radius: var(--community-radius);
	background: var(--community-surface);
	box-shadow: var(--community-shadow);
	overflow: hidden;
}

.tborder + .tborder,
table.tborder + table.tborder {
	margin-top: 16px;
}

.thead {
	background: linear-gradient(135deg, var(--community-blue), var(--community-blue-dark));
	border: 0;
	padding: 13px 16px;
}

.tcat {
	background: #f7f9fb;
	color: var(--community-muted);
	border-top: 1px solid var(--community-border);
	border-bottom: 1px solid var(--community-border);
	padding: 10px 12px;
}

.trow1,
.trow2 {
	background: #fff;
	border-color: #f0f2f5;
	transition: background .2s ease;
}

.trow1:hover,
.trow2:hover {
	background: #fbfdff;
}

table.tborder td {
	padding: 12px;
}

table.tborder .thead td {
	padding: 13px 16px;
}

.post,
.forumdisplay_row {
	transition: transform .2s ease, box-shadow .2s ease;
}

.post:hover {
	box-shadow: inset 3px 0 0 var(--community-blue);
}

.social-action {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 10px;
	background: transparent;
	border-color: transparent;
}

.social-action:hover,
.social-action:focus,
.social-action.is-active {
	background: #eaf4fb;
	border-color: #cce3f2;
	color: var(--community-blue);
	outline: none;
	transform: translateY(-1px);
}

.social-action.is-active i {
	animation: social-pop .35s ease;
}

@keyframes social-pop {
	50% { transform: scale(1.35); }
}

.presence-avatar {
	position: relative;
}

.presence-avatar:after {
	content: "";
	position: absolute;
	right: -1px;
	bottom: 0;
	width: 9px;
	height: 9px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #35b86b;
}

[data-live-indicator].is-connecting i {
	background: #f2a555;
	box-shadow: 0 0 0 3px rgba(242,165,85,.15);
}

[data-live-indicator].is-offline i {
	background: #a6afb8;
	box-shadow: none;
}

.community-toast {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 10002;
	max-width: 310px;
	padding: 12px 15px;
	border: 1px solid var(--community-border);
	border-radius: 10px;
	background: #1d2733;
	color: #fff;
	box-shadow: 0 12px 30px rgba(0,0,0,.18);
	font-size: 12px;
	font-weight: 700;
	opacity: 0;
	pointer-events: none;
	transform: translateY(12px);
	transition: opacity .2s ease, transform .2s ease;
}

.community-toast.is-visible {
	opacity: 1;
	transform: translateY(0);
}

#footer {
	margin-top: 18px;
}

#footer .upper,
#footer .lower {
	background: transparent;
	border-color: var(--community-border);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 3px solid rgba(0,114,188,.28);
	outline-offset: 2px;
}

@media (max-width: 980px) {
	.social-feed-layout {
		grid-template-columns: minmax(0, 1fr) 190px;
	}
	.social-rail-left {
		display: none;
	}
}

@media (max-width: 720px) {
	.wrapper {
		width: min(100% - 20px, 620px);
	}
	#logo .wrapper {
		gap: 8px;
	}
	#logo img {
		width: 142px;
		height: 38px;
	}
	.social-brand,
	#logo ul.top_links li:nth-child(n+3),
	.social-rail-right {
		display: none;
	}
	.market-main-header {
		grid-template-columns: repeat(5, 1fr) !important;
		grid-template-rows: 46px;
	}
	.link-nav > a {
		min-height: 46px;
		font-size: 0;
		gap: 0;
	}
	.link-nav > a i {
		font-size: 15px;
	}
	.header-guest {
		display: none;
	}
	#content {
		padding-top: 14px;
	}
	.social-homebar {
		display: block;
		padding: 15px;
	}
	.social-homebar-copy {
		margin-bottom: 13px;
	}
	.social-filter-tabs {
		width: 100%;
	}
	.social-filter-tabs button {
		flex: 1;
	}
	.social-feed-layout {
		display: block;
	}
	.social-composer-card {
		padding: 12px;
	}
	.social-story-strip {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
	}
	.social-story-card {
		flex: 0 0 116px;
		min-height: 128px;
		scroll-snap-align: start;
	}
	.tborder {
		border-radius: 11px;
	}
	table.tborder td {
		padding: 9px;
	}
	.community-toast {
		right: 10px;
		bottom: 10px;
		left: 10px;
		max-width: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	*, *:before, *:after {
		scroll-behavior: auto !important;
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}
}
		