@font-face{
	font-family: "changeling neo";
	src: url("font/CHANGELING NEO REGULAR.OTF") format("opentype");
	font-weight: normal;
	font-style: normal;
}
@font-face{
	font-family: "changeling neo";
	src: url("font/CHANGELING NEO BOLD.OTF") format("opentype");
	font-weight: bold;
	font-style: normal;
}
@font-face{
	font-family: "changeling neo";
	src: url("font/CHANGELING NEO LIGHT.OTF") format("opentype");
	font-weight: light;
	font-style: normal;
}
@font-face{
	font-family: "opensans";
	src: url("font/OPENSANS-REGULAR.TTF") format("truetype");
	font-weight: normal;
	font-style: normal;
}
@font-face{
	font-family: "opensans";
	src: url("font/OPENSANS-BOLD.TTF") format("truetype");
	font-weight: bold;
	font-style: normal;
}
@font-face{
	font-family: "opensans";
	src: url("font/OPENSANS-BOLDITALIC.TTF") format("truetype");
	font-weight: bold;
	font-style: italic;
}
@font-face{
	font-family: "opensans";
	src: url("font/OPENSANS-EXTRABOLD.TTF") format("truetype");
	font-weight: bolder;
	font-style: normal;
}
@font-face{
	font-family: "opensans";
	src: url("font/OPENSANS-EXTRABOLDITALIC.TTF") format("truetype");
	font-weight: bolder;
	font-style: italic;
}
@font-face{
	font-family: "opensans";
	src: url("font/OPENSANS-LIGHT.TTF") format("truetype");
	font-weight: light;
	font-style: normal;
}
@font-face{
	font-family: "opensans";
	src: url("font/OPENSANS-LIGHTITALIC.TTF") format("truetype");
	font-weight: light;
	font-style: italic;
}
@font-face{
	font-family: "opensans";
	src: url("font/OPENSANS-ITALIC.TTF") format("truetype");
	font-weight: normal;
	font-style: italic;
}
body{
	font-family: "opensans";
	font-weight: normal;
	font-size: 1rem;
}
.anniverseryBox{
	background-color: #d5171b;
	width: 100%;
	height: 32px;
	color: #ffffff;
	text-align: center;
	font-weight: bold;
	font-size: 1rem;
	line-height: 32px;
	font-family: 'changeling neo', sans-serif;
	letter-spacing: 0.05em;
}
.site-free{
	padding: 8px;
	width: 100%;
	text-align: center;
	font-weight: bold;
	font-family: 'changeling neo';
	font-size: 2rem;
	text-transform: uppercase;
	line-height: 1;
	color: #ffffff;
	background: #1a1a1a;
	letter-spacing: 0.08em;
}
.site-free span{
	font-size: 2rem;
	font-weight: bold;
	color: #d5171b;
}
.joinus,.register-request{
	padding: 5px;
	width: 100%;
	text-align: center;
	font-family: 'changeling neo';
	font-size: 1.5rem;
	text-transform: uppercase;
	line-height: 1;
}
.register-request a{
	text-decoration: underline;
	transition: all .2s;
	color: white;
	background: #d5171b;
	padding: 4px 14px;
	border-radius: 4px;
	font-weight: bold;
	text-decoration: none;
}
.register-request a:hover{
	color: white;
	background: #a32020;
}
.container-fluid{
	padding: 0;
}

/* Main content wrapper — constrains everything to a sensible max width */
section > .container-fluid {
	max-width: 1600px;
	margin: 0 auto;
}

