/* MAIN LAYOUT / CONTENT GRID / SIDEBAR================= */
.content-box--listing > .navigation, .content-box--listing > .pages, .content-box--listing > .page-nav, .content-box--listing > .pagination {grid-column: 1 / -1;}

/* PAGE HEADING ======================================== */
.page-heading {margin-bottom: 20px; padding: 18px 20px; background: #141821; border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 18px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);}
.page-heading__title {margin: 0; font-size: clamp(24px, 2.2vw, 34px); line-height: 1.15; font-weight: 800; color: #fff;}
.page-heading__desc {margin-top: 10px; font-size: 15px; line-height: 1.7; color: #b8c1cf;}
.page-heading__desc p {margin: 0;}

/* BREADCRUMBS ========================================= */
.breadcrumbs-wrap {margin-top: 14px; margin-bottom: 6px;}
.breadcrumbs {padding: 12px 16px; background: #141821; border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 14px;
	font-size: 14px; line-height: 1.5; color: #b8c1cf; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);}
.breadcrumbs a {color: #e7c36a; text-decoration: none;}
.breadcrumbs a:hover {text-decoration: underline;}
.speedbar {display: flex; flex-wrap: wrap; align-items: center; gap: 6px;}
.speedbar a {color: #e7c36a; text-decoration: none;}
.speedbar a:hover {text-decoration: underline;}
.speedbar > span, .speedbar > a, .speedbar > strong {display: inline-flex; align-items: center;}
.speedbar strong, .speedbar b {color: #fff; font-weight: 700;}

/* SIDEBAR ============================================== */
.sidebar-area {display: flex; flex-direction: column; gap: 18px;}
.sidebar-box {padding: 18px; background: #141821; border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 18px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);}
.sidebar-box__title {margin: 0 0 14px; font-size: 18px; line-height: 1.2; font-weight: 800; color: #fff;}
.sidebar-box__content {color: #d6dde8; font-size: 15px; line-height: 1.6;}

/* SIDEBAR MENU ========================================= */
.sidebar-menu {margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px;}
.sidebar-menu li {margin: 0; padding: 0;}
.sidebar-menu a {display: flex; align-items: center; padding: 10px 12px; background: #1a202c; border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 12px;
	color: #edf1f7; text-decoration: none; transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;}
.sidebar-menu a:hover {background: #202838; border-color: rgba(206, 166, 73, 0.22); transform: translateY(-1px);}

/* TAG CLOUD ============================================ */
.tag-cloud {display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 12px; background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 999px; color: #ebeff5; font-size: 13px; font-weight: 600; text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;}
.tag-cloud a:hover {background: rgba(206, 166, 73, 0.16); border-color: rgba(206, 166, 73, 0.24); color: #fff3cf;}

/* ADS ================================================== */
.ad-box {display: flex; align-items: center; justify-content: center; min-height: 250px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)), #10141c;
	border: 1px dashed rgba(255, 255, 255, 0.12); border-radius: 14px; color: #8e99aa; font-size: 14px; text-align: center;}
.ad-box--sidebar {min-height: 280px;}

/* PAGINATION =========================================== */
.navigation {margin-top: 24px;}
.pages {display: flex; flex-wrap: wrap; gap: 8px; row-gap: 8px; align-items: center;}
.pages a, .pages span {display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; background: #141821;
	border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 12px; color: #edf1f7; text-decoration: none; font-size: 14px; font-weight: 700;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14); white-space: nowrap;}
.pages a:hover {background: #1b2230; border-color: rgba(206, 166, 73, 0.24);}
.pages span {background: #cea649; border-color: rgba(206, 166, 73, 0.35); color: #111;}

/* EMPTY STATES / TEXT PAGES ============================= */
.content-box > .message-info, .content-box > .message-error, .content-box > .text-box, .content-box > form, .content-box > .full-page, .content-box > .static-page {
	padding: 20px; background: #141821; border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 18px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	color: #dbe2ed;}

/* HEADER SEARCH ========================================== */
.header-search.is-active {opacity: 1; transform: translateY(0);}
.header-search__form {display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 16px; background: #141821;
	border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 18px; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);}
.header-search__input {width: 100%; min-width: 0; height: 50px; padding: 0 16px; background: #0f131a; border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px; color: #eef2f7; font-size: 15px; outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;}
.header-search__input::placeholder {color: #8d98aa;}
.header-search__input:focus {border-color: rgba(206, 166, 73, 0.45); box-shadow: 0 0 0 3px rgba(206, 166, 73, 0.12); background: #11161f;}
.header-search__submit {min-width: 120px; height: 50px; padding: 0 18px;}

/* MOBILE MENU ============================================ */
.mobile-menu {position: fixed; top: 0; right: 0; z-index: 1200; width: min(92vw, 360px); height: 100dvh; padding: 18px; background: #141821;
	border-left: 1px solid rgba(255, 255, 255, 0.08); box-shadow: -10px 0 30px rgba(0, 0, 0, 0.28); transform: translateX(100%);
	transition: transform 0.22s ease; overflow-y: auto;}
.mobile-menu.is-active {transform: translateX(0);}
.mobile-menu-overlay {position: fixed; inset: 0; z-index: 1190; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
	opacity: 0; transition: opacity 0.22s ease;}
.mobile-menu-overlay.is-active {opacity: 1;}
.menu-open {overflow: hidden;}
.mobile-menu__head {display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; padding-bottom: 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);}
.mobile-menu__title {font-size: 20px; font-weight: 800; line-height: 1.2; color: #fff;}
.mobile-menu__close {display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; background: #1a202c;
	border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 12px; color: #eef2f7; cursor: pointer;}
.mobile-menu__nav {margin-bottom: 18px;}
.mobile-menu__list {display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none;}
.mobile-menu__list li {margin: 0; padding: 0;}
.mobile-menu__list a {display: flex; align-items: center; min-height: 46px; padding: 0 14px; background: #1a202c; border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 12px; color: #eef2f7; text-decoration: none; font-size: 14px; font-weight: 700;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.mobile-menu__list a:hover {background: #202838; border-color: rgba(206, 166, 73, 0.22); transform: translateY(-1px);}
.mobile-menu__user {margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.06);}
.mobile-menu__btn {min-height: 44px; padding: 0 16px;}

/* LOGIN PANE / HEADER DROPDOWN ======================================== */
.login-pane {position: relative;}
.login-pane__toggle {gap: 10px; padding: 0 14px;}
.login-pane__user {display: inline-flex; align-items: center;}
.login-pane__dropdown {position: absolute; top: calc(100% + 10px); right: 0; z-index: 1200; width: min(92vw, 340px); padding: 16px; background: #141821;
	border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 18px; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);}
.login-pane.is-open .login-pane__dropdown {display: block;}
.login-pane__profile {display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-bottom: 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);}
.login-pane__avatar {flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: #0f131a;}
.login-pane__avatar img {display: block; width: 100%; height: 100%; object-fit: cover;}
.login-pane__profile-info {min-width: 0; display: flex; flex-direction: column; gap: 6px;}
.login-pane__name {font-size: 15px; font-weight: 800; color: #fff; text-decoration: none;}
.login-pane__admin {font-size: 13px; color: #e7c36a; text-decoration: none;}
.login-pane__menu {display: flex; flex-direction: column; gap: 8px;}
.login-pane__link {display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; background: #1a202c;
	border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 12px; color: #edf1f7; font-size: 14px; font-weight: 700; text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;}
.login-pane__link:hover {background: #202838; border-color: rgba(206, 166, 73, 0.22); transform: translateY(-1px);}
.login-pane__meta {color: #aeb7c5; font-size: 12px; font-weight: 700; white-space: nowrap;}
.login-pane__foot {display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 14px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);}
.login-pane__logout {color: #e7c36a;}
.login-pane__socials {display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px;}
.login-pane__social {display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px; background: #1a202c;
	border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 10px; color: #eef2f7; font-size: 13px; font-weight: 800; text-decoration: none;}
.login-pane__form {display: flex; flex-direction: column; gap: 14px;}
.login-pane__field {display: flex; flex-direction: column; gap: 7px;}
.login-pane__field label {margin: 0; font-size: 13px; font-weight: 700; color: #eef2f7;}
.login-pane__field input {width: 100%;}
.login-pane__form-actions {display: flex; padding-top: 2px;}
.login-pane__form-actions .btn {width: 100%;}
.login-pane__links {display: flex; flex-direction: column; gap: 10px; margin-top: 6px; font-size: 13px;}
.login-pane__links a:hover, .login-pane__admin:hover, .login-pane__action:hover, .login-pane__logout:hover, .login-pane__name:hover {text-decoration: underline;}
.login-pane__link-box {display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 14px; background: #1a202c;
	border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px; color: #e7c36a; font-size: 14px; font-weight: 700; text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;}
.login-pane__link-box:hover {background: #212a3b; border-color: rgba(206, 166, 73, 0.28); transform: translateY(-1px);}
.login-pane__link-box:active {transform: scale(0.98);}
.login-pane__link-box:focus-visible {outline: 2px solid rgba(206, 166, 73, 0.8); outline-offset: 2px;}

/* AUTH / LOGIN / REGISTER / LOST PASSWORD ======================================== */

.auth-page {display: flex; justify-content: center;}
.auth-box {width: 100%; max-width: 520px; padding: 24px; background: #141821; border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 20px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);}
.auth-box--wide {max-width: 760px;}
.auth-box__head {margin-bottom: 20px;}
.auth-box__title {margin: 0; font-size: clamp(28px, 3vw, 36px); line-height: 1.1; font-weight: 800; color: #fff;}
.auth-box__desc {margin-top: 10px; font-size: 15px; line-height: 1.7; color: #c7cfdb;}
/* .auth-box__foot {margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.06); font-size: 14px; color: #c7cfdb;}
.auth-box__foot a {color: #e7c36a; text-decoration: none;}
.auth-box__foot a:hover {text-decoration: underline;} */
.auth-form {display: flex; flex-direction: column; gap: 16px;}
.auth-form__group {display: flex; flex-direction: column; gap: 8px;}
.auth-form__group label {margin: 0; font-size: 14px; font-weight: 700; color: #eef2f7;}
.auth-form__captcha {display: grid; gap: 10px;}
.auth-form__row {display: flex; align-items: center; justify-content: space-between; gap: 12px;}
.auth-form__check {display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: #d6dde8; cursor: pointer;}
.auth-form__check input {width: auto; margin: 0;}
.auth-form__actions {display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px;}
.auth-form--register, .auth-form--lostpassword {display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none;}
.auth-form--register .auth-form__group, .auth-form--lostpassword .auth-form__group {display: flex; flex-direction: column; gap: 8px;}
.auth-form__inline {display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center;}
.auth-form__hint {font-size: 13px; line-height: 1.5; color: #aeb7c5;}
.auth-form__actions--submit {margin-top: 18px;}
.auth-form__actions--submit .btn {min-width: 220px;}
.auth-form__group--recaptcha {overflow-x: auto;}
.user_fields {display: flex; flex-direction: column; gap: 14px;}

/* FOOTER ======================================== */

.site-footer {margin-top: 50px; background: #0f131a; border-top: 1px solid rgba(255, 255, 255, 0.06); color: #c7cfdb;}
.site-footer__inner {width: min(100% - 24px, var(--container-max)); margin-inline: auto; padding: 40px 0 20px;}
.site-footer__top {display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px;}
.footer-col {display: flex; flex-direction: column; gap: 12px;}
.footer-col--brand {max-width: 320px;}
.footer-logo {font-size: 20px; font-weight: 800; color: #fff;}
.footer-text {font-size: 14px; line-height: 1.7; color: #aeb7c5;}
.footer-title {margin: 0; font-size: 14px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #fff;}
.footer-links {margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px;}
.footer-links a {font-size: 14px; color: #c7cfdb; text-decoration: none; transition: color 0.2s ease;}
.footer-links a:hover {color: #cea649;}
.footer-links li + li {margin-top: 0;}
.site-footer__bottom {margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.06); text-align: center; font-size: 13px; color: #8d98aa;}


/* RESPONSIVE ======================================== */
@media (max-width: 1024px) { .site-footer__top {grid-template-columns: repeat(2, 1fr); gap: 24px;} }
@media (max-width: 979px) {
	.site-main__grid {grid-template-columns: 1fr;}
	.content-area {order: 1;}
	.sidebar-area {order: 2; gap: 14px;}
	.site-header__right {gap: 8px;}
}
@media (max-width: 767px) {
	.profile-card {padding: 18px; border-radius: 18px;}
	.profile-card__top {grid-template-columns: 1fr; justify-items: start;}
	.profile-grid {grid-template-columns: 1fr;}
	.profile-list li {flex-direction: column;}
	.profile-list strong {text-align: left;}
	.profile-card__title {font-size: 28px;}
}
@media (max-width: 639px) {
	.page-heading {margin-bottom: 16px; padding: 16px; border-radius: 16px;}
	.page-heading__title {font-size: 24px;}
	.page-heading__desc {font-size: 14px;}
	.breadcrumbs {padding: 11px 13px; font-size: 13px; border-radius: 12px;}
	.sidebar-box {padding: 16px; border-radius: 16px;}
	.sidebar-box__title {font-size: 17px;}
	.sidebar-menu a {padding: 9px 11px; border-radius: 10px;}
	.pages a, .pages span {min-width: 36px; height: 36px; font-size: 13px; border-radius: 10px;}
	.content-box > .message-info, .content-box > .message-error, .content-box > .text-box, .content-box > form, .content-box > .full-page,
	.content-box > .static-page {padding: 16px; border-radius: 16px;}
	.header-search {padding: 0 0 12px;}
	.header-search__form {grid-template-columns: 1fr; gap: 10px; padding: 14px; border-radius: 16px;}
	.header-search__input, .header-search__submit {height: 46px; border-radius: 10px;}
	.mobile-menu {width: min(94vw, 360px); padding: 16px;}
	.mobile-menu__title {font-size: 18px;}
	.login-pane__dropdown {right: 0; width: min(94vw, 320px); padding: 14px; border-radius: 16px;}
	.login-pane__foot {flex-direction: column; align-items: stretch;}
	.auth-box {padding: 18px; border-radius: 18px;}
	.auth-box--wide {max-width: 100%;}
	.auth-box__title {font-size: 26px;}
	.auth-box__desc {font-size: 14px; line-height: 1.65;}
	.auth-form {gap: 14px;}
	.auth-form__inline {grid-template-columns: 1fr;}
	.auth-form__actions {flex-direction: column;}
	.auth-form__actions .btn, .auth-form__actions--submit .btn {width: 100%; min-width: 0;}
	.site-footer__inner {width: min(100% - 16px, var(--container-max)); padding: 30px 0 18px;}
	.site-footer__top {grid-template-columns: 1fr; gap: 20px;}
	.footer-col--brand {max-width: 100%;}
	.footer-logo {font-size: 18px;}
	.footer-text, .footer-links a {font-size: 13px;}
}
@media (max-width: 479px) { .login-pane__dropdown {right: -8px; width: min(96vw, 320px);} }

/* REDUCED MOTION ======================================== */
@media (prefers-reduced-motion: reduce) {
	.sidebar-menu a, .tag-cloud a, .header-search, .header-search__input, .header-search__submit, .mobile-menu, .mobile-menu-overlay, .mobile-menu__list a,
	.login-pane__link, .login-pane__link-box {transition: none;}
}