.center{
	display: flex;
	margin: 0;
	width: 100%;
	max-width: unset;
	justify-content: center;
	align-items: center;
	margin-top: 1rem;
}
.index-artists-posts{
	margin: 2rem 0;
	align-items: flex-start;
	justify-content: center;
}
.square-main-buttons{
	width: 20%;
	height: 150px;
	border: 1px solid #d4252c;
	display: flex;
	flex-direction: column;
	margin-right: 10px;
	position: relative;
}
.square-name{
	height: 20%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #d5171b;
	font-family: "changeling neo";
	font-weight: bold;
	font-size: 1.1rem;
}
.square-desc{
	opacity: 0;
	visibility: hidden;
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	background: #4f0b0cb8;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	transition: all .2s;
}
.square-main-buttons:hover .square-desc{
	opacity: 1;
	visibility: visible;
}
.square-image{
	width: 100%;
	height: 100%;
	position: relative;
}
.square-image img{
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Artists & recent posts */
.index-artists-posts{
	margin: 2rem 0;
	align-items: flex-start;
	justify-content: center;
	gap: 0;
	width: 100%;
}
.random-index, .recent-index{
	display: flex;
	flex-direction: column;
	width: 50%;
	align-items: flex-start;
	justify-content: flex-start;
	padding: 0 0.5rem;
	box-sizing: border-box;
}
.title-random, .title-recent{
	width: 100%;
	font-weight: bold;
	background-color: #d5171b;
	color: white;
	font-family: 'changeling neo', sans-serif;
	font-size: 1.1rem;
	padding: 8px 12px;
	margin-bottom: 0.75rem;
	box-sizing: border-box;
	text-decoration: none;
	display: block;
}
.title-random a, .title-recent a{
	color: white;
	text-decoration: none;
}
.index-section-hint { font-size: 0.78rem; color: #555; padding: 4px 10px 6px; }
.index-section-hint a { color: #888; text-decoration: none; }
.index-section-hint a:hover { color: #d5171b; }
.title-random:hover, .title-recent:hover{
	background-color: #b01015;
}
.artists-random, .posts-recent{
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	gap: 3px;
	width: 100%;
}
.artist-cont, .post-cont{
	display: flex;
	background-color: transparent;
	list-style-type: none;
	margin: 0;
	padding: 0;
	width: 100%;
	height: 110px;
	align-items: center;
	position: relative;
	overflow: hidden;
}
.artist-cont a, .post-cont a{
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	text-decoration: none;
}
.artist-cont a img, .post-cont a img{
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.2s ease;
}
.artist-cont:hover a img, .post-cont:hover a img{
	transform: scale(1.05);
}
.artists-random .artist-name{
	position: absolute;
	bottom: 0;
	width: 100%;
	height: auto;
	font-size: 0.7rem;
	color: white;
	background-color: rgba(213, 23, 27, 0.9);
	text-align: center;
	font-weight: bold;
	padding: 2px 4px;
	box-sizing: border-box;
	transition: background-color 0.2s;
}
.artists-random .artist-cont:hover .artist-name{
	background-color: rgba(176, 16, 21, 0.95);
}
.post-cont .post-overlay{
	position: absolute;
	bottom: 0;
	width: 100%;
	background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 70%, transparent 100%);
	color: #fff;
	padding: 18px 6px 5px;
	opacity: 0;
	transition: opacity 0.2s;
	text-align: center;
	box-sizing: border-box;
}
.post-cont:hover .post-overlay{
	opacity: 1;
}
.post-overlay-title{
	font-size: 0.7rem;
	font-weight: bold;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.3;
	margin-bottom: 1px;
}
.post-overlay-artist{
	font-size: 0.65rem;
	color: #ff9999;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.subscribestar-index{
	display: flex;
	justify-content: center;
	align-items: center;
	height: auto;
	width: 100%;
	padding: 0.75rem 2rem;
	margin: 0;
	background-color: #2a2a2a;
}
.subscribestar-text{
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: white;
	width: 50%;
}
.subscribestar-logo{
	width: 40%;
	display: flex;
}
.subscribestar-logo img{
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.free-color{
	color: #d5171b;
	font-size: 1.5rem;
}
.sitenews{
	width: 100%;
	margin: 0;
	max-width: unset;
}
.index-bottom{
	display: flex;
	justify-content: space-around;
	align-items: center;
	width: 100%;
}
.news-container{
	display: flex;
	flex-direction: column;
	width: 50%;
}
.newsposts{
	width: 100%;
	display: inline-block;
	padding: 10px;
	background-color: #4d494a;
	text-align: left;
	color: white;
	height: calc(350px - 1rem);
	overflow: auto;
}
.partners-container, .twitter-container{
	width: 20%;
}
.title{
	width: 100%;
	height: 50px;
	background-color: #d5171b;
	color: white;
	font-size: 1.3rem;
	font-weight: bold;
	margin-bottom: 1rem;
	display: flex;
	align-items: center;
	font-family: 'changeling neo';
	font-size: 1.3rem;
	padding: 5px;
}
.site-news-title, .partners-title{
	width: 100%;
	height: 50px;
	background-color: #d5171b;
	color: white;
	font-size: 1.3rem;
	font-weight: bold;
	margin-bottom: 1rem;
	display: flex;
	align-items: center;
	font-family: 'changeling neo';
	font-size: 1.3rem;
	padding: 5px;
}
.partners-title{
	width: 100%;
	justify-content: center;
	text-align: center;
}
.partners-container{
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}
.partners-sites{
	display: flex;
	flex-direction: column;
	height: calc(350px - 1rem);
	background-color: #4d494a;
	align-items: center;
	justify-content: space-around;
	width: 100%;
}
.twitter-container{
	max-height: calc(400px + 1rem);
}
.footer{
	width: 100%;
	background: black;
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 50px;
	font-size: 0.8rem;
	padding: 0;
	margin: 0;
	margin-top: 2rem;
}
.show{
	opacity: 1;
	visibility: visible;
}
.admin-container, .manage-gallery-container{
	flex-direction: column;
}
.admin-container .center, .manage-gallery-container .center{
	margin-bottom: 1rem;
}
.modal-content{
	background-color: #2e0909;
}
.btn-primary:not(:disabled):not(.disabled).active, .btn-primary:not(:disabled):not(.disabled):active, .show>.btn-primary.dropdown-toggle{
	color: #fff;
	background-color: #db0000;
	border-color: #db0000;
}
.btn-primary, .page-item.active .page-link{
	background-color: #8b0000;
	border-color: #8b0000;
}
.page-link{
	color: #8b0000;
}
.page-link:hover{
	color: #8b0000;
}
.btn-primary:hover{
	background-color: #950000;
	border-color: #950000;
}
input,textarea, .form-control, .note-editor.note-frame .note-editing-area .note-editable{
	background-color: #c8c7c7;
}
.bg-light{
	background-color: #c8c7c7!important;
}
input[type=checkbox], input[type=radio]{
	width: unset;
}
.admin-container .table{
	color: white;
}
.admin-container .table-hover tbody tr:hover{
	color: #ff9396;
	cursor: pointer;
}
.slim .slim-area p{
	color: black;
}
.manage-center{
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
.manage-center .row{
	width: 80vw;
}
.manage-center .textleft{
	justify-content: center;
}
.manage-center .list-group-item, .manage-center .card{
	background-color: #660b0e;
	border: 1px solid #660b0e;
}
.sortable-chosen.active{
	background-color: #d3171b;
	border: 1px solid #d3171b;
}
.manage-center #categorylist .mainlist .folderbadge{
	display: flex;
	align-items: center;
	justify-content: space-around;
}
.badge-primary {
	background-color: #d3171b;
}
.like-button{
	border-radius: 15px;
	border: 1px solid #ff0101;
	padding: 15px;
	font-size: 2rem;
	background-color: unset;
	transition: all .5s;
	cursor: pointer;
	width: 80px;
	margin: auto;
}
.like-button:hover{
	background-color: #ff0101;
}
.slideshowbody{
	overflow: hidden !important;
}
.liked{
	background-color: #ff0101;
}
.liked:hover{
	background-color: unset;
}
.managegallery-right, .managegallery-left{
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.managegallery-left{
	width: 30%;
}
.managegallery-right{
	width: 60%;
}
.editcategory, .deletecategory{
	cursor: pointer;
	transition: all .2s;
	color:white;
}
.editcategory:hover, .deletecategory:hover{
	color:#d3171b !important;
}
@media only screen and (max-width: 1150px) {
	.upper-text-sub h4{
		font-size: 1.2rem;
	}
}
@media only screen and (max-width: 1080px) {
	.like-button{
		top: 40%;
		font-size: 1.5rem;
	}
	.center{
		flex-wrap: wrap;
	}
	.square-main-buttons{
		width: 40%;
		margin-bottom: 2rem;
	}
	.index-artists-posts{
		flex-direction: column;
		align-items: center;
	}
	.random-index, .recent-index{
		width: 100%;
		align-items: center;
	}
	.artists-random, .posts-recent{
		grid-template-columns: repeat(auto-fill, 110px);
		width: 100%;
	}
	.recent-index{
		margin-top: 2rem;
	}
	.subscribestar-index{
		flex-direction: column;
		margin-top: 2rem;
		height: auto;
	}
	.index-bottom{
		flex-wrap: wrap;
	}
	.news-container{
		width: 90%;
	}
	.partners-container, .twitter-container {
		width: 40%;
		margin-top: 1rem;
	}
	.footer{
		height: auto;
		padding: 2rem 0;
	}
	.subscribestar-text{
		width: 100%;
	}
	.subscribestar-logo{
		width: 100%;
		max-width: 220px;
	}
	.square-name{
		font-size: 1rem;
	}
}
@media only screen and (max-width: 768px) {
	.admin-container .navbar, .manage-gallery-container .navbar{
		width: 90%;
	}
	.admin-container .navbar .navbar-nav, .manage-gallery-container .navbar .navbar-nav{
		flex-direction: row;
		align-items: center;
		justify-content: space-around;
		width: 100%;
	}
	.manage-gallery-container .manage-center .textleft>div{
		max-width: 100%;
		flex: 0 0 100%;
	}
	.manage-gallery-container .manage-center .textleft #postlist{
		padding: 0;
	}
}
@media only screen and (max-width: 500px) {
	.anniverseryBox{
		font-size: 1rem;
	}
	.partners-container, .twitter-container {
		width: 90%;
		margin-top: 1rem;
	}
	.title{
		padding: 1rem;
	}
}

/* Moderator header badge */
.mod-badge {
    display: inline-block;
    background: #d5171b;
    color: #fff;
    font-size: 0.65rem;
    font-weight: bold;
    border-radius: 10px;
    padding: 1px 6px;
    margin-left: 4px;
    vertical-align: middle;
    line-height: 1.4;
}

/* Notification bell badge */
.notif-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #d5171b;
    color: #fff;
    font-size: 0.6rem;
    font-weight: bold;
    border-radius: 10px;
    padding: 1px 5px;
    line-height: 1.4;
    pointer-events: none;
}

/* Notifications page */
.notif-page {
    max-width: 800px;
    padding: 2rem 1rem;
}
.notif-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #d5171b;
    padding-bottom: 0.75rem;
}
.notif-title {
    font-family: 'Changeling Neo', sans-serif;
    color: #fff;
    font-size: 1.5rem;
    margin: 0;
}
.notif-title i { color: #d5171b; margin-right: 8px; }
.notif-btn-clear-all {
    background: transparent;
    border: 1px solid #888;
    color: #aaa;
    border-radius: 4px;
    padding: 4px 14px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.notif-btn-clear-all:hover { border-color: #d5171b; color: #d5171b; }
.notif-list { display: flex; flex-direction: column; gap: 0; }
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #2a2a2a;
    transition: background 0.15s;
}
.notif-item:hover { background: #1f1f1f; }
.notif-unread { background: #1e1a1a; border-left: 3px solid #d5171b; }
.notif-read { border-left: 3px solid transparent; }
.notif-icon {
    font-size: 1.1rem;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.notif-comment .notif-icon { color: #aaa; }
.notif-like .notif-icon { color: #d5171b; }
.notif-upload .notif-icon { color: #6ab0f5; }
.notif-content { flex: 1; }
.notif-message {
    display: block;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.4;
}
a.notif-message:hover { color: #d5171b; }
.notif-time { color: #666; font-size: 0.8rem; margin-top: 3px; }
.notif-dismiss { flex-shrink: 0; }
.notif-btn-dismiss {
    background: transparent;
    border: none;
    color: #555;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 2px 6px;
    transition: color 0.2s;
}
.notif-btn-dismiss:hover { color: #d5171b; }
.notif-body { display: block; width: 100%; }
.notif-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #666;
    padding: 5rem 1rem;
    width: 100%;
    min-height: 300px;
    gap: 0;
}
.notif-empty-halo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 2px solid #2a2a2a;
    box-shadow: 0 0 0 8px #161616, 0 0 0 16px #131313, 0 0 40px rgba(213,23,27,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}
.notif-empty-halo i {
    font-size: 2.8rem;
    color: #333;
}
.notif-empty-headline {
    font-size: 1.4rem;
    font-weight: bold;
    color: #bbb;
    margin-bottom: 0.6rem;
    font-family: 'Changeling Neo', sans-serif;
    letter-spacing: 0.02em;
}
.notif-empty-sub {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 380px;
}
.notif-empty-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.notif-empty-btn {
    display: inline-block;
    background: #d5171b;
    color: #fff;
    border: 1px solid #d5171b;
    border-radius: 4px;
    padding: 8px 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.notif-empty-btn i { margin-right: 6px; }
.notif-empty-btn:hover { background: #b81215; color: #fff; text-decoration: none; }
.notif-empty-btn-outline {
    background: transparent;
    color: #888;
    border-color: #333;
}
.notif-empty-btn-outline:hover { background: #222; color: #ccc; border-color: #555; }

/* Bell inline count */
.notif-bell-link { display: inline-flex; align-items: center; gap: 4px; }
.notif-inline-count {
    display: inline-block;
    background: #d5171b;
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 10px;
    padding: 1px 7px;
    line-height: 1.5;
    vertical-align: middle;
}


/* ===== Notification enhancements ===== */
.notif-filter-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.notif-tab {
    background: #222;
    color: #aaa;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.notif-tab i { margin-right: 4px; }
.notif-tab.active, .notif-tab:hover { background: #d5171b; border-color: #d5171b; color: #fff; }
.notif-thumb {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    margin-right: 10px;
    overflow: hidden;
    border-radius: 4px;
    display: block;
    background: #111;
}
.notif-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }


/* ===== Search page ===== */
.search-page-wrap { max-width: 1600px; margin: 0 auto; padding: 2rem 1rem; }

.search-bar-section {
    background: #161616;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.75rem;
}
.search-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.search-input-group {
    flex: 1;
    min-width: 200px;
    position: relative;
    display: flex;
    align-items: center;
}
.search-form-icon {
    position: absolute;
    left: 12px;
    color: #555;
    font-size: 0.9rem;
    pointer-events: none;
}
.search-input {
    width: 100%;
    background: #111;
    color: #ddd;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 9px 12px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.15s;
}
.search-input:focus { border-color: #d5171b; }
.search-input::placeholder { color: #555; }
.search-select {
    background: #111;
    color: #ddd;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 9px 12px;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    min-width: 140px;
}
.search-select:focus { border-color: #d5171b; }
.search-btn {
    background: #d5171b;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 9px 22px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}
.search-btn i { margin-right: 6px; }
.search-btn:hover { background: #b01015; }

.search-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #222;
}
.search-results-count { color: #888; font-size: 0.9rem; }
.search-results-count strong { color: #ddd; }
.search-term { color: #d5171b; font-style: italic; }
.search-in-user { color: #666; margin-left: 6px; }
.search-page-info { color: #555; font-size: 0.85rem; }

.search-results-grid { margin-bottom: 1.5rem; }

/* Dark pagination override */
.search-pagination .page-link {
    background: #1a1a1a;
    border-color: #333;
    color: #aaa;
}
.search-pagination .page-link:hover { background: #222; color: #fff; border-color: #555; }
.search-pagination .page-item.active .page-link { background: #d5171b; border-color: #d5171b; color: #fff; }
.search-pagination .page-item.disabled .page-link { background: #111; color: #444; border-color: #222; }

.search-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 5rem 1rem;
    width: 100%;
}
.search-no-results-halo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 2px solid #2a2a2a;
    box-shadow: 0 0 0 8px #161616, 0 0 0 16px #131313;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.75rem;
}
.search-no-results-halo i { font-size: 2.5rem; color: #333; }
.search-no-results-headline {
    font-size: 1.3rem;
    font-weight: bold;
    color: #bbb;
    font-family: 'Changeling Neo', sans-serif;
    margin-bottom: 0.6rem;
}
.search-no-results-sub { color: #555; font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.75rem; }
.search-no-results-sub strong { color: #888; }
.search-no-results-btn {
    display: inline-block;
    background: transparent;
    color: #888;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 8px 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.search-no-results-btn i { margin-right: 6px; }
.search-no-results-btn:hover { background: #222; color: #ccc; border-color: #555; text-decoration: none; }

.admin-approx-date { color: #666; font-style: italic; }
/* ===== Register / Join Free nav button ===== */
.nav-register-wrap { padding: 0 !important; display: flex; align-items: center; }
.nav-register-btn {
    display: inline-block;
    background: #d5171b;
    color: #fff !important;
    font-family: 'changeling neo', sans-serif;
    font-weight: bold;
    font-size: 0.88rem;
    padding: 5px 16px;
    border-radius: 4px;
    text-decoration: none !important;
    transition: background 0.15s;
    white-space: nowrap;
}
.nav-register-btn:hover { background: #b01015; color: #fff !important; }
.nav-register-btn-bs {
    display: inline-block;
    background: #d5171b !important;
    color: #fff !important;
    border-radius: 4px;
    padding: 4px 14px !important;
    font-family: 'changeling neo', sans-serif;
    font-weight: bold;
    transition: background 0.15s;
}
.nav-register-btn-bs:hover { background: #b01015 !important; color: #fff !important; }

/* ===== Index join bar ===== */
.index-join-bar {
    background: linear-gradient(135deg, #1a0a0a 0%, #2a0f0f 50%, #1a0a0a 100%);
    border-top: 3px solid #d5171b;
    border-bottom: 1px solid #3a1010;
    padding: 1.75rem 1.5rem;
    margin: 0;
}
.index-join-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.index-join-heading {
    font-family: 'changeling neo', sans-serif;
    font-size: 1.4rem;
    color: #fff;
    font-weight: bold;
    margin-bottom: 4px;
}
.index-join-sub {
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.5;
}
.index-join-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.index-join-btn-primary {
    display: inline-block;
    background: #d5171b;
    color: #fff !important;
    font-family: 'changeling neo', sans-serif;
    font-weight: bold;
    font-size: 1rem;
    padding: 10px 28px;
    border-radius: 4px;
    text-decoration: none !important;
    transition: background 0.15s;
    white-space: nowrap;
}
.index-join-btn-primary:hover { background: #b01015; }
.index-join-btn-secondary {
    display: inline-block;
    background: transparent;
    color: #aaa !important;
    font-size: 0.9rem;
    padding: 10px 18px;
    border: 1px solid #555;
    border-radius: 4px;
    text-decoration: none !important;
    transition: border-color 0.15s, color 0.15s;
    white-space: nowrap;
}
.index-join-btn-secondary:hover { border-color: #fff; color: #fff !important; }

/* ===== Member perks chips ===== */
.member-perks-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 9px 14px;
    margin-top: 8px;
}
.member-perks-label {
    color: #888;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.member-perk {
    color: #ccc;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 3px 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
}
.member-perk i { color: #d5171b; font-size: 0.75rem; }
.index-join-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}


/* ===== Post page guest CTA ===== */
.post-guest-cta {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-left: 4px solid #d5171b;
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    margin: 1rem 0;
    text-align: left;
}
.post-guest-heading {
    font-family: 'changeling neo', sans-serif;
    font-size: 1.1rem;
    color: #fff;
    font-weight: bold;
    margin-bottom: 4px;
}
.post-guest-sub {
    color: #888;
    font-size: 0.88rem;
    margin-bottom: 1rem;
}
.post-guest-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.post-guest-register {
    display: inline-block;
    background: #d5171b;
    color: #fff !important;
    font-family: 'changeling neo', sans-serif;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 7px 20px;
    border-radius: 4px;
    text-decoration: none !important;
    transition: background 0.15s;
}
.post-guest-register:hover { background: #b01015; }
.post-guest-login {
    display: inline-block;
    background: transparent;
    color: #aaa !important;
    font-size: 0.88rem;
    padding: 7px 16px;
    border: 1px solid #444;
    border-radius: 4px;
    text-decoration: none !important;
    transition: border-color 0.15s, color 0.15s;
}
.post-guest-login:hover { border-color: #888; color: #fff !important; }


/* =============================================
   Comment Replies
   ============================================= */
.post-comment-reply {
    margin-left: 2.5rem;
    border-left: 3px solid #2a2a2a;
    padding-left: 1rem;
    margin-top: 8px;
}

.post-comment-reply-arrow {
    color: #555;
    font-size: 0.8rem;
    margin-right: 4px;
}

.post-comment-reply-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 0.78rem;
    padding: 2px 6px;
    cursor: pointer;
    border-radius: 3px;
    margin-left: auto;
    transition: color 0.15s, background 0.15s;
    flex-shrink: 0;
}
.post-comment-reply-btn:hover {
    color: #d5171b;
    background: rgba(213,23,27,0.08);
}

.post-comment-reply-context {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(213,23,27,0.08);
    border-left: 3px solid #d5171b;
    padding: 6px 12px;
    margin-bottom: 8px;
    border-radius: 0 3px 3px 0;
    font-size: 0.85rem;
    color: #ccc;
}

.post-comment-cancel-reply {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 2px 6px;
    margin-left: auto;
    transition: color 0.15s;
}
.post-comment-cancel-reply:hover { color: #d5171b; }

/* =============================================
   Artist Journals — Manage Page
   ============================================= */
.journal-manage-wrap {
    max-width: 860px;
    padding: 2rem 1rem;
}

.journal-manage-header {
    margin-bottom: 1.5rem;
}

.journal-manage-title {
    font-family: 'changeling neo', sans-serif;
    font-size: 1.8rem;
    color: #fff;
    margin: 0 0 0.25rem;
}

.journal-manage-sub {
    color: #888;
    font-size: 0.9rem;
    margin: 0;
}

.journal-create-card {
    background: #1a1a1a;
    border-top: 4px solid #d5171b;
    margin-bottom: 2rem;
}

.journal-card-head {
    background: #d5171b;
    color: #fff;
    font-family: 'changeling neo', sans-serif;
    font-weight: bold;
    font-size: 1rem;
    padding: 7px 14px;
}

.journal-create-form {
    padding: 1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.journal-title-input {
    background: #111;
    border: 1px solid #333;
    color: #fff;
    padding: 8px 12px;
    font-size: 1rem;
    border-radius: 3px;
    width: 100%;
    outline: none;
    transition: border-color 0.15s;
}
.journal-title-input:focus { border-color: #d5171b; }

.journal-body-input {
    background: #111;
    border: 1px solid #333;
    color: #fff;
    padding: 10px 12px;
    font-size: 0.92rem;
    border-radius: 3px;
    width: 100%;
    outline: none;
    resize: vertical;
    line-height: 1.6;
    transition: border-color 0.15s;
    font-family: inherit;
}
.journal-body-input:focus { border-color: #d5171b; }

.journal-create-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.journal-char-hint {
    font-size: 0.8rem;
    color: #666;
}

.journal-submit-btn {
    background: #d5171b;
    color: #fff;
    border: none;
    padding: 8px 22px;
    font-family: 'changeling neo', sans-serif;
    font-weight: bold;
    font-size: 0.95rem;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.15s;
}
.journal-submit-btn:hover { background: #b01015; }

.journal-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.journal-entry-card {
    background: #1a1a1a;
    border-left: 4px solid #d5171b;
    padding: 1rem 1.25rem;
}

.journal-entry-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.journal-entry-title {
    font-family: 'changeling neo', sans-serif;
    font-size: 1.05rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    flex: 1;
    transition: color 0.15s;
}
.journal-entry-title:hover { color: #d5171b; }

.journal-entry-date {
    font-size: 0.8rem;
    color: #666;
    flex-shrink: 0;
}

.journal-entry-preview {
    font-size: 0.88rem;
    color: #999;
    line-height: 1.55;
    margin-bottom: 10px;
}

.journal-entry-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.journal-view-btn {
    font-size: 0.82rem;
    color: #ccc;
    text-decoration: none;
    padding: 4px 10px;
    border: 1px solid #333;
    border-radius: 3px;
    transition: border-color 0.15s, color 0.15s;
}
.journal-view-btn:hover { border-color: #d5171b; color: #d5171b; }

.journal-delete-form { margin: 0; }

.journal-delete-btn {
    background: none;
    border: 1px solid #3a1a1a;
    color: #884444;
    font-size: 0.82rem;
    padding: 4px 10px;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.journal-delete-btn:hover { background: rgba(180,0,0,0.15); color: #d5171b; }

.journal-empty {
    text-align: center;
    color: #555;
    padding: 3rem 0;
    font-size: 0.95rem;
}

/* =============================================
   Artist Journals — View Page
   ============================================= */
.journal-notfound {
    text-align: center;
    color: #666;
    padding: 4rem 0;
    font-size: 1rem;
}

.journal-view-wrap {
    max-width: 800px;
    padding: 2rem 1rem;
}

.journal-view-card {
    background: #1a1a1a;
    border-top: 4px solid #d5171b;
    padding: 1.5rem 1.75rem;
}

.journal-view-author {
    margin-bottom: 1.25rem;
}

.journal-view-author-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.journal-view-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #333;
    flex-shrink: 0;
}

.journal-view-username {
    display: block;
    font-family: 'changeling neo', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    transition: color 0.15s;
}
.journal-view-author-link:hover .journal-view-username { color: #d5171b; }

.journal-view-date {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-top: 2px;
}

.journal-view-title {
    font-family: 'changeling neo', sans-serif;
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    margin: 0 0 1rem;
    line-height: 1.2;
}

.journal-view-body {
    font-size: 0.97rem;
    color: #ccc;
    line-height: 1.75;
    word-break: break-word;
}

/* =============================================
   Profile Page — Journals Section
   ============================================= */
.profile-journals-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #111;
}

.profile-journal-item {
    border-bottom: 1px solid #222;
    padding: 0.75rem 1rem;
}
.profile-journal-item:last-child { border-bottom: none; }

.profile-journal-item-title {
    font-family: 'changeling neo', sans-serif;
    font-size: 0.95rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    transition: color 0.15s;
    display: block;
    margin-bottom: 3px;
}
.profile-journal-item-title:hover { color: #d5171b; }

.profile-journal-item-meta {
    font-size: 0.75rem;
    color: #666;
}

/* Journal comments section */
.journal-comments-wrap {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #2a2a2a;
}

.journal-comments-title {
    font-family: 'changeling neo', sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    padding: 8px 0 10px;
    border-bottom: 2px solid #d5171b;
    margin-bottom: 1rem;
}

.journal-comments-count {
    font-family: sans-serif;
    font-size: 0.85rem;
    font-weight: normal;
    color: #888;
}

.journal-comments-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 1.5rem;
}

/* =============================================
   Manage Gallery — Full Restyle
   ============================================= */

/* Page frame */
.mgal-page {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
}

/* Top bar */
.mgal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #111;
    border-bottom: 3px solid #d5171b;
    padding: 0 1.5rem;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 0;
}

.mgal-topbar-title {
    font-family: 'changeling neo', sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    padding: 0.75rem 0;
}

.mgal-tabs {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.mgal-tab {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0.85rem 1.4rem;
    color: #888;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: bold;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
    transition: color 0.15s, border-color 0.15s;
}
.mgal-tab:hover { color: #ccc; }
.mgal-tab-active { color: #fff; border-bottom-color: #d5171b; }

.mgal-error {
    background: rgba(213,23,27,0.15);
    border-left: 4px solid #d5171b;
    color: #f88;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    margin: 0.75rem 1rem;
    border-radius: 0 3px 3px 0;
}

/* Main two-column layout */
.mgal-layout {
    display: flex;
    flex: 1;
    align-items: stretch;
    min-height: 0;
}

/* Left sidebar: gallery tree */
.mgal-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: #1a1a1a;
    border-right: 1px solid #222;
    display: flex;
    flex-direction: column;
}

.mgal-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #d5171b;
    font-family: 'changeling neo', sans-serif;
    font-weight: bold;
    font-size: 0.9rem;
    color: #fff;
    flex-shrink: 0;
}

.mgal-new-gallery-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0,0,0,0.25);
    color: #fff;
    text-decoration: none;
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 3px;
    transition: background 0.15s;
    font-family: sans-serif;
    font-weight: normal;
}
.mgal-new-gallery-btn:hover { background: rgba(0,0,0,0.45); color: #fff; }

.mgal-tree {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}

/* Right content area */
.mgal-content {
    flex: 1;
    min-width: 0;
    background: #111;
    display: flex;
    flex-direction: column;
}

/* Action bar */
.mgal-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1rem;
    background: #1a1a1a;
    border-bottom: 1px solid #222;
    flex-wrap: wrap;
}

.mgal-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: rgba(213,23,27,0.12);
    border: 1px solid #d5171b;
    color: #d5171b;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
    text-decoration: none;
}
.mgal-action-btn:hover { background: rgba(213,23,27,0.25); color: #d5171b; }
.mgal-action-danger { border-color: #884; color: #cc8844; background: rgba(180,100,0,0.1); }
.mgal-action-danger:hover { background: rgba(180,60,0,0.2); color: #e09050; }

.mgal-select-hint {
    font-size: 0.78rem;
    color: #555;
    margin-left: auto;
}

/* Empty state */
.mgal-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 4rem 2rem;
    color: #555;
    font-size: 1rem;
    flex: 1;
}
.mgal-empty i { font-size: 2.5rem; }
.mgal-empty p { margin: 0; }

/* Post grid — override legacy pink tiles */
.gallrpul {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    list-style: none;
    padding: 1rem;
    margin: 0;
    gap: 8px;
}

.gallrpli {
    background: #1a1a1a !important;
    border: 2px solid transparent !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 140px !important;
    height: auto !important;
    font-size: 0.72rem;
    font-weight: normal;
    color: #aaa;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.15s;
}

.gallrpli table {
    width: 100%;
    height: auto;
    border-collapse: collapse;
}

.gallrpli img {
    width: 140px;
    height: 110px;
    max-width: 140px;
    max-height: 110px;
    object-fit: cover;
    display: block;
    border: none;
}

.gallrpli td {
    padding: 5px 6px;
    vertical-align: top;
}

.gallrpli td:first-child { padding: 0; }

.gallrpli b {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 128px;
    color: #ddd;
    font-size: 0.75rem;
    margin-bottom: 2px;
}

.gallrpli a { color: #d5171b; }
.gallrpli a:hover { color: #ff4444; }

.gallrpli.ui-selected,
.gallrpli.selected {
    border-color: #d5171b !important;
    background: rgba(213,23,27,0.12) !important;
}

/* imagemenu / imagemenusub — override show/hide logic */
.imagemenusub { display: none; }

/* Upload page */
.mgal-upload-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mgal-upload-card {
    background: #1a1a1a;
    border-top: 3px solid #d5171b;
}

.mgal-upload-card-head {
    background: #d5171b;
    color: #fff;
    font-family: 'changeling neo', sans-serif;
    font-weight: bold;
    font-size: 0.95rem;
    padding: 7px 14px;
}

.mgal-upload-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 1rem;
}

.mgal-upload-hint {
    font-size: 0.8rem;
    color: #555;
    margin: 0.5rem 0 0;
    padding: 0 1rem 1rem;
    line-height: 1.6;
}

.mgal-notice {
    padding: 1.5rem;
    text-align: center;
    color: #888;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Shared modal + form styles */
.mgal-modal { background: #1a1a1a; border: 1px solid #2a2a2a; }
.mgal-modal-head { background: #d5171b; color: #fff; border-bottom: none; padding: 0.85rem 1.25rem; }
.mgal-modal-head .close { color: #fff; opacity: 0.8; }
.mgal-modal-head .close:hover { opacity: 1; }
.mgal-modal-foot { background: #111; border-top: 1px solid #222; padding: 0.75rem 1.25rem; }
.modal-body { background: #1a1a1a; }

.mgal-field {
    padding: 0.65rem 1.25rem 0;
}
.mgal-field label {
    display: block;
    font-size: 0.82rem;
    color: #888;
    margin-bottom: 5px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mgal-input, .mgal-select, .mgal-textarea {
    width: 100%;
    background: #111;
    border: 1px solid #333;
    color: #fff;
    padding: 8px 10px;
    font-size: 0.9rem;
    border-radius: 3px;
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
    font-family: inherit;
}
.mgal-input:focus, .mgal-select:focus, .mgal-textarea:focus { border-color: #d5171b; }
.mgal-input::placeholder { color: #555; }
.mgal-textarea { resize: vertical; min-height: 80px; }
.mgal-select { cursor: pointer; }
.mgal-select option { background: #1a1a1a; }

.mgal-optional { font-weight: normal; color: #666; text-transform: none; letter-spacing: 0; font-size: 0.78rem; }
.mgal-link { color: #d5171b; }

.mgal-btn-primary {
    display: inline-flex; align-items: center; gap: 6px;
    background: #d5171b; color: #fff; border: none;
    padding: 8px 20px; font-weight: bold; font-size: 0.88rem;
    border-radius: 3px; cursor: pointer; transition: background 0.15s;
    font-family: 'changeling neo', sans-serif; text-decoration: none;
}
.mgal-btn-primary:hover { background: #b01015; color: #fff; }

.mgal-btn-secondary {
    display: inline-flex; align-items: center; gap: 6px;
    background: #222; color: #aaa; border: 1px solid #333;
    padding: 8px 20px; font-weight: bold; font-size: 0.88rem;
    border-radius: 3px; cursor: pointer; transition: background 0.15s;
    font-family: inherit;
}
.mgal-btn-secondary:hover { background: #2a2a2a; color: #fff; }

.mgal-btn-danger {
    display: inline-flex; align-items: center; gap: 6px;
    background: #3a1010; color: #cc4444; border: 1px solid #662222;
    padding: 8px 20px; font-weight: bold; font-size: 0.88rem;
    border-radius: 3px; cursor: pointer; transition: background 0.15s;
    font-family: inherit;
}
.mgal-btn-danger:hover { background: #501515; color: #ff6666; }

.mgal-check-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
    cursor: pointer;
    padding: 0.25rem 0;
}
.mgal-check-label input[type="checkbox"] { margin-top: 3px; accent-color: #d5171b; flex-shrink: 0; }

/* Responsive */
@media (max-width: 800px) {
    .mgal-layout { flex-direction: column; }
    .mgal-sidebar { width: 100%; border-right: none; border-bottom: 1px solid #222; }
    .mgal-tree { max-height: 220px; overflow-y: auto; }
    .mgal-topbar { padding: 0 0.75rem; }
    .mgal-tab { padding: 0.75rem 0.9rem; font-size: 0.82rem; }
}

/* === Manage Gallery Fixes === */

/* 1. Show action bar — theme.css hides .imagemenu globally */
.mgal-actions.imagemenu {
    display: flex !important;
}

/* 2. Override #categorylist min-width that blows out the sidebar */
#categorylist {
    min-width: unset !important;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* 3. Dark gallery tree — Bootstrap list-group defaults to white */
.mgal-tree .list-group-item {
    background-color: transparent !important;
    color: #bbb !important;
    border-color: #252525 !important;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.1s, color 0.1s;
    padding: 8px 10px !important;
    min-height: 44px;
    box-sizing: border-box;
}
.mgal-tree .list-group-item:hover {
    background-color: rgba(213,23,27,0.1) !important;
    color: #fff !important;
}
.mgal-tree .list-group-item.ui-selected,
.mgal-tree .list-group-item.active,
.mgal-tree .list-group-item.selectedcategory {
    background-color: rgba(213,23,27,0.18) !important;
    color: #fff !important;
    border-left: 3px solid #d5171b !important;
}
.mgal-tree .list-group-root {
    background: transparent !important;
}
.mgal-tree .badge-primary {
    background-color: #2a2a2a !important;
    color: #777 !important;
}
.mgal-tree .folderbadge {
    float: right;
}
.mgal-tree .folderbadge a {
    color: #555;
    font-size: 0.82rem;
    text-indent: 0;
}
.mgal-tree .folderbadge a:hover { color: #d5171b; }
.mgal-tree .handle { color: #444; margin-right: 6px; cursor: grab; }

/* Sub-gallery indent */
.mgal-tree .list-group.sub-item { background: transparent !important; }
.mgal-tree .list-group.list-group-root > .list-group > .list-group-item {
    padding-left: 28px !important;
    background-color: rgba(0,0,0,0.2) !important;
}

/* Override Sortable blue-background-class selection (post grid) */
.gallrpli.blue-background-class {
    background: rgba(213,23,27,0.15) !important;
    border-color: #d5171b !important;
}

/* Dropzone dark theme override */
.dz-message { color: #666; }

/* Gallery tree — dark overrides for Bootstrap list-group */
#categorylist .list-group-item {
    background-color: transparent !important;
    color: #bbb !important;
    border-color: #2a2a2a !important;
    font-size: 0.88rem;
    cursor: pointer;
}
#categorylist .list-group-item:hover {
    background-color: rgba(213,23,27,0.1) !important;
    color: #fff !important;
}
#categorylist .list-group-item.activeCategory {
    background-color: rgba(213,23,27,0.2) !important;
    color: #fff !important;
    border-left: 3px solid #d5171b !important;
}
#categorylist .badge-primary {
    background-color: #2a2a2a !important;
    color: #666 !important;
}
#categorylist .folderbadge a { color: #555; }
#categorylist .folderbadge a:hover { color: #d5171b; }
#categorylist { min-width: unset !important; }

/* Gallery tree — thumbnails + clearer controls */
.gal-tree-thumb {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 3px;
    vertical-align: middle;
    margin: 0 6px 0 2px;
    opacity: 0.85;
    flex-shrink: 0;
}
.gal-tree-thumb-sub { width: 22px; height: 22px; }
.gal-tree-nothumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #222;
    border-radius: 3px;
    color: #444;
    font-size: 0.75rem;
    vertical-align: middle;
    margin: 0 6px 0 2px;
    flex-shrink: 0;
}
.gal-tree-nothumb-sub { width: 22px; height: 22px; font-size: 0.65rem; }
.gal-tree-label {
    vertical-align: middle;
    font-size: 0.87rem;
    color: #bbb;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: calc(100% - 100px);
    display: inline-block;
}
.gal-tree-count {
    display: inline-block;
    background: #2e2e2e;
    color: #aaa;
    font-size: 0.72rem;
    padding: 1px 6px;
    border-radius: 10px;
    margin-right: 4px;
    vertical-align: middle;
}
.gal-tree-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 3px;
    font-size: 0.72rem;
    text-decoration: none;
    vertical-align: middle;
    transition: background 0.15s, color 0.15s;
    margin-left: 2px;
}
.gal-tree-btn-edit { color: #bbb; }
.gal-tree-btn-edit:hover { color: #fff; background: #3a3a3a; }
.gal-tree-btn-del { color: #c0504d; }
.gal-tree-btn-del:hover { color: #ff6666; background: rgba(200,0,0,0.2); }

/* Gallery tree — force badge right-aligned with flex */
#categorylist .folderbadge {
    float: right !important;
    display: flex;
    align-items: center;
    gap: 2px;
    text-indent: 0;
    margin-left: auto;
}

/* ── Post actions bar (Like + Bookmark) ───────────────────────────────── */
.post-actions-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 0.6rem 0;
}

.bookmark-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid #444;
    color: #aaa;
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
}
.bookmark-btn:hover {
    border-color: #d5171b;
    color: #d5171b;
}
.bookmark-btn.bookmarked {
    border-color: #d5171b;
    color: #d5171b;
    background: rgba(213,23,27,0.08);
}

/* ── Tag follow buttons ───────────────────────────────────────────────── */
.post-tag-wrap {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin: 2px 3px 2px 0;
}
.post-tag {
    display: inline-block;
    background: #222;
    color: #bbb;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.post-tag:hover {
    background: #d5171b;
    color: #fff;
    text-decoration: none;
}
.tag-follow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: transparent;
    border: 1px solid #333;
    border-radius: 3px;
    color: #555;
    font-size: 0.65rem;
    cursor: pointer;
    padding: 0;
    transition: all 0.15s;
}
.tag-follow-btn:hover {
    border-color: #d5171b;
    color: #d5171b;
}
.tag-follow-btn.following {
    border-color: #d5171b;
    color: #d5171b;
    background: rgba(213,23,27,0.08);
}

/* ── Favorites grid ───────────────────────────────────────────────────── */
.fav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.fav-tile {
    display: block;
    background: #1e1e1e;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}
.fav-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    text-decoration: none;
}
.fav-thumb {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
    background: #111;
}
.fav-tile-label {
    padding: 6px 8px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.fav-tile-name {
    color: #ddd;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fav-tile-artist {
    color: #666;
    font-size: 0.72rem;
}

/* ── Followed tags list ───────────────────────────────────────────────── */
.followed-tags-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.followed-tag-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #1e1e1e;
}
.followed-tag-name {
    color: #d5171b;
    font-size: 0.95rem;
    text-decoration: none;
    flex: 1;
}
.followed-tag-name:hover { color: #ff4a4e; text-decoration: none; }
.followed-tag-since {
    color: #444;
    font-size: 0.78rem;
    white-space: nowrap;
}
.followed-tag-unfollow-form { margin: 0; }
.followed-tag-unfollow-btn {
    background: transparent;
    border: 1px solid #333;
    color: #555;
    border-radius: 4px;
    padding: 3px 10px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.15s;
}
.followed-tag-unfollow-btn:hover {
    border-color: #d5171b;
    color: #d5171b;
}

.post-actions-bar .like-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: auto;
    margin: 0;
    padding: 6px 14px;
    font-size: 0.85rem;
    border-radius: 4px;
    border: 1px solid #444;
    background: transparent;
    color: #aaa;
    transition: all 0.15s;
}
.post-actions-bar .like-button:hover {
    border-color: #d5171b;
    color: #d5171b;
    background: transparent;
}
.post-actions-bar .like-button.liked {
    border-color: #d5171b;
    color: #d5171b;
    background: rgba(213,23,27,0.08);
}
.post-actions-bar .like-button.liked:hover {
    background: transparent;
    border-color: #444;
    color: #aaa;
}

/* ── Upload page – redesigned to match settings card style ─────────────── */
.mgal-upload-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    border-top: none;
    padding: 18px 20px;
}
.mgal-upload-card-head {
    background: transparent;
    color: #fff;
    font-family: 'changeling neo', sans-serif;
    font-size: 1.05rem;
    font-weight: bold;
    letter-spacing: 0.03em;
    padding: 0 0 12px 0;
    margin: 0 0 16px 0;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    align-items: center;
    gap: 10px;
}
.mgal-card-icon {
    color: #d5171b;
    font-size: 1rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}
.mgal-upload-page .mgal-field {
    padding: 0 0 0.75rem;
}
.mgal-upload-hint {
    padding: 0;
    margin-top: 0.5rem;
}
.mgal-upload-actions {
    padding: 0;
}

/* ── Post alternates thumbnail strip ── */
.post-alt-strip {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding: 8px 10px;
    align-items: center;
    background: #111;
    border-radius: 4px;
    margin-top: 6px;
    scrollbar-width: thin;
    scrollbar-color: #333 #111;
}
.post-alt-strip::-webkit-scrollbar { height: 4px; }
.post-alt-strip::-webkit-scrollbar-track { background: #111; }
.post-alt-strip::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }
.alt-thumb-btn {
    background: none;
    border: 2px solid #2a2a2a;
    border-radius: 3px;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.15s;
    flex-shrink: 0;
}
.alt-thumb-btn img {
    display: block;
    width: 80px;
    height: 80px;
    object-fit: cover;
}
.alt-thumb-btn:hover { border-color: #666; }
.alt-thumb-btn.active { border-color: #d5171b; }

/* ── Alternates mgal button ── */
.mgal-alt-add-btn {
    display: inline-flex;
    align-items: center;
    background: #252525;
    border: 1px solid #333;
    border-radius: 4px;
    color: #ccc;
    padding: 7px 14px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    user-select: none;
}
.mgal-alt-add-btn:hover { background: #2e2e2e; color: #fff; }

/* ── Post page inline edit button ── */
.post-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #252525;
    border: 1px solid #333;
    border-radius: 20px;
    color: #bbb;
    padding: 8px 18px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.post-edit-btn:hover { background: #2e2e2e; color: #fff; border-color: #555; }

/* ── Artist Stats Dashboard ───────────────────────────────────────────── */
.stats-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px 60px;
}
.stats-heading {
    margin-bottom: 28px;
}
.stats-title {
    font-family: 'Changeling Neo', sans-serif;
    font-size: 1.8rem;
    margin: 0 0 4px;
    color: #fff;
}
.stats-subtitle {
    color: #888;
    font-size: 0.9rem;
}

/* Summary cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 30px;
}
@media (max-width: 800px) {
    .stats-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
    .stats-cards { grid-template-columns: repeat(2, 1fr); }
}
.stat-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 20px 16px;
    text-align: center;
}
.stat-icon {
    font-size: 1.3rem;
    color: #d5171b;
    margin-bottom: 10px;
}
.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 6px;
}
.stat-label {
    font-size: 0.78rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Section layout */
.stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
@media (max-width: 700px) {
    .stats-row { grid-template-columns: 1fr; }
}
.stats-section {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}
.stats-section-full {
    grid-column: 1 / -1;
}
.stats-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ccc;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #252525;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.stats-empty {
    color: #555;
    font-size: 0.85rem;
}

/* Top posts list */
.stats-post-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.stats-post-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 5px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.stats-post-row:hover { background: #222; color: inherit; text-decoration: none; }
.stats-post-rank {
    width: 20px;
    text-align: center;
    font-size: 0.78rem;
    color: #555;
    flex-shrink: 0;
}
.stats-post-thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
    background: #111;
}
.stats-post-name {
    flex: 1;
    font-size: 0.85rem;
    color: #ccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stats-post-num {
    font-size: 0.8rem;
    color: #d5171b;
    flex-shrink: 0;
    font-weight: 600;
}

/* Bar chart */
.stats-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 160px;
    padding-bottom: 28px;
    position: relative;
}
.bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    height: 100%;
    position: relative;
}
.bar-count-top {
    font-size: 0.65rem;
    color: #666;
    margin-bottom: 4px;
    height: 14px;
    line-height: 14px;
}
.bar-wrap {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
}
.bar-fill {
    width: 100%;
    background: #d5171b;
    border-radius: 3px 3px 0 0;
    min-height: 2px;
    transition: height 0.3s;
}
.bar-label {
    position: absolute;
    bottom: 0;
    font-size: 0.62rem;
    color: #555;
    white-space: nowrap;
    text-align: center;
    line-height: 1;
}

/* Tag cloud */
.stats-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    align-items: baseline;
}
.stats-tag {
    color: #aaa;
    text-decoration: none;
    transition: color 0.15s;
    white-space: nowrap;
}
.stats-tag:hover { color: #d5171b; text-decoration: none; }
.stats-tag-count {
    font-size: 0.65em;
    color: #555;
    margin-left: 3px;
}

/* ── Post page artist follow button ──────────────────────────────────────── */
.post-artist-follow-btn {
    display: block; width: 100%; padding: 7px 12px;
    background: transparent; border: 1px solid #d5171b; border-radius: 4px;
    color: #d5171b; font-size: 0.82rem; font-weight: 600; cursor: pointer;
    text-align: center; transition: background 0.15s, color 0.15s;
}
.post-artist-follow-btn:hover { background: #d5171b; color: #fff; }
.post-artist-following-btn { background: #d5171b; color: #fff; }
.post-artist-following-btn:hover { background: #b01015; border-color: #b01015; }

/* ===== Request Artist page ===== */
.req-artist-page { padding: 2.5rem 0 4rem; }
.req-artist-wrap { max-width: 860px; }

.req-artist-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 2rem;
    padding-bottom: 1.2rem;
    border-bottom: 2px solid #d5171b;
}
.req-artist-icon { font-size: 2rem; color: #d5171b; flex-shrink: 0; }
.req-free-badge {
    display: inline-block;
    background: rgba(68,170,102,0.15);
    color: #4a9;
    border: 1px solid rgba(68,170,102,0.4);
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: bold;
    letter-spacing: 0.08em;
    padding: 1px 7px;
    vertical-align: middle;
    text-transform: uppercase;
    margin-left: 4px;
}

.req-artist-title {
    font-family: 'changeling neo', sans-serif;
    color: #fff;
    font-size: 1.75rem;
    letter-spacing: 0.04em;
    margin: 0 0 4px;
}
.req-artist-subtitle { color: #888; margin: 0; font-size: 0.95rem; }

.req-artist-pending {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-left: 4px solid #4a9;
    border-radius: 8px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
}
.req-pending-icon { color: #4a9; font-size: 1.6rem; margin-top: 2px; flex-shrink: 0; }
.req-pending-title { color: #fff; font-weight: bold; font-size: 1.1rem; margin-bottom: 6px; }
.req-pending-sub { color: #888; font-size: 0.9rem; }

.req-info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 640px) { .req-info-row { grid-template-columns: 1fr; } }

.req-info-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
}
.req-info-heading {
    font-family: 'changeling neo', sans-serif;
    color: #d5171b;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}
.req-info-heading i { margin-right: 6px; }
.req-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #ccc;
    font-size: 0.88rem;
    line-height: 1.7;
}
.req-info-list li::before { content: "\2022"; color: #d5171b; font-weight: bold; display: inline-block; width: 1em; margin-left: -1em; }
.req-info-list li { padding-left: 1em; }

.req-artist-error {
    background: rgba(213,23,27,0.12);
    border: 1px solid rgba(213,23,27,0.4);
    color: #f08;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
}

.req-form-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 1.75rem 2rem 2rem;
}
.req-form-heading {
    font-family: 'changeling neo', sans-serif;
    color: #fff;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #2a2a2a;
}

.req-field { margin-bottom: 1.25rem; }
.req-label {
    display: block;
    color: #bbb;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.req-label-hint {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: #555;
    margin-left: 6px;
}
.req-input, .req-textarea {
    width: 100%;
    background: #111;
    border: 1px solid #333;
    border-radius: 5px;
    color: #ddd;
    padding: 10px 13px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
}
.req-input:focus, .req-textarea:focus { border-color: #d5171b; }
.req-textarea { resize: vertical; min-height: 80px; }
.req-input::placeholder, .req-textarea::placeholder { color: #444; }


.req-file-row { display: flex; gap: 10px; flex-wrap: wrap; }
.req-file-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #111;
    border: 1px dashed #444;
    border-radius: 5px;
    color: #888;
    padding: 9px 16px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
    min-width: 200px;
}
.req-file-btn:hover { border-color: #d5171b; color: #ccc; }
.req-file-btn i { color: #555; flex-shrink: 0; }
.req-file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.req-file-input { display: none; }
.req-form-footer { margin-top: 1.75rem; }
.req-submit-btn {
    background: #d5171b;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 11px 28px;
    font-size: 0.95rem;
    font-family: 'changeling neo', sans-serif;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.15s;
}
.req-submit-btn:hover { background: #b01318; }
.req-submit-btn i { margin-right: 6px; }

/* ===== Admin news management ===== */
.admin-news-layout { display: flex; flex-direction: column; gap: 1.5rem; padding-top: 1rem; }

.admin-news-form-card,
.admin-news-list-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 1.5rem;
}
.admin-news-card-title {
    font-family: 'changeling neo', sans-serif;
    color: #fff;
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    align-items: center;
    gap: 8px;
}
.admin-news-card-title i { color: #d5171b; }
.admin-news-count {
    background: #2a2a2a;
    color: #888;
    font-size: 0.75rem;
    border-radius: 10px;
    padding: 1px 8px;
    font-weight: normal;
    margin-left: 4px;
}

.admin-news-field { margin-bottom: 1rem; }
.admin-news-label {
    display: block;
    color: #bbb;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
}
.admin-news-input {
    width: 100%;
    background: #111;
    border: 1px solid #333;
    border-radius: 5px;
    color: #ddd;
    padding: 9px 12px;
    font-size: 0.9rem;
    outline: none;
    box-sizing: border-box;
}
.admin-news-input:focus { border-color: #d5171b; }
.admin-news-btn-row { display: flex; gap: 8px; margin-top: 1rem; }

.admin-news-empty { color: #555; font-size: 0.9rem; padding: 0.5rem 0; }
.admin-news-list { display: flex; flex-direction: column; gap: 0; }

.admin-news-row {
    padding: 14px 4px;
    border-bottom: 1px solid #222;
}
.admin-news-row:last-child { border-bottom: none; }
.admin-news-row-hidden { opacity: 0.5; }

.admin-news-row-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}
.admin-news-row-date { color: #d5171b; font-size: 0.75rem; font-weight: bold; }
.admin-news-row-by { color: #555; font-size: 0.75rem; }
.admin-news-hidden-badge {
    background: #333;
    color: #888;
    font-size: 0.7rem;
    border-radius: 4px;
    padding: 1px 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.admin-news-row-title { color: #fff; font-weight: bold; font-size: 0.95rem; margin-bottom: 4px; }
.admin-news-row-preview { color: #666; font-size: 0.82rem; margin-bottom: 10px; line-height: 1.5; }
.admin-news-row-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ===== Admin main page actions ===== */
.admin-main-layout { display: flex; flex-direction: column; gap: 1.5rem; padding-top: 1rem; }

.admin-action-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 1.4rem 1.6rem;
}
.admin-action-card-danger { border-left: 3px solid #d5171b; }

.admin-action-title {
    font-family: 'changeling neo', sans-serif;
    color: #fff;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.admin-action-title i { color: #d5171b; }
.admin-action-card:not(.admin-action-card-danger) .admin-action-title i { color: #5b9bd5; }

.admin-action-desc {
    color: #666;
    font-size: 0.83rem;
    margin: 0 0 14px;
    line-height: 1.5;
}

.admin-action-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.admin-action-input {
    flex: 1;
    min-width: 140px;
    background: #111;
    border: 1px solid #333;
    border-radius: 5px;
    color: #ddd;
    padding: 8px 12px;
    font-size: 0.88rem;
    outline: none;
    box-sizing: border-box;
}
.admin-action-input:focus { border-color: #d5171b; }
.admin-action-input::placeholder { color: #444; }
.admin-action-select {
    background: #111;
    border: 1px solid #333;
    border-radius: 5px;
    color: #ddd;
    padding: 8px 10px;
    font-size: 0.88rem;
    outline: none;
}
.admin-action-select:focus { border-color: #5b9bd5; }
.admin-action-btn { white-space: nowrap; }

.admin-danger-section { display: flex; flex-direction: column; gap: 1rem; }
.admin-danger-header {
    color: #d5171b;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 0 2px;
    border-top: 1px solid #2a2a2a;
}
.admin-danger-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 700px) { .admin-danger-grid { grid-template-columns: 1fr; } }

/* ===== Unified admin panel ===== */
.admin-panel-section { padding: 0 0 4rem; }
.admin-panel-wrap { max-width: 1200px; padding: 0 16px; }

.admin-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0 0;
    margin-bottom: 0;
}
.admin-panel-title {
    font-family: 'changeling neo', sans-serif;
    color: #fff;
    font-size: 1.4rem;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 10px;
}
.admin-panel-title i { color: #d5171b; }
.admin-panel-identity { color: #555; font-size: 0.85rem; }
.admin-panel-identity i { margin-right: 4px; }

.admin-panel-tabs {
    display: flex;
    gap: 2px;
    margin: 1rem 0 0;
    border-bottom: 2px solid #2a2a2a;
    flex-wrap: wrap;
}
.admin-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    color: #888;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.admin-tab:hover { color: #ccc; text-decoration: none; }
.admin-tab-active { color: #fff; border-bottom-color: #d5171b; }
.admin-tab-danger { }
.admin-tab-danger:hover { color: #d5171b; }
.admin-tab-danger.admin-tab-active { color: #d5171b; border-bottom-color: #d5171b; }
.admin-tab-badge {
    background: #d5171b;
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 10px;
    padding: 1px 6px;
    line-height: 1.4;
}

.admin-panel-body { padding: 1.5rem 0 0; }

.admin-danger-intro {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(213,23,27,0.08);
    border: 1px solid rgba(213,23,27,0.3);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    color: #ccc;
    font-size: 0.88rem;
    line-height: 1.6;
}
.admin-danger-intro i { color: #d5171b; font-size: 1.1rem; margin-top: 2px; flex-shrink: 0; }

/* ===== Admin requests page ===== */
.req-list-wrap { padding-top: 0.5rem; }
.req-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 6px;
}
.req-list-count { color: #fff; font-weight: bold; font-size: 0.9rem; }
.req-list-hint { color: #555; font-size: 0.8rem; }

.req-card-list { display: flex; flex-direction: column; gap: 8px; }
.req-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-left: 3px solid #d5171b;
    border-radius: 6px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.15s;
}
.req-card:hover { background: #202020; }
.req-card-main { flex: 1; min-width: 0; }
.req-card-names { display: flex; align-items: baseline; gap: 10px; margin-bottom: 5px; flex-wrap: wrap; }
.req-card-username { color: #fff; font-weight: bold; font-size: 0.95rem; }
.req-card-displayname { color: #888; font-size: 0.82rem; }
.req-card-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 6px; }
.req-card-meta span { color: #555; font-size: 0.78rem; }
.req-card-meta i { margin-right: 4px; }
.req-card-preview {
    color: #666;
    font-size: 0.8rem;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.req-card-arrow { color: #333; font-size: 0.85rem; flex-shrink: 0; }
.req-card:hover .req-card-arrow { color: #d5171b; }

/* Dark modal */
.req-modal-content {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #ddd;
}
.req-modal-header {
    background: #111;
    border-bottom: 1px solid #2a2a2a;
    padding: 14px 20px;
}
.req-modal-title { color: #fff; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.req-modal-title i { color: #d5171b; }
.req-modal-close { color: #888; opacity: 1; text-shadow: none; }
.req-modal-close:hover { color: #fff; }
.req-modal-body { padding: 20px; }
.req-modal-footer { background: #111; border-top: 1px solid #2a2a2a; }
.req-modal-section-label {
    color: #d5171b;
    font-size: 0.72rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}
.req-modal-date { color: #666; font-size: 0.8rem; margin-bottom: 8px; }
.req-modal-text {
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 0.85rem;
    color: #ccc;
    line-height: 1.6;
}
.req-modal-action-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.req-modal-select {
    background: #111;
    border: 1px solid #333;
    border-radius: 4px;
    color: #ddd;
    padding: 7px 10px;
    font-size: 0.88rem;
    outline: none;
}

/* ===== Admin panel — dark Bootstrap overrides ===== */

/* Tables */
.admin-panel-body .table {
    color: #ccc;
    background: transparent;
}
.admin-panel-body .table thead th {
    background: #111;
    color: #888;
    border-color: #2a2a2a;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    white-space: nowrap;
}
.admin-panel-body .table td,
.admin-panel-body .table th {
    border-color: #222;
    vertical-align: middle;
    color: #ccc;
}
.admin-panel-body .table-hover tbody tr:hover td,
.admin-panel-body .table-hover tbody tr:hover th {
    background: #1e1e1e;
    color: #fff;
    cursor: pointer;
}
.admin-panel-body .table tbody tr { background: transparent; }
.admin-panel-body .table-striped tbody tr:nth-of-type(odd) { background: rgba(255,255,255,0.02); }

/* Pagination */
.admin-panel-body .page-link {
    background: #1a1a1a;
    border-color: #2a2a2a;
    color: #888;
}
.admin-panel-body .page-link:hover { background: #252525; color: #fff; border-color: #333; }
.admin-panel-body .page-item.active .page-link { background: #d5171b; border-color: #d5171b; color: #fff; }
.admin-panel-body .page-item.disabled .page-link { background: #111; color: #444; border-color: #222; }

/* Modals */
.modal-content {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #ddd;
}
.modal-header {
    background: #111;
    border-bottom: 1px solid #2a2a2a;
}
.modal-footer {
    background: #111;
    border-top: 1px solid #2a2a2a;
}
.modal-title { color: #fff; }
.modal .close { color: #888; text-shadow: none; opacity: 1; }
.modal .close:hover { color: #fff; }

/* Form controls inside admin */
.admin-panel-body .form-control,
.modal .form-control {
    background: #111;
    border-color: #333;
    color: #ddd;
}
.admin-panel-body .form-control:focus,
.modal .form-control:focus {
    background: #111;
    border-color: #d5171b;
    color: #fff;
    box-shadow: none;
}
.admin-panel-body .form-control::placeholder,
.modal .form-control::placeholder { color: #444; }

/* Input groups */
.admin-panel-body .input-group-text {
    background: #1a1a1a;
    border-color: #333;
    color: #888;
}
.admin-panel-body .btn-outline-secondary {
    border-color: #444;
    color: #888;
}
.admin-panel-body .btn-outline-secondary:hover {
    background: #2a2a2a;
    border-color: #555;
    color: #fff;
}

/* Labels and text */
.admin-panel-body label { color: #aaa; }
.admin-panel-body .form-check-label { color: #aaa; }
.admin-panel-body small,
.admin-panel-body .text-muted { color: #555 !important; }

/* Alerts inside admin */
.admin-panel-body .alert-danger { background: rgba(213,23,27,0.15); border-color: rgba(213,23,27,0.4); color: #f88; }
.admin-panel-body .alert-success { background: rgba(68,170,102,0.12); border-color: rgba(68,170,102,0.35); color: #7d7; }

/* ===== Admin dashboard cards ===== */
.admin-dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding-top: 1rem;
}
@media (max-width: 600px) { .admin-dash-grid { grid-template-columns: 1fr; } }

.admin-dash-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}
.admin-dash-card:hover { background: #202020; border-color: #444; text-decoration: none; }
.admin-dash-card-danger { border-left: 3px solid #d5171b; }
.admin-dash-card-danger:hover { border-color: #d5171b; }

.admin-dash-icon { font-size: 1.6rem; color: #d5171b; margin-bottom: 4px; }
.admin-dash-card-danger .admin-dash-icon { color: #d5171b; opacity: 0.8; }

.admin-dash-title {
    font-family: 'changeling neo', sans-serif;
    color: #fff;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.admin-dash-badge {
    background: #d5171b;
    color: #fff;
    font-size: 0.72rem;
    font-weight: bold;
    border-radius: 10px;
    padding: 1px 7px;
    font-family: sans-serif;
}
.admin-dash-desc { color: #666; font-size: 0.85rem; line-height: 1.5; }

/* Wider request review modal */
@media (min-width: 1200px) {
    .req-modal-dialog { max-width: 860px; }
}
.req-modal-dialog .modal-body { padding: 24px 28px; }

/* ===== Notification per-type chips ===== */
.notif-chip {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 8px;
    padding: 1px 6px;
    line-height: 1.6;
    vertical-align: middle;
    margin-left: 2px;
    letter-spacing: 0.02em;
}
.notif-chip-comment  { background: #c17d00; color: #fff; }
.notif-chip-like     { background: #b01a1a; color: #fff; }
.notif-chip-upload   { background: #1a5fa8; color: #fff; }
.notif-chip-request  { background: #1a7a3a; color: #fff; }
.notif-chip-journal  { background: #6a2a9a; color: #fff; }


/* ===== Guest top banner ===== */
.guest-top-bar {
    background: #111;
    border-bottom: 2px solid #d5171b;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 0.83rem;
}
.guest-top-bar-label {
    color: #fff;
    font-weight: bold;
    font-size: 0.85rem;
    margin-right: 4px;
    white-space: nowrap;
}
.guest-top-bar .member-perk {
    font-size: 0.8rem;
}
.guest-top-bar-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}
.guest-top-bar-register {
    background: #d5171b;
    color: #fff !important;
    border-radius: 4px;
    padding: 5px 14px;
    font-weight: bold;
    font-size: 0.82rem;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.15s;
}
.guest-top-bar-register:hover { background: #b01015; color: #fff !important; }
.guest-top-bar-login {
    color: #aaa !important;
    font-size: 0.82rem;
    text-decoration: none !important;
    white-space: nowrap;
    border: 1px solid #555;
    border-radius: 4px;
    padding: 5px 12px;
    transition: border-color 0.15s, color 0.15s;
}
.guest-top-bar-login:hover { color: #fff !important; border-color: #fff; }
@media (max-width: 600px) {
    .guest-top-bar-actions { margin-left: 0; }
}


/* ============================================================
   MOBILE / RESPONSIVE IMPROVEMENTS  (max-width: 768px)
   ============================================================ */

/* --- Global touch targets & spacing --- */
@media (max-width: 768px) {
    /* Comfortable tap targets */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="search"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important; /* prevents iOS zoom */
        min-height: 44px;
        padding: 8px 12px;
        box-sizing: border-box;
    }
    button, .btn, input[type="submit"] {
        min-height: 44px;
    }

    /* Container horizontal padding */
    .container, .container-fluid {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Header logo: show a compact version on mobile */
    .mainlogo {
        overflow: hidden;
    }
    .mainlogo a img {
        min-width: 0 !important;
    }

    /* --- Guest top bar: stack on small screens --- */
    .guest-top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 14px;
    }
    .guest-top-bar-actions {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
    }
    .guest-top-bar-register,
    .guest-top-bar-login {
        flex: 1;
        text-align: center;
    }

    /* --- Member perks bar: wrap chips tightly --- */
    .member-perks-bar {
        padding: 8px 12px;
        gap: 5px 8px;
    }
    .index-join-perks {
        gap: 5px;
    }

    /* --- Index join bar --- */
    .index-join-bar { padding: 1rem; }
    .index-join-inner {
        flex-direction: column;
        gap: 1rem;
    }
    .index-join-actions {
        width: 100%;
        justify-content: flex-start;
    }
    .index-join-btn-primary,
    .index-join-btn-secondary {
        flex: 1;
        text-align: center;
    }

    /* --- Search bar in galleries --- */
    .gall-search-form {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .gall-search-input,
    .gall-search-select {
        width: 100%;
        font-size: 16px !important;
    }
    .gall-search-form .btn,
    .gall-search-form button {
        width: 100%;
    }

    /* --- Search results page --- */
    .search-form {
        flex-direction: column;
    }
    .search-input { width: 100%; }
    .search-select { width: 100%; }

    /* --- Post page: action buttons stacking --- */
    .post-actions-bar {
        flex-wrap: wrap;
        gap: 8px;
    }
    .post-actions-bar .btn,
    .post-actions-bar a {
        flex: 1 1 auto;
        text-align: center;
        min-width: 80px;
    }

    /* --- Post: tags wrap on mobile --- */
    .post-tags-wrap {
        flex-wrap: wrap;
    }

    /* --- Comments: full-width form --- */
    .post-comment-form textarea,
    .post-comment-form input {
        width: 100%;
    }

    /* --- Settings cards --- */
    .settings-save-row {
        flex-wrap: wrap;
        gap: 8px;
    }
    .settings-save-row .btn {
        flex: 1 1 auto;
    }

    /* --- Notifications page --- */
    .notif-list-item {
        flex-wrap: wrap;
        gap: 6px;
    }

    /* --- Admin panel --- */
    .admin-dash-grid {
        grid-template-columns: 1fr 1fr;
    }
    .admin-log-table th:last-child,
    .admin-log-table td:last-child {
        display: none; /* hide user-agent column on mobile */
    }

    /* --- Gallery search form on profile/search pages --- */
    form[action*="searchall"] {
        flex-direction: column;
    }
    form[action*="searchall"] input[type="text"],
    form[action*="searchall"] select {
        width: 100%;
    }
}

/* Extra-small: phones under 480px */
@media (max-width: 480px) {
    .admin-dash-grid {
        grid-template-columns: 1fr;
    }

    /* Moderator panel tabs */
    .mod-tab-bar {
        flex-direction: column;
        gap: 4px;
    }
    .mod-tab {
        width: 100%;
        text-align: center;
    }

    /* Member perk chips: 2-per-row */
    .member-perks-bar,
    .index-join-perks {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .member-perks-label {
        grid-column: 1 / -1;
    }
    .guest-top-bar {
        display: flex;
        flex-direction: column;
    }

    /* Index feature cards */
    .tja-fb-top {
        grid-template-columns: 1fr;
    }

    /* Gallery recent images: 2 columns */
    .galleries-images-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Smaller heading on anniversary bar */
    .anniverseryBox {
        font-size: 0.85rem;
    }

    /* Notifications bell chips: smaller */
    .notif-chip {
        font-size: 0.65rem;
        padding: 1px 4px;
    }
}


/* ===== Tag autocomplete ===== */
.search-ac-wrap { position: relative; }
.tja-ac-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border: 1px solid #d5171b;
    border-top: none;
    z-index: 500;
    max-height: 260px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}
.tja-ac-item {
    padding: 9px 14px;
    cursor: pointer;
    font-size: 0.88rem;
    color: #ddd;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #222;
}
.tja-ac-item i { color: #d5171b; font-size: 0.75rem; flex-shrink: 0; }
.tja-ac-item:hover,
.tja-ac-item.tja-ac-active { background: #2a2a2a; color: #fff; }
.tja-ac-item strong { color: #d5171b; }
.search-ac-hint {
    font-size: 0.75rem;
    color: #666;
    padding: 4px 0 0;
    font-style: italic;
}

/* ===== AND search badge bar ===== */
.search-and-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 0;
    margin-bottom: 4px;
}
.search-and-label {
    color: #888;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.search-and-tag {
    background: #1e1e1e;
    border: 1px solid #d5171b;
    color: #eee;
    border-radius: 20px;
    padding: 3px 11px;
    font-size: 0.82rem;
}
.search-and-hint {
    color: #555;
    font-size: 0.75rem;
    font-style: italic;
    margin-left: 4px;
}


/* ===== Upload page: publish bar & file rows ===== */
.mgal-publish-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0 4px;
    border-top: 2px solid #2a2a2a;
    margin-top: 20px;
    flex-wrap: wrap;
}
.mgal-btn-publish {
    background: #d5171b;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 14px 36px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    box-shadow: 0 4px 14px rgba(213,23,27,0.35);
    letter-spacing: 0.02em;
}
.mgal-btn-publish:hover:not(:disabled) {
    background: #b01015;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(213,23,27,0.45);
}
.mgal-btn-publish:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}
.mgal-publish-hint {
    color: #666;
    font-size: 0.85rem;
    font-style: italic;
}
.upload-file-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #1e1e1e;
}
.upload-file-row:last-child { border-bottom: none; }
.upload-file-thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #333;
    flex-shrink: 0;
}
.upload-file-name {
    flex: 1;
    min-width: 0;
}


/* ===== Gallery tree open button ===== */
.gal-open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    background: #252525;
    border: 1px solid #333;
    color: #777;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    margin-right: 7px;
    font-size: 0.82rem;
    vertical-align: middle;
    padding: 0;
}
.gal-open-btn:hover {
    background: #d5171b;
    border-color: #d5171b;
    color: #fff;
}
.list-group-item.activeCategory .gal-open-btn {
    background: #d5171b;
    border-color: #d5171b;
    color: #fff;
}
.gal-tree-label {
    cursor: pointer;
}
.gal-tree-label:hover {
    color: #fff;
}


/* ===== Manage gallery upload button ===== */
.mgal-upload-btn {
    background: #1a3a5c !important;
    border-color: #4a90d9 !important;
    color: #7ec8f7 !important;
    padding: 8px 20px !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.02em;
}
.mgal-upload-btn:hover {
    background: #1e4d7a !important;
    color: #aadcff !important;
    border-color: #6aaee8 !important;
}
.mgal-upload-btn i { color: inherit; }


/* ===== Profile Banner Hero ===== */
.profile-banner-hero {
    width: 100%;
    height: 280px;
    background-color: #111;
    background-size: cover;
    background-position: center 30%;
    position: relative;
    flex-shrink: 0;
}
.profile-banner-default {
    background: linear-gradient(135deg, #181818 0%, #1e1e1e 40%, #141414 100%);
}
.profile-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(17,17,17,0.80) 100%);
    pointer-events: none;
}
/* Pull the profile wrap up to overlap the banner bottom edge */
.profile-page-wrap {
    padding-top: 0 !important;
}
.profile-wrap {
    margin-top: -60px;
    position: relative;
    z-index: 2;
}
.profile-sidebar {
    position: relative;
    z-index: 3;
}
/* Avatar box gets a ring so it pops against the banner */
.profile-avatar-box img {
    border: 3px solid #2a2a2a;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

/* ===== Settings: banner card helpers ===== */
.settings-banner-preview {
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #2e2e2e;
    display: block;
}
.settings-banner-remove {
    display: inline-flex;
    align-items: center;
    color: #888;
    font-size: 0.82rem;
    margin-top: 6px;
    cursor: pointer;
}
.settings-file-input {
    color: #aaa;
    margin-top: 8px;
}
.settings-field-hint {
    display: block;
    color: #555;
    font-size: 0.8rem;
    margin-top: 5px;
    line-height: 1.5;
}

.search-tags-browse { color: #555; font-size: 0.8em; }
.search-tags-browse:hover { color: #d5171b; }

.gall-search-links { display:flex; gap:12px; margin-top:8px; }
.gall-search-link { color:#999; font-size:0.8rem; text-decoration:none; transition:color 0.15s; }
.gall-search-link:hover { color:#d5171b; text-decoration:none; }
.gall-search-link i { margin-right:4px; color:#d5171b; }
