/**
 * phpBB Resource Manager - Universal Modern Stylesheet (styles/all)
 * 2026 Modern Web Standards - Fully compatible with prosilver, Mobbern, and all styles
 */

:root {
	--rm-primary: #4f46e5;
	--rm-primary-hover: #4338ca;
	--rm-primary-light: #eef2ff;
	--rm-primary-border: #c7d2fe;
	--rm-success: #10b981;
	--rm-success-hover: #059669;
	--rm-discuss: #2563eb;
	--rm-discuss-hover: #1d4ed8;
	--rm-card-bg: #ffffff;
	--rm-card-border: #e2e8f0;
	--rm-card-radius: 16px;
	--rm-card-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.05), 0 1px 2px -1px rgba(15, 23, 42, 0.03);
	--rm-hover-shadow: 0 14px 28px -6px rgba(79, 70, 229, 0.12), 0 6px 12px -3px rgba(15, 23, 42, 0.04);
	--rm-trans: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
	--rm-text-main: #0f172a;
	--rm-text-sub: #64748b;
}

/* Header dropdown stacking context fix */
#page-header,
.navbar,
.headerbar,
.navbar-top,
.header-top,
.controls-btn,
.controls-btn li {
	position: relative;
	z-index: 100;
}

.dropdown,
.dropdown-container .dropdown,
.dropdown-extended,
.notification_list,
#notification_list {
	z-index: 9999 !important;
}

/* Base Wrapper Reset */
.rm-scope {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--rm-text-main);
	margin-bottom: 30px;
	position: relative;
	z-index: 1;
}

.rm-scope * {
	box-sizing: border-box;
}

/* ==========================================================================
   1. HERO BANNER
   ========================================================================== */
.rm-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #1e293b 100%);
	border-radius: var(--rm-card-radius);
	padding: 26px 30px;
	margin-bottom: 22px;
	color: #ffffff;
	box-shadow: 0 10px 25px -5px rgba(30, 27, 75, 0.25);
	z-index: 1;
}

.rm-hero-glow {
	position: absolute;
	top: -50%;
	left: 25%;
	width: 450px;
	height: 250px;
	background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, rgba(168, 85, 247, 0) 70%);
	filter: blur(40px);
	pointer-events: none;
	z-index: 0;
}

.rm-hero-content {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
}

.rm-hero-title {
	margin: 0;
	font-size: 1.65rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #ffffff;
	display: flex;
	align-items: center;
	gap: 12px;
}

.rm-hero-desc {
	margin: 5px 0 0 0;
	font-size: 0.9rem;
	color: #cbd5e1;
	line-height: 1.5;
}

/* Buttons */
.rm-btn-hero {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 22px;
	border-radius: 9999px;
	background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
	color: #ffffff !important;
	font-size: 0.88rem;
	font-weight: 700;
	text-decoration: none !important;
	border: 1px solid rgba(255, 255, 255, 0.25);
	box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
	transition: var(--rm-trans);
	white-space: nowrap;
	cursor: pointer;
}

.rm-btn-hero:hover {
	background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
	box-shadow: 0 6px 20px rgba(99, 102, 241, 0.55);
	transform: translateY(-2px);
}

/* ==========================================================================
   2. DASHBOARD BAR & SEARCH
   ========================================================================== */
.rm-dashbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 22px;
	padding: 12px 18px;
	background: #ffffff;
	border: 1px solid var(--rm-card-border);
	border-radius: var(--rm-card-radius);
	box-shadow: var(--rm-card-shadow);
}

.rm-search-box {
	position: relative;
	min-width: 240px;
	flex: 1;
	max-width: 360px;
}

.rm-search-input {
	width: 100% !important;
	padding: 8px 16px 8px 36px !important;
	border-radius: 9999px !important;
	border: 1px solid #cbd5e1 !important;
	background: #f8fafc !important;
	font-size: 0.85rem !important;
	color: #0f172a !important;
	outline: none !important;
	transition: var(--rm-trans) !important;
	box-sizing: border-box !important;
}

[dir="rtl"] .rm-search-input {
	padding: 8px 36px 8px 16px !important;
}

.rm-search-input:focus {
	background: #ffffff !important;
	border-color: var(--rm-primary) !important;
	box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12) !important;
}

.rm-search-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: #94a3b8;
	pointer-events: none;
}

[dir="rtl"] .rm-search-icon {
	left: auto;
	right: 12px;
}

/* Segmented Control Layout Switcher */
.rm-layout-switcher {
	display: inline-flex;
	align-items: center;
	background: #f1f5f9;
	padding: 3px;
	border-radius: 12px;
	gap: 2px;
	border: 1px solid var(--rm-card-border);
}

.rm-layout-switcher a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border-radius: 9px;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--rm-text-sub);
	text-decoration: none !important;
	transition: var(--rm-trans);
}

.rm-layout-switcher a:hover {
	color: var(--rm-text-main);
}

.rm-layout-switcher a.active {
	background: #ffffff;
	color: var(--rm-primary);
	font-weight: 700;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   3. SIDEBAR CATEGORIES & STATS
   ========================================================================== */
.rm-container {
	margin-bottom: 24px;
}

.rm-grid,
.rm-layout {
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
	align-items: flex-start;
	width: 100%;
	box-sizing: border-box;
}

.rm-sidebar {
	flex: 1 1 250px;
	max-width: 290px;
}

.rm-main {
	flex: 3 1 540px;
	min-width: 0;
}

@media (max-width: 800px) {
	.rm-sidebar {
		max-width: 100%;
		flex: 1 1 100%;
	}
	.rm-main {
		flex: 1 1 100%;
	}
}

.rm-sidebar-card {
	background: #ffffff;
	border: 1px solid var(--rm-card-border);
	border-radius: var(--rm-card-radius);
	overflow: hidden;
	box-shadow: var(--rm-card-shadow);
	margin-bottom: 20px;
}

.rm-sidebar-header {
	padding: 15px 20px;
	border-bottom: 1px solid #f1f5f9;
	background: #ffffff;
	font-weight: 700;
	font-size: 0.94rem;
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--rm-text-main);
}

.rm-sidebar-header i {
	color: var(--rm-primary);
}

.rm-cat-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.rm-cat-list li {
	border-bottom: 1px solid #f8fafc;
}

.rm-cat-list li:last-child {
	border-bottom: none;
}

.rm-cat-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 20px;
	text-decoration: none !important;
	color: #475569;
	font-size: 0.88rem;
	font-weight: 500;
	transition: var(--rm-trans);
}

.rm-cat-list a:hover {
	background: #f8fafc;
	color: var(--rm-primary);
	padding-inline-start: 24px;
}

.rm-cat-list li.active a {
	background: var(--rm-primary-light);
	color: var(--rm-primary);
	font-weight: 700;
	border-inline-start: 3px solid var(--rm-primary);
}

.rm-count-badge {
	font-size: 0.72rem;
	font-weight: 700;
	padding: 2px 9px;
	border-radius: 9999px;
	background: #f1f5f9;
	color: #64748b;
	transition: var(--rm-trans);
}

.rm-cat-list li.active .rm-count-badge {
	background: var(--rm-primary);
	color: #ffffff;
}

/* Sidebar Stats Widget */
.rm-stats-widget {
	padding: 16px 20px;
	background: #f8fafc;
	border-top: 1px solid #f1f5f9;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	text-align: center;
}

.rm-stat-tile {
	background: #ffffff;
	border: 1px solid var(--rm-card-border);
	border-radius: 12px;
	padding: 10px 8px;
}

.rm-stat-num {
	font-size: 1.15rem;
	font-weight: 800;
	color: var(--rm-text-main);
}

.rm-stat-label {
	font-size: 0.72rem;
	color: var(--rm-text-sub);
	font-weight: 600;
	margin-top: 2px;
}

/* ==========================================================================
   4. GRID VIEW CARDS
   ========================================================================== */
.rm-grid-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 22px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.rm-card-item {
	background: #ffffff;
	border: 1px solid var(--rm-card-border);
	border-radius: var(--rm-card-radius);
	padding: 22px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-shadow: var(--rm-card-shadow);
	transition: var(--rm-trans);
	position: relative;
	overflow: hidden;
}

.rm-card-item:hover {
	border-color: rgba(79, 70, 229, 0.45);
	box-shadow: var(--rm-hover-shadow);
	transform: translateY(-4px);
}

.rm-card-top {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 14px;
}

/* Squircle Icon Container */
.rm-item-icon {
	width: 52px;
	height: 52px;
	border-radius: 16px;
	background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(139, 92, 246, 0.12) 100%);
	color: var(--rm-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	border: 1px solid rgba(79, 70, 229, 0.16);
	box-shadow: 0 4px 10px rgba(79, 70, 229, 0.08);
	overflow: hidden;
	transition: var(--rm-trans);
	font-size: 1.4rem;
}

.rm-card-item:hover .rm-item-icon {
	transform: scale(1.05);
	border-color: rgba(79, 70, 229, 0.3);
}

.rm-item-icon img {
	width: 100%;
	height: 100%;
	border-radius: 16px;
	object-fit: cover;
}

.rm-card-title {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--rm-text-main);
	text-decoration: none !important;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.15s ease;
}

.rm-card-title:hover {
	color: var(--rm-primary);
}

/* Modern Version Pill */
.rm-version-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.72rem;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 9999px;
	background: #ecfdf5;
	color: #059669;
	border: 1px solid #a7f3d0;
	line-height: 1.2;
}

.rm-version-badge::before {
	content: "";
	display: inline-block;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #10b981;
}

/* Category Badge */
.rm-cat-tag {
	font-size: 0.72rem;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 6px;
	background: #f1f5f9;
	color: #475569;
	border: 1px solid #e2e8f0;
	display: inline-block;
}

.rm-card-desc {
	font-size: 0.85rem;
	color: var(--rm-text-sub);
	line-height: 1.6;
	margin: 0 0 18px 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.rm-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 16px;
	border-top: 1px solid #f1f5f9;
}

.rm-author-mini {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.78rem;
	color: var(--rm-text-sub);
	font-weight: 500;
}

.rm-author-mini-avatar {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	flex-shrink: 0;
}

.rm-author-mini-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rm-btn-download {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 16px;
	border-radius: 9999px;
	background: linear-gradient(135deg, var(--rm-success) 0%, var(--rm-success-hover) 100%) !important;
	color: #ffffff !important;
	font-size: 0.8rem;
	font-weight: 700;
	text-decoration: none !important;
	border: none;
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.28);
	transition: var(--rm-trans);
	white-space: nowrap;
	cursor: pointer;
}

.rm-btn-download:hover {
	background: linear-gradient(135deg, #34d399 0%, var(--rm-success) 100%) !important;
	box-shadow: 0 6px 16px rgba(16, 185, 129, 0.42);
	transform: translateY(-2px);
}

.rm-btn-discuss {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 16px;
	border-radius: 9999px;
	background: linear-gradient(135deg, var(--rm-discuss) 0%, var(--rm-discuss-hover) 100%) !important;
	color: #ffffff !important;
	font-size: 0.8rem;
	font-weight: 700;
	text-decoration: none !important;
	border: none;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
	transition: var(--rm-trans);
	white-space: nowrap;
	cursor: pointer;
}

.rm-btn-discuss:hover {
	background: linear-gradient(135deg, #60a5fa 0%, var(--rm-discuss) 100%) !important;
	box-shadow: 0 6px 16px rgba(37, 99, 235, 0.42);
	transform: translateY(-2px);
}

/* ==========================================================================
   5. LIST VIEW (FLOATING CARD ROWS)
   ========================================================================== */
.rm-item-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.rm-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 22px;
	background: #ffffff;
	border: 1px solid var(--rm-card-border);
	border-radius: var(--rm-card-radius);
	box-shadow: var(--rm-card-shadow);
	transition: var(--rm-trans);
}

.rm-item:hover {
	border-color: rgba(79, 70, 229, 0.45);
	box-shadow: var(--rm-hover-shadow);
	transform: translateY(-2px);
}

.rm-item-left {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	flex-grow: 1;
	min-width: 0;
}

.rm-item-desc {
	font-size: 0.88rem;
	color: var(--rm-text-sub);
	line-height: 1.55;
	margin: 4px 0 6px 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.rm-item-meta {
	font-size: 0.78rem;
	color: var(--rm-text-sub);
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 4px;
}

.rm-item-right {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-shrink: 0;
	margin-inline-start: 16px;
}

.rm-stat-box {
	text-align: center;
	padding: 6px 14px;
	border-radius: 12px;
	background: #f8fafc;
	border: 1px solid var(--rm-card-border);
	min-width: 74px;
}

.rm-stat-box .count {
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--rm-text-main);
	display: block;
}

.rm-stat-box .text {
	font-size: 0.68rem;
	color: var(--rm-text-sub);
	font-weight: 600;
	text-transform: uppercase;
	display: block;
	margin-top: 2px;
}

/* ==========================================================================
   6. RESOURCE VIEW PAGE
   ========================================================================== */
.rm-view-card {
	background: #ffffff;
	border: 1px solid var(--rm-card-border);
	border-radius: 20px;
	padding: 28px;
	box-shadow: var(--rm-card-shadow);
	margin-bottom: 22px;
}

.rm-view-header-strip {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 18px;
	margin-bottom: 22px;
	padding-bottom: 20px;
	border-bottom: 1px solid #f1f5f9;
}

.rm-view-icon-wrap {
	width: 64px;
	height: 64px;
	border-radius: 18px;
	background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(139, 92, 246, 0.15) 100%);
	color: var(--rm-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(79, 70, 229, 0.2);
	box-shadow: 0 6px 16px rgba(79, 70, 229, 0.12);
	flex-shrink: 0;
	font-size: 1.8rem;
	overflow: hidden;
}

.rm-view-icon-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rm-attach-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px;
	padding: 18px 22px;
	border-radius: 16px;
	background: #f8fafc;
	border: 1px solid var(--rm-card-border);
	margin-top: 24px;
	transition: var(--rm-trans);
}

.rm-attach-card:hover {
	background: #ffffff;
	border-color: rgba(16, 185, 129, 0.4);
	box-shadow: 0 4px 14px rgba(16, 185, 129, 0.08);
}

.rm-author-card-body {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px;
}

.rm-author-avatar-big {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	overflow: hidden;
	background: #f1f5f9;
	border: 1px solid var(--rm-card-border);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 1.5rem;
}

.rm-author-avatar-big img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rm-meta-table {
	list-style: none;
	padding: 0;
	margin: 0;
	font-size: 0.88rem;
}

.rm-meta-table li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 11px 18px;
	border-bottom: 1px solid #f1f5f9;
}

.rm-meta-table li:last-child {
	border-bottom: none;
}

/* ==========================================================================
   7. ADD / EDIT RESOURCE FORM
   ========================================================================== */
.rm-form-container {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	margin-bottom: 30px;
}

.rm-form-card {
	background: #ffffff;
	border: 1px solid var(--rm-card-border);
	border-radius: 20px;
	padding: 32px;
	box-shadow: var(--rm-card-shadow);
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
}

.rm-form-group {
	margin-bottom: 20px;
}

.rm-form-label {
	display: block;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--rm-text-main);
	margin-bottom: 6px;
}

.rm-form-input {
	width: 100% !important;
	padding: 10px 16px !important;
	border-radius: 12px !important;
	border: 1px solid #cbd5e1 !important;
	background: #ffffff !important;
	font-size: 0.9rem !important;
	color: var(--rm-text-main) !important;
	transition: var(--rm-trans) !important;
	box-sizing: border-box !important;
	outline: none !important;
}

.rm-form-input:focus {
	border-color: var(--rm-primary) !important;
	box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12) !important;
}

.rm-dropzone {
	border: 2px dashed #cbd5e1;
	border-radius: 16px;
	padding: 28px 20px;
	text-align: center;
	background: #f8fafc;
	transition: var(--rm-trans);
	cursor: pointer;
}

.rm-dropzone:hover {
	border-color: var(--rm-primary);
	background: rgba(79, 70, 229, 0.03);
}

/* RTL Helpers */
[dir="rtl"] .rm-version-badge {
	direction: ltr;
}

[dir="rtl"] .rm-arrow-flip {
	transform: scaleX(-1);
}

/* ==========================================================================
   8. TABS & MULTI-VERSION UPDATES (Phase 1)
   ========================================================================== */
.rm-tabs-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 20px;
	background: #ffffff;
	border: 1px solid var(--rm-card-border);
	border-radius: var(--rm-card-radius);
	padding: 6px 12px;
	box-shadow: var(--rm-card-shadow);
}

.rm-tabs-nav {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.rm-tab-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 18px;
	border-radius: 12px;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--rm-text-sub);
	text-decoration: none !important;
	transition: var(--rm-trans);
}

.rm-tab-btn:hover {
	color: var(--rm-primary);
	background: #f8fafc;
}

.rm-tab-btn.active {
	background: var(--rm-primary-light);
	color: var(--rm-primary);
	font-weight: 700;
}

.rm-tab-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 2px 7px;
	border-radius: 9999px;
	font-size: 0.72rem;
	font-weight: 700;
	background: #e2e8f0;
	color: #475569;
}

.rm-tab-btn.active .rm-tab-badge {
	background: var(--rm-primary);
	color: #ffffff;
}

.rm-tab-action-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 16px;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--rm-primary) 0%, #4338ca 100%);
	color: #ffffff !important;
	font-size: 0.84rem;
	font-weight: 700;
	text-decoration: none !important;
	box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
	transition: var(--rm-trans);
	border: 1px solid transparent;
	cursor: pointer;
}

.rm-tab-action-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
	color: #ffffff !important;
}

.rm-tab-action-btn.rm-btn-secondary {
	background: #ffffff !important;
	color: #334155 !important;
	border: 1px solid #cbd5e1 !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.rm-tab-action-btn.rm-btn-secondary:hover {
	background: #f8fafc !important;
	color: var(--rm-primary) !important;
	border-color: #94a3b8 !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.rm-tab-action-btn.rm-btn-outline {
	background: #f8fafc !important;
	color: var(--rm-primary) !important;
	border: 1px solid #c7d2fe !important;
	box-shadow: 0 1px 3px rgba(79, 70, 229, 0.08);
}

.rm-tab-action-btn.rm-btn-outline:hover {
	background: #eef2ff !important;
	color: #3730a3 !important;
	border-color: var(--rm-primary) !important;
	box-shadow: 0 3px 8px rgba(79, 70, 229, 0.18);
}

.rm-tab-action-btn.rm-btn-warning {
	background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
	color: #ffffff !important;
	box-shadow: 0 2px 8px rgba(217, 119, 6, 0.25);
}

.rm-tab-action-btn.rm-btn-warning:hover {
	box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}

.rm-tab-action-btn.rm-btn-danger {
	background: #fef2f2 !important;
	color: #dc2626 !important;
	border: 1px solid #fecaca !important;
	box-shadow: 0 1px 3px rgba(220, 38, 38, 0.08);
}

.rm-tab-action-btn.rm-btn-danger:hover {
	background: #dc2626 !important;
	color: #ffffff !important;
	border-color: #dc2626 !important;
	box-shadow: 0 3px 8px rgba(220, 38, 38, 0.25);
}

/* Default Resource Icon */
.rm-default-icon {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
	color: var(--rm-primary);
	border-radius: inherit;
}

.rm-default-icon i.icon {
	font-size: 1.8rem;
}

.rm-item-icon .rm-default-icon i.icon {
	font-size: 1.3rem;
}

.rm-list-icon .rm-default-icon i.icon {
	font-size: 1.2rem;
}

/* Update Item / Card */
.rm-updates-timeline {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.rm-update-card {
	background: #ffffff;
	border: 1px solid var(--rm-card-border);
	border-radius: var(--rm-card-radius);
	padding: 24px;
	box-shadow: var(--rm-card-shadow);
	transition: var(--rm-trans);
}

.rm-update-card:hover {
	border-color: var(--rm-primary-border);
	box-shadow: var(--rm-hover-shadow);
}

.rm-update-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding-bottom: 16px;
	border-bottom: 1px solid #f1f5f9;
}

.rm-update-title-group {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.rm-update-title {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--rm-text-main);
}

.rm-update-date {
	font-size: 0.8rem;
	color: var(--rm-text-sub);
	display: flex;
	align-items: center;
	gap: 5px;
}

.rm-update-body {
	padding-top: 16px;
	font-size: 0.95rem;
	line-height: 1.7;
	color: #334155;
}

/* Version History Table */
.rm-history-card {
	background: #ffffff;
	border: 1px solid var(--rm-card-border);
	border-radius: var(--rm-card-radius);
	overflow: hidden;
	box-shadow: var(--rm-card-shadow);
}

.rm-history-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.88rem;
	text-align: left;
}

[dir="rtl"] .rm-history-table {
	text-align: right;
}

.rm-history-table th {
	background: #f8fafc;
	padding: 12px 18px;
	font-weight: 700;
	color: var(--rm-text-sub);
	border-bottom: 1px solid var(--rm-card-border);
	text-transform: uppercase;
	font-size: 0.75rem;
	letter-spacing: 0.04em;
}

.rm-history-table td {
	padding: 14px 18px;
	border-bottom: 1px solid #f1f5f9;
	color: var(--rm-text-main);
	vertical-align: middle;
}

.rm-history-table tr:last-child td {
	border-bottom: none;
}

.rm-history-table tr:hover td {
	background: #fcfcfd;
}

.rm-empty-state {
	text-align: center;
	padding: 48px 24px;
	background: #ffffff;
	border: 1px dashed #cbd5e1;
	border-radius: var(--rm-card-radius);
}

.rm-empty-icon {
	width: 64px;
	height: 64px;
	border-radius: 18px;
	background: #f1f5f9;
	color: #94a3b8;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.8rem;
	margin-bottom: 14px;
}

/* ==========================================================================
   9. 5-STAR RATINGS & REVIEWS (Phase 2)
   ========================================================================== */
.rm-stars {
	color: #f59e0b;
	display: inline-flex;
	align-items: center;
	gap: 2px;
	font-size: 0.95rem;
}

.rm-star-picker {
	display: inline-flex;
	flex-direction: row-reverse;
	gap: 6px;
	font-size: 2.2rem;
	cursor: pointer;
	justify-content: flex-end;
}

.rm-star-picker input {
	display: none;
}

.rm-star-picker label {
	color: #cbd5e1;
	cursor: pointer;
	transition: color 0.15s ease-in-out, transform 0.15s;
}

.rm-star-picker label:hover,
.rm-star-picker label:hover ~ label,
.rm-star-picker input:checked ~ label {
	color: #f59e0b;
	transform: scale(1.08);
}

.rm-reviews-breakdown {
	background: #ffffff;
	border: 1px solid var(--rm-card-border);
	border-radius: var(--rm-card-radius);
	padding: 26px;
	margin-bottom: 22px;
	display: grid;
	grid-template-columns: 200px 1fr auto;
	gap: 24px;
	align-items: center;
	box-shadow: var(--rm-card-shadow);
}

@media (max-width: 768px) {
	.rm-reviews-breakdown {
		grid-template-columns: 1fr;
	}
}

.rm-breakdown-score {
	text-align: center;
	padding-inline-end: 20px;
	border-inline-end: 1px solid #f1f5f9;
}

@media (max-width: 768px) {
	.rm-breakdown-score {
		border-inline-end: none;
		padding-bottom: 16px;
		border-bottom: 1px solid #f1f5f9;
	}
}

.rm-score-big {
	font-size: 3rem;
	font-weight: 900;
	color: var(--rm-text-main);
	line-height: 1;
	margin-bottom: 6px;
}

.rm-breakdown-bars {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.rm-bar-row {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.8rem;
	color: var(--rm-text-sub);
}

.rm-bar-track {
	flex-grow: 1;
	height: 8px;
	background: #f1f5f9;
	border-radius: 9999px;
	overflow: hidden;
}

.rm-bar-fill {
	height: 100%;
	background: #f59e0b;
	border-radius: 9999px;
	transition: width 0.4s ease;
}

.rm-review-card {
	background: #ffffff;
	border: 1px solid var(--rm-card-border);
	border-radius: var(--rm-card-radius);
	padding: 24px;
	margin-bottom: 16px;
	box-shadow: var(--rm-card-shadow);
	transition: var(--rm-trans);
}

.rm-review-card:hover {
	border-color: var(--rm-primary-border);
}

.rm-review-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 14px;
}

.rm-reviewer-info {
	display: flex;
	align-items: center;
	gap: 12px;
}

.rm-reviewer-avatar {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	overflow: hidden;
	background: #f1f5f9;
}

.rm-reviewer-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rm-review-body {
	font-size: 0.95rem;
	line-height: 1.7;
	color: #334155;
}

.rm-author-reply {
	margin-top: 16px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 16px 20px;
	border-inline-start: 4px solid var(--rm-primary);
}

.rm-author-reply-header {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: 0.85rem;
	color: var(--rm-primary);
	margin-bottom: 6px;
}

/* ==========================================================================
   10. PREFIXES & CUSTOM ICONS (Phase 3)
   ========================================================================== */
.rm-prefix {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 6px;
	font-size: 0.72rem;
	font-weight: 700;
	border: 1px solid transparent;
	text-transform: capitalize;
	letter-spacing: 0.02em;
}

.rm-prefix-indigo {
	background: #eef2ff;
	color: #4338ca;
	border-color: #c7d2fe;
}

.rm-prefix-emerald {
	background: #ecfdf5;
	color: #047857;
	border-color: #a7f3d0;
}

.rm-prefix-amber {
	background: #fffbeb;
	color: #b45309;
	border-color: #fde68a;
}

.rm-prefix-purple {
	background: #faf5ff;
	color: #7e22ce;
	border-color: #e9d5ff;
}

.rm-prefix-sky {
	background: #f0f9ff;
	color: #0369a1;
	border-color: #bae6fd;
}

.rm-prefix-rose {
	background: #fff1f2;
	color: #be123c;
	border-color: #fecdd3;
}

.rm-resource-custom-icon {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
}

.rm-tagline {
	font-size: 0.88rem;
	color: var(--rm-text-sub);
	margin-top: 4px;
	line-height: 1.4;
}

/* ==========================================================================
   Modern-STYLE FILTER POPOVER & SIDEBAR WIDGETS
   ========================================================================== */

/* Filter Dropdown Popover */
.rm-filter-wrapper {
	position: relative;
	display: inline-block;
}

.rm-filter-trigger {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	background: #ffffff;
	border: 1px solid var(--rm-card-border);
	border-radius: 9999px;
	font-size: 0.84rem;
	font-weight: 700;
	color: var(--rm-text-main);
	cursor: pointer;
	transition: var(--rm-trans);
	box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.rm-filter-trigger:hover,
.rm-filter-trigger.active {
	border-color: var(--rm-primary);
	color: var(--rm-primary);
	background: var(--rm-primary-light);
}

.rm-filter-active-dot {
	display: inline-block;
	width: 7px;
	height: 7px;
	background: #3b82f6;
	border-radius: 50%;
}

.rm-filter-popover {
	display: none;
	position: absolute;
	top: calc(100% + 8px);
	inset-inline-end: 0;
	width: 290px;
	background: #ffffff;
	color: var(--rm-text-main);
	border: 1px solid var(--rm-card-border);
	border-radius: var(--rm-card-radius);
	padding: 16px;
	box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
	z-index: 100;
}

.rm-filter-popover.rm-open {
	display: block;
	animation: rmFadeIn 0.18s ease-out;
}

@keyframes rmFadeIn {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: translateY(0); }
}

.rm-filter-popover label {
	display: block;
	font-size: 0.76rem;
	font-weight: 700;
	color: var(--rm-text-sub);
	margin-bottom: 5px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.rm-filter-popover select,
.rm-filter-popover input[type="text"] {
	width: 100%;
	padding: 8px 11px;
	background: #f8fafc;
	border: 1px solid var(--rm-card-border);
	border-radius: 8px;
	color: var(--rm-text-main);
	font-size: 0.85rem;
	outline: none;
	box-sizing: border-box;
	margin-bottom: 12px;
	transition: all 0.15s ease;
}

.rm-filter-popover select:focus,
.rm-filter-popover input[type="text"]:focus {
	background: #ffffff;
	border-color: var(--rm-primary);
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.rm-filter-popover .rm-filter-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 0.85rem;
	color: var(--rm-text-main);
	margin-bottom: 14px;
	text-transform: none;
	letter-spacing: normal;
}

.rm-filter-popover .rm-filter-checkbox input {
	accent-color: var(--rm-primary);
	width: 16px;
	height: 16px;
	margin: 0;
	cursor: pointer;
}

.rm-filter-btn-submit {
	width: 100%;
	padding: 9px 16px;
	background: linear-gradient(135deg, var(--rm-primary) 0%, var(--rm-primary-hover) 100%);
	color: #ffffff;
	border: none;
	border-radius: 8px;
	font-weight: 700;
	font-size: 0.88rem;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.rm-filter-btn-submit:hover {
	opacity: 0.92;
}

.rm-filter-reset-link {
	display: block;
	text-align: center;
	font-size: 0.78rem;
	color: var(--rm-text-sub);
	text-decoration: none;
	margin-top: 8px;
}

.rm-filter-reset-link:hover {
	color: var(--rm-primary);
	text-decoration: underline;
}

/* Sidebar Widgets (Matching Theme Colors) */
.rm-widget-card {
	background: #ffffff;
	color: var(--rm-text-main);
	border: 1px solid var(--rm-card-border);
	border-radius: var(--rm-card-radius);
	padding: 16px 18px;
	margin-bottom: 18px;
	box-shadow: var(--rm-card-shadow);
}

.rm-widget-header {
	font-size: 0.95rem;
	font-weight: 800;
	color: var(--rm-text-main);
	margin: 0 0 12px 0;
	padding-bottom: 9px;
	border-bottom: 1px solid #f1f5f9;
	letter-spacing: -0.2px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.rm-widget-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rm-widget-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid #f8fafc;
}

.rm-widget-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.rm-widget-icon {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--rm-primary-light);
	color: var(--rm-primary);
	border: 1px solid var(--rm-primary-border);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 1rem;
	font-weight: bold;
	overflow: hidden;
}

.rm-widget-avatar-wrap {
	width: 34px !important;
	min-width: 34px !important;
	max-width: 34px !important;
	height: 34px !important;
	min-height: 34px !important;
	max-height: 34px !important;
	border-radius: 50% !important;
	overflow: hidden !important;
	flex-shrink: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	background: #f1f5f9 !important;
	border: 1px solid #e2e8f0 !important;
	box-sizing: border-box !important;
	margin: 0 !important;
	margin-inline-end: 12px !important;
}

.rm-widget-avatar-wrap.rm-author-sm {
	width: 28px !important;
	min-width: 28px !important;
	max-width: 28px !important;
	height: 28px !important;
	min-height: 28px !important;
	max-height: 28px !important;
	margin-inline-end: 10px !important;
}

.rm-widget-avatar-wrap img,
.rm-widget-avatar-wrap .avatar,
.rm-widget-item img.avatar,
.rm-widget-author-row img.avatar,
.rm-author-avatar img,
.rm-author-avatar .avatar,
.rm-author-avatar-lg img,
.rm-author-avatar-lg .avatar {
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	border-radius: 50% !important;
	object-fit: cover !important;
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
}

.rm-widget-avatar {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	margin-inline-end: 12px;
}

.rm-widget-content {
	flex-grow: 1;
	min-width: 0;
}

.rm-widget-title-link {
	display: block;
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--rm-text-main);
	text-decoration: none;
	line-height: 1.35;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	transition: color 0.15s ease;
}

.rm-widget-title-link:hover {
	color: var(--rm-primary);
	text-decoration: underline;
}

.rm-widget-meta {
	font-size: 0.74rem;
	color: var(--rm-text-sub);
	margin-top: 2px;
	line-height: 1.3;
}

.rm-widget-stars {
	color: #f59e0b;
	font-size: 0.75rem;
	margin-top: 3px;
	letter-spacing: 1px;
}

.rm-widget-snippet {
	font-size: 0.78rem;
	color: #475569;
	margin-top: 3px;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.rm-widget-badge {
	display: inline-block;
	padding: 1px 6px;
	font-size: 0.68rem;
	font-weight: 800;
	border-radius: 4px;
	background: #f1f5f9;
	color: #475569;
	border: 1px solid #e2e8f0;
	margin-inline-end: 4px;
	vertical-align: middle;
}

.rm-widget-author-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px solid #f8fafc;
	gap: 10px;
}

.rm-widget-author-row:last-child {
	border-bottom: none;
}

.rm-widget-author-info {
	display: flex;
	align-items: center;
	min-width: 0;
	flex: 1 1 auto;
}

.rm-widget-author-info .rm-widget-title-link {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rm-widget-author-count {
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--rm-text-sub);
	background: #f1f5f9;
	padding: 2px 8px;
	border-radius: 9999px;
	border: 1px solid #e2e8f0;
}

.rm-widget-stat-line {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 7px 0;
	font-size: 0.82rem;
	color: var(--rm-text-sub);
	border-bottom: 1px solid #f8fafc;
}

.rm-widget-stat-line:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.rm-widget-stat-val {
	font-weight: 700;
	color: var(--rm-text-main);
}

/* ==========================================================================
   Featured Resources Slider
   ========================================================================== */
.rm-featured-slider-wrapper {
	margin-bottom: 24px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 18px;
	padding: 18px 20px;
	box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04);
	position: relative;
}

.rm-featured-slider-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
	flex-wrap: wrap;
	gap: 10px;
}

.rm-featured-title-group {
	display: flex;
	align-items: center;
	gap: 10px;
}

.rm-featured-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border-radius: 9999px;
	background: #eef2ff;
	color: #4f46e5;
	font-weight: 800;
	font-size: 0.82rem;
	border: 1px solid #c7d2fe;
}

.rm-featured-pill .rm-feat-star {
	color: #f59e0b;
}

.rm-featured-sub {
	font-size: 0.8rem;
	color: #64748b;
	font-weight: 500;
}

.rm-slider-controls {
	display: flex;
	align-items: center;
	gap: 8px;
}

.rm-slider-btn {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid #cbd5e1;
	background: #ffffff;
	color: #334155;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
	font-size: 0.85rem;
	font-weight: bold;
	line-height: 1;
	padding: 0;
	outline: none;
}

.rm-slider-btn:hover {
	background: #4f46e5;
	color: #ffffff;
	border-color: #4f46e5;
	box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.rm-featured-viewport {
	overflow-x: auto;
	overflow-y: hidden;
	width: 100%;
	border-radius: 14px;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.rm-featured-viewport::-webkit-scrollbar {
	display: none;
}

.rm-featured-track {
	display: flex;
	gap: 14px;
	scroll-snap-type: x mandatory;
}

.rm-featured-slide {
	flex: 0 0 calc(33.333% - 10px);
	min-width: calc(33.333% - 10px);
	box-sizing: border-box;
	scroll-snap-align: start;
}

@media (max-width: 991px) {
	.rm-featured-slide {
		flex: 0 0 calc(50% - 7px);
		min-width: calc(50% - 7px);
	}
}

@media (max-width: 640px) {
	.rm-featured-slide {
		flex: 0 0 100%;
		min-width: 100%;
	}
}

.rm-featured-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 16px;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-sizing: border-box;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	position: relative;
}

.rm-featured-card:hover {
	border-color: #c7d2fe;
	box-shadow: 0 8px 22px -4px rgba(79, 70, 229, 0.08);
	transform: translateY(-2px);
}

.rm-featured-card-top {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.rm-featured-icon-box {
	width: 48px;
	height: 48px;
	min-width: 48px;
	border-radius: 12px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	flex-shrink: 0;
}

.rm-featured-icon-box img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rm-featured-icon-text {
	font-size: 1.25rem;
	font-weight: 800;
	color: #4f46e5;
}

.rm-featured-meta-info {
	flex: 1 1 auto;
	min-width: 0;
}

.rm-featured-badge-row {
	display: flex;
	align-items: center;
	gap: 5px;
	flex-wrap: wrap;
	margin-bottom: 4px;
}

.rm-featured-cat-badge {
	font-size: 0.7rem;
	font-weight: 700;
	padding: 1px 7px;
	border-radius: 4px;
	background: #f1f5f9;
	color: #475569;
	border: 1px solid #e2e8f0;
}

.rm-featured-tag {
	font-size: 0.68rem;
	font-weight: 800;
	padding: 1px 6px;
	border-radius: 4px;
	background: #fef3c7;
	color: #b45309;
	border: 1px solid #fde68a;
}

.rm-featured-card-title {
	font-size: 0.95rem;
	font-weight: 700;
	color: #0f172a;
	text-decoration: none;
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	line-height: 1.35;
	transition: color 0.15s ease;
}

.rm-featured-card-title:hover {
	color: #4f46e5;
	text-decoration: underline;
}

.rm-featured-version {
	font-size: 0.74rem;
	color: #64748b;
	font-weight: 600;
	display: inline-block;
	margin-top: 2px;
}

.rm-featured-card-body {
	margin: 10px 0 12px 0;
}

.rm-featured-snippet {
	font-size: 0.8rem;
	color: #475569;
	line-height: 1.45;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.3em;
}

.rm-featured-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 10px;
	border-top: 1px solid #f1f5f9;
	margin-top: auto;
	gap: 10px;
}

.rm-featured-author {
	display: flex;
	align-items: center;
	gap: 7px;
	min-width: 0;
	flex: 1 1 auto;
}

.rm-featured-avatar-wrap {
	width: 26px;
	height: 26px;
	min-width: 26px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	background: #f1f5f9;
	border: 1px solid #cbd5e1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rm-featured-avatar-wrap img,
.rm-featured-avatar-wrap .avatar {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	border-radius: 50% !important;
	display: block !important;
	margin: 0 !important;
}

.rm-featured-avatar-initial {
	font-size: 0.72rem;
	font-weight: bold;
	color: #64748b;
}

.rm-featured-author-name {
	font-size: 0.78rem;
	font-weight: 600;
	color: #334155;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rm-featured-stats-action {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.rm-featured-stars {
	display: flex;
	align-items: center;
	gap: 3px;
	font-size: 0.75rem;
	color: #f59e0b;
	font-weight: 700;
}

.rm-featured-stars .rm-rating-cnt {
	color: #94a3b8;
	font-weight: 500;
	font-size: 0.7rem;
}

.rm-featured-btn-view {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	border-radius: 8px;
	background: #4f46e5;
	color: #ffffff !important;
	font-size: 0.74rem;
	font-weight: 700;
	text-decoration: none !important;
	transition: background 0.15s ease, transform 0.15s ease;
	line-height: 1.3;
}

.rm-featured-btn-view:hover {
	background: #4338ca;
	transform: scale(1.03);
}

.rm-slider-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 14px;
}

.rm-slider-dot {
	width: 7px;
	height: 7px;
	border-radius: 9999px;
	background: #cbd5e1;
	cursor: pointer;
	transition: all 0.25s ease;
	border: none;
	padding: 0;
	outline: none;
}

.rm-slider-dot.active {
	width: 20px;
	background: #4f46e5;
}

/* ==========================================================================
   FORUM INTEGRATION WIDGETS
   ========================================================================== */
.rm-fw-wrapper {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
	margin: 18px 0 24px;
	overflow: hidden;
	font-family: inherit;
}

.rm-fw-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding: 12px 18px;
	background: #f8fafc;
	border-bottom: 1px solid #edf2f7;
}

.rm-fw-header-title {
	display: flex;
	align-items: center;
	gap: 10px;
}

.rm-fw-icon-box {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: #eef2ff;
	color: #4f46e5;
	border: 1px solid #e0e7ff;
}

.rm-fw-heading {
	font-size: 1.05rem;
	font-weight: 800;
	color: #0f172a;
	margin: 0;
	letter-spacing: -0.01em;
}

.rm-fw-tabs-nav {
	display: flex;
	align-items: center;
	gap: 6px;
	background: #ffffff;
	padding: 4px;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
	overflow-x: auto;
}

.rm-fw-tab-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border-radius: 8px;
	font-size: 0.8rem;
	font-weight: 600;
	color: #64748b;
	background: transparent;
	border: none;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
	outline: none;
}

.rm-fw-tab-btn:hover {
	color: #1e293b;
	background: #f1f5f9;
}

.rm-fw-tab-btn.active {
	color: #ffffff;
	background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
	box-shadow: 0 2px 6px rgba(79, 70, 229, 0.28);
}

.rm-fw-header-action {
	margin-inline-start: auto;
}

.rm-fw-view-all-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.8rem;
	font-weight: 700;
	color: #4f46e5;
	text-decoration: none;
	padding: 6px 12px;
	border-radius: 8px;
	transition: background 0.15s ease;
}

.rm-fw-view-all-link:hover {
	background: #eef2ff;
	text-decoration: none;
}

.rm-fw-content {
	padding: 16px 18px;
}

.rm-fw-pane {
	display: none;
}

.rm-fw-pane.active {
	display: block;
	animation: rmFwFadeIn 0.25s ease-out;
}

@keyframes rmFwFadeIn {
	from {
		opacity: 0;
		transform: translateY(4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.rm-fw-section-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.95rem;
	font-weight: 800;
	color: #1e293b;
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 1px dashed #e2e8f0;
}

.rm-fw-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 14px;
}

.rm-fwi-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 14px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 10px;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.rm-fwi-card:hover {
	border-color: #cbd5e1;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.rm-fwi-top {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.rm-fwi-icon {
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	aspect-ratio: 1 / 1;
}

.rm-fwi-img {
	width: 42px;
	height: 42px;
	aspect-ratio: 1 / 1;
	border-radius: 10px;
	object-fit: cover;
	border: 1px solid #f1f5f9;
}

.rm-fwi-icon-placeholder {
	width: 42px;
	height: 42px;
	border-radius: 10px;
	background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
	color: #4f46e5;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	font-weight: 800;
	border: 1px solid #c7d2fe;
}

.rm-fwi-body {
	flex: 1;
	min-width: 0;
}

.rm-fwi-title-line {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	margin-bottom: 4px;
}

.rm-fwi-prefix {
	font-size: 0.68rem;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 6px;
	border: 1px solid transparent;
}

.rm-fwi-title {
	font-size: 0.88rem;
	font-weight: 700;
	color: #1e293b;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 170px;
	display: inline-block;
}

.rm-fwi-title:hover {
	color: #4f46e5;
	text-decoration: underline;
}

.rm-fwi-version {
	font-size: 0.65rem;
	font-weight: 700;
	color: #475569;
	background: #f1f5f9;
	padding: 1px 6px;
	border-radius: 9999px;
	border: 1px solid #e2e8f0;
}

.rm-fwi-tagline {
	font-size: 0.76rem;
	color: #64748b;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.rm-fwi-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 8px;
	border-top: 1px solid #f8fafc;
	font-size: 0.74rem;
	color: #64748b;
}

.rm-fwi-meta {
	display: flex;
	align-items: center;
	gap: 5px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rm-fwi-category a {
	color: #64748b;
	text-decoration: none;
}

.rm-fwi-category a:hover {
	color: #4f46e5;
}

.rm-fwi-stats {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.rm-fwi-rating {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	color: #b45309;
	font-weight: 700;
}

.rm-fwi-downloads {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	color: #059669;
	font-weight: 700;
}

/* Compact list style */
.rm-fw-compact-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.rm-fw-compact-list .rm-fwi-card {
	flex-direction: row;
	align-items: center;
	padding: 8px 12px;
	border-radius: 8px;
}

.rm-fw-compact-list .rm-fwi-top {
	align-items: center;
	flex: 1;
	min-width: 0;
}

.rm-fw-compact-list .rm-fwi-img,
.rm-fw-compact-list .rm-fwi-icon-placeholder {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	font-size: 0.85rem;
}

.rm-fw-compact-list .rm-fwi-tagline {
	display: none;
}

.rm-fw-compact-list .rm-fwi-footer {
	border-top: none;
	padding-top: 0;
	gap: 14px;
}

/* ==========================================================================
   ADVANCED & LIVE SEARCH (Standard Prosilver Style)
   ========================================================================== */

.rm-zn-live-dropdown {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	min-width: 320px;
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
	border: 1px solid #d1d5db;
	z-index: 1000;
	overflow: hidden;
}

.rm-zn-live-dropdown.hidden {
	display: none;
}

.rm-zn-live-header {
	display: flex;
	justify-content: space-between;
	padding: 8px 12px;
	background: #f3f4f6;
	border-bottom: 1px solid #e5e7eb;
	font-size: 0.75rem;
	font-weight: bold;
	color: #4b5563;
}

.rm-zn-live-list {
	list-style: none;
	margin: 0;
	padding: 4px;
	max-height: 350px;
	overflow-y: auto;
}

.rm-zn-live-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 6px;
	text-decoration: none;
	color: inherit;
}

.rm-zn-live-item:hover,
.rm-zn-live-item.selected {
	background: #f3f4f6;
}

.rm-zn-live-icon {
	width: 34px;
	height: 34px;
	border-radius: 6px;
	overflow: hidden;
	background: #e0e7ff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	color: #4338ca;
	flex-shrink: 0;
}

.rm-zn-live-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rm-zn-live-info {
	flex: 1;
	min-width: 0;
}

.rm-zn-live-title {
	font-size: 0.85rem;
	font-weight: bold;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rm-zn-live-title mark {
	background: #fef08a;
	color: #854d0e;
	padding: 0 2px;
}

.rm-zn-live-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.75rem;
	color: #6b7280;
}

.rm-zn-live-cat {
	background: #e5e7eb;
	padding: 1px 4px;
	border-radius: 3px;
}

.rm-zn-live-footer {
	padding: 8px 12px;
	background: #f9fafb;
	border-top: 1px solid #e5e7eb;
	text-align: center;
}

.rm-zn-live-all-btn {
	display: block;
	padding: 6px;
	background: #4f46e5;
	color: #ffffff !important;
	border-radius: 6px;
	font-size: 0.8rem;
	font-weight: bold;
	text-decoration: none;
}

.rm-zn-live-empty {
	padding: 20px;
	text-align: center;
	color: #6b7280;
	font-size: 0.85rem;
}

/* ==========================================================================
   MODERN POLISHED COMPONENTS & FULL-WIDTH CONTROLS (styles/all)
   ========================================================================== */

/* Universal Header Banner */
.rm-header-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 22px;
	padding: 20px 26px;
	background: #ffffff;
	border: 1px solid var(--rm-card-border);
	border-radius: var(--rm-card-radius);
	box-shadow: var(--rm-card-shadow);
	box-sizing: border-box;
	width: 100% !important;
	max-width: 100% !important;
}

.rm-header-banner-left {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.rm-header-banner-icon {
	width: 52px;
	height: 52px;
	border-radius: 16px;
	background: var(--rm-primary-light);
	color: var(--rm-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	flex-shrink: 0;
	border: 1px solid var(--rm-primary-border);
}

.rm-header-breadcrumb {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--rm-text-sub);
	margin-bottom: 4px;
}

.rm-header-breadcrumb a {
	color: var(--rm-primary);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.rm-header-breadcrumb a:hover {
	color: var(--rm-primary-hover);
	text-decoration: underline;
}

.rm-header-breadcrumb .active {
	color: var(--rm-text-main);
	font-weight: 800;
}

.rm-header-banner-title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--rm-text-main);
	letter-spacing: -0.02em;
}

.rm-header-banner-subtitle {
	margin: 3px 0 0 0;
	font-size: 0.85rem;
	color: var(--rm-text-sub);
}

.rm-header-banner-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

/* Modern Buttons */
.rm-btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 22px;
	border-radius: 12px;
	background: var(--rm-primary);
	color: #ffffff !important;
	font-size: 0.88rem;
	font-weight: 700;
	text-decoration: none !important;
	border: none;
	box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
	transition: var(--rm-trans);
	white-space: nowrap;
	cursor: pointer;
	box-sizing: border-box;
}

.rm-btn-primary:hover {
	background: var(--rm-primary-hover);
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}

.rm-btn-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 20px;
	border-radius: 12px;
	background: #f1f5f9;
	color: var(--rm-text-main) !important;
	font-size: 0.88rem;
	font-weight: 700;
	text-decoration: none !important;
	border: 1px solid #e2e8f0;
	transition: var(--rm-trans);
	white-space: nowrap;
	cursor: pointer;
	box-sizing: border-box;
}

.rm-btn-secondary:hover {
	background: #e2e8f0;
	color: var(--rm-text-main) !important;
	transform: translateY(-1px);
}

.rm-btn-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 8px 16px;
	border-radius: 10px;
	background: transparent;
	color: var(--rm-text-sub) !important;
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none !important;
	border: 1.5px solid #cbd5e1;
	transition: var(--rm-trans);
	cursor: pointer;
	box-sizing: border-box;
}

.rm-btn-outline:hover {
	background: #f8fafc;
	border-color: #94a3b8;
	color: var(--rm-text-main) !important;
}

/* Form Sections */
.rm-form-section {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 24px;
	margin-bottom: 24px;
	transition: var(--rm-trans);
	box-sizing: border-box;
	width: 100%;
}

.rm-form-section:hover {
	border-color: #cbd5e1;
	background: #ffffff;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}

.rm-form-section-title {
	margin: 0 0 18px 0;
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--rm-text-main);
	display: flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 12px;
	border-bottom: 1.5px solid #e2e8f0;
}

.rm-form-section-icon {
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: var(--rm-primary-light);
	color: var(--rm-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	flex-shrink: 0;
	border: 1px solid var(--rm-primary-border);
}

/* Modern Radio Cards */
.rm-radio-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px;
	margin-top: 8px;
}

.rm-radio-card {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px 18px;
	border: 1.5px solid #e2e8f0;
	border-radius: 14px;
	cursor: pointer;
	background: #ffffff;
	transition: var(--rm-trans);
	user-select: none;
	box-sizing: border-box;
}

.rm-radio-card:hover {
	border-color: var(--rm-primary-border);
	background: #f8fafc;
	transform: translateY(-1px);
}

.rm-radio-card.active,
.rm-radio-card:has(input[type="radio"]:checked) {
	border-color: var(--rm-primary);
	background: var(--rm-primary-light);
	box-shadow: 0 0 0 1px var(--rm-primary);
}

.rm-radio-card-title {
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--rm-text-main);
	display: flex;
	align-items: center;
	gap: 6px;
}

.rm-radio-card-desc {
	font-size: 0.78rem;
	color: var(--rm-text-sub);
	margin-top: 4px;
	line-height: 1.45;
}

/* Modern Search Page Styles */
.rm-search-page-card {
	background: #ffffff;
	border: 1px solid var(--rm-card-border);
	border-radius: var(--rm-card-radius);
	padding: 24px 28px;
	box-shadow: var(--rm-card-shadow);
	margin-bottom: 24px;
	box-sizing: border-box;
	width: 100% !important;
	max-width: 100% !important;
}

.rm-search-main-row {
	display: flex;
	gap: 12px;
	margin-bottom: 20px;
	align-items: center;
	flex-wrap: wrap;
}

.rm-search-input-wrap {
	flex: 1 1 300px;
	position: relative;
}

.rm-search-input-wrap .rm-search-icon {
	position: absolute;
	top: 50%;
	left: 16px;
	transform: translateY(-50%);
	color: #94a3b8;
	font-size: 1.1rem;
	pointer-events: none;
}

[dir="rtl"] .rm-search-input-wrap .rm-search-icon {
	left: auto;
	right: 16px;
}

.rm-search-page-input {
	width: 100% !important;
	height: 48px !important;
	padding: 0 16px 0 46px !important;
	font-size: 0.95rem !important;
	border: 1.5px solid #cbd5e1 !important;
	border-radius: 12px !important;
	background: #ffffff !important;
	color: var(--rm-text-main) !important;
	outline: none !important;
	box-sizing: border-box !important;
	transition: var(--rm-trans) !important;
}

[dir="rtl"] .rm-search-page-input {
	padding: 0 46px 0 16px !important;
}

.rm-search-page-input:focus {
	border-color: var(--rm-primary) !important;
	box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12) !important;
}

.rm-search-page-btn {
	height: 48px;
	padding: 0 32px;
	font-size: 0.95rem;
	font-weight: 700;
	border-radius: 12px;
	background: var(--rm-primary);
	color: #ffffff !important;
	border: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: var(--rm-trans);
	box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
	white-space: nowrap;
}

.rm-search-page-btn:hover {
	background: var(--rm-primary-hover);
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}

.rm-search-filters-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 14px;
	padding-top: 18px;
	border-top: 1px solid #f1f5f9;
}

@media (max-width: 1100px) {
	.rm-search-filters-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.rm-search-filters-grid {
		grid-template-columns: 1fr;
	}
}

.rm-filter-label {
	display: block;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--rm-text-main);
	margin-bottom: 6px;
}

.rm-filter-select,
.rm-filter-input {
	width: 100% !important;
	height: 42px !important;
	padding: 0 12px !important;
	border: 1.5px solid #cbd5e1 !important;
	border-radius: 10px !important;
	background: #f8fafc !important;
	font-size: 0.85rem !important;
	color: var(--rm-text-main) !important;
	outline: none !important;
	box-sizing: border-box !important;
	transition: var(--rm-trans) !important;
}

.rm-filter-select:focus,
.rm-filter-input:focus {
	border-color: var(--rm-primary) !important;
	background: #ffffff !important;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
}

/* Modern Empty State */
.rm-empty-state {
	background: #ffffff;
	border: 1px solid var(--rm-card-border);
	border-radius: var(--rm-card-radius);
	padding: 60px 24px;
	text-align: center;
	box-shadow: var(--rm-card-shadow);
	width: 100%;
	box-sizing: border-box;
}

.rm-empty-state-icon {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--rm-primary-light);
	color: var(--rm-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	margin: 0 auto 18px auto;
	border: 1px solid var(--rm-primary-border);
}

.rm-empty-state-title {
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--rm-text-main);
	margin: 0 0 8px 0;
}

.rm-empty-state-desc {
	font-size: 0.9rem;
	color: var(--rm-text-sub);
	margin: 0 auto 20px auto;
	max-width: 480px;
	line-height: 1.6;
}

/* Responsive Action Stacking */
@media (max-width: 540px) {
	.rm-header-banner-actions {
		width: 100%;
		flex-direction: column;
	}
	.rm-header-banner-actions a,
	.rm-header-banner-actions button {
		width: 100% !important;
		text-align: center;
	}
	.rm-search-page-btn {
		width: 100% !important;
		justify-content: center;
	}
}

.rm-dash-grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 20px;
	margin-bottom: 30px;
	width: 100%;
}

@media (max-width: 900px) {
	.rm-dash-grid {
		grid-template-columns: 1fr !important;
	}
}

@media (max-width: 600px) {
	.rm-form-card {
		padding: 20px 16px !important;
		border-radius: 16px !important;
	}
	.rm-header-banner {
		padding: 16px 18px !important;
	}
}

/* BBCode Editor Styling */
.rm-editor-toolbar {
	background: #f8fafc;
	border: 1.5px solid #e2e8f0;
	border-radius: 12px;
	padding: 10px 14px;
	margin-bottom: 8px;
	box-sizing: border-box;
}

.rm-editor-toolbar #format-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	margin: 0;
	padding: 0;
}

.rm-editor-toolbar #format-buttons .button {
	padding: 6px 10px;
	font-size: 0.85rem;
	border-radius: 8px;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	color: #334155;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	transition: all 0.15s ease;
}

.rm-editor-toolbar #format-buttons .button:hover {
	background: #f1f5f9;
	border-color: #94a3b8;
	color: #0f172a;
}

.rm-editor-toolbar #format-buttons select.bbcode-size {
	padding: 5px 8px;
	font-size: 0.82rem;
	border-radius: 8px;
	border: 1px solid #cbd5e1;
	background: #ffffff;
	color: #334155;
	cursor: pointer;
}

.rm-editor-toolbar #colour_palette {
	padding: 10px 0 6px 0;
	border-top: 1px solid #e2e8f0;
	margin-top: 8px;
}

.rm-smilies-bar {
	margin-top: 10px;
	padding-top: 8px;
	border-top: 1px solid #e2e8f0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

/* ==========================================================================
   MORE INFORMATION & SIDEBAR POLISH (UNIVERSAL / ALL THEMES)
   ========================================================================== */
.rm-moreinfo-card {
	position: relative;
	transition: var(--rm-trans);
}

.rm-moreinfo-hdr-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: #eef2ff;
	color: #4f46e5;
	flex-shrink: 0;
}

.rm-moreinfo-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 2px 9px;
	font-size: 11px;
	font-weight: 700;
	color: #4f46e5;
	background: #eef2ff;
	border: 1px solid #e0e7ff;
	border-radius: 9999px;
}

.rm-moreinfo-body {
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.rm-moreinfo-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	text-decoration: none !important;
	transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
	cursor: pointer;
	position: relative;
	overflow: hidden;
	width: 100%;
	box-sizing: border-box;
}

.rm-moreinfo-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px -3px rgba(15, 23, 42, 0.08);
}

/* Variants */
.rm-moreinfo-discuss {
	background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}
.rm-moreinfo-discuss:hover {
	border-color: #93c5fd;
	background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}

.rm-moreinfo-website {
	background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}
.rm-moreinfo-website:hover {
	border-color: #a5b4fc;
	background: linear-gradient(135deg, #ffffff 0%, #eef2ff 100%);
}

.rm-moreinfo-support {
	background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}
.rm-moreinfo-support:hover {
	border-color: #6ee7b7;
	background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%);
}

.rm-moreinfo-share {
	background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
	text-align: inherit;
	border: 1px dashed #cbd5e1;
}
.rm-moreinfo-share:hover {
	border-color: #c084fc;
	background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
	border-style: solid;
}

.rm-moreinfo-icon-box {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	flex-shrink: 0;
	transition: transform 0.2s ease;
	font-size: 15px;
}

.rm-moreinfo-btn:hover .rm-moreinfo-icon-box {
	transform: scale(1.08);
}

.rm-icon-discuss {
	background: #eff6ff;
	color: #2563eb;
	border: 1px solid #dbeafe;
}

.rm-icon-website {
	background: #eef2ff;
	color: #4f46e5;
	border: 1px solid #e0e7ff;
}

.rm-icon-support {
	background: #ecfdf5;
	color: #059669;
	border: 1px solid #d1fae5;
}

.rm-icon-share {
	background: #faf5ff;
	color: #9333ea;
	border: 1px solid #f3e8ff;
}

.rm-moreinfo-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex-grow: 1;
	margin-inline: 12px;
	line-height: 1.35;
}

.rm-moreinfo-label {
	font-size: 12.5px;
	font-weight: 700;
	color: #0f172a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: color 0.18s ease;
}

.rm-moreinfo-sub {
	font-size: 11px;
	color: #64748b;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-top: 2px;
}

.rm-moreinfo-sub.ltr-sub {
	direction: ltr;
	text-align: start;
	unicode-bidi: embed;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 10.5px;
	color: #475569;
}

.rm-moreinfo-action {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: #94a3b8;
	transition: all 0.2s ease;
}

.rm-moreinfo-btn:hover .rm-moreinfo-action {
	color: #334155;
}

/* Direction-aware icon animations */
[dir="rtl"] .rm-moreinfo-ext {
	transform: scaleX(-1);
}
[dir="rtl"] .rm-moreinfo-btn:hover .rm-moreinfo-arrow {
	transform: translateX(-3px);
}
[dir="ltr"] .rm-moreinfo-btn:hover .rm-moreinfo-arrow {
	transform: translateX(3px);
}

.rm-moreinfo-btn:hover .rm-moreinfo-copy-icon {
	transform: rotate(-10deg) scale(1.1);
}

/* ==========================================================================
   More Resources by Author Widget (Sidebar - styles/all)
   ========================================================================== */
.rm-moreby-card {
	overflow: hidden;
}

.rm-moreby-list {
	display: flex;
	flex-direction: column;
}

.rm-moreby-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	text-decoration: none !important;
	border-bottom: 1px solid #f1f5f9;
	transition: background 0.15s ease;
}

.rm-moreby-item:last-child {
	border-bottom: none;
}

.rm-moreby-item:hover {
	background: #f8fafc;
}

.rm-moreby-icon {
	width: 38px !important;
	height: 38px !important;
	min-width: 38px !important;
	max-width: 38px !important;
	min-height: 38px !important;
	max-height: 38px !important;
	border-radius: 8px;
	overflow: hidden;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0 !important;
	color: var(--rm-primary);
}

.rm-moreby-icon img {
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	object-fit: cover;
	display: block;
	border-radius: inherit;
}

.rm-moreby-content {
	flex: 1 1 0%;
	min-width: 0;
}

.rm-moreby-title {
	font-size: 0.84rem;
	font-weight: 700;
	color: var(--rm-text-main);
	line-height: 1.35;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: color 0.15s ease;
}

.rm-moreby-item:hover .rm-moreby-title {
	color: var(--rm-primary);
}

.rm-moreby-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.72rem;
	color: var(--rm-text-sub);
	margin-top: 2px;
}

.rm-moreby-version {
	font-weight: 600;
	color: var(--rm-primary);
}

.rm-moreby-sep {
	color: #cbd5e1;
}

.rm-moreby-rating {
	color: #b45309;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 2px;
}

/* ==========================================================================
   Universal Tailwind Size Utility Compatibility Classes
   ========================================================================== */
.size-6  { width: 24px !important; height: 24px !important; min-width: 24px !important; min-height: 24px !important; max-width: 24px; max-height: 24px; }
.size-7  { width: 28px !important; height: 28px !important; min-width: 28px !important; min-height: 28px !important; max-width: 28px; max-height: 28px; }
.size-8  { width: 32px !important; height: 32px !important; min-width: 32px !important; min-height: 32px !important; max-width: 32px; max-height: 32px; }
.size-9  { width: 36px !important; height: 36px !important; min-width: 36px !important; min-height: 36px !important; max-width: 36px; max-height: 36px; }
.size-10 { width: 40px !important; height: 40px !important; min-width: 40px !important; min-height: 40px !important; max-width: 40px; max-height: 40px; }
.size-11 { width: 44px !important; height: 44px !important; min-width: 44px !important; min-height: 44px !important; max-width: 44px; max-height: 44px; }
.size-12 { width: 48px !important; height: 48px !important; min-width: 48px !important; min-height: 48px !important; max-width: 48px; max-height: 48px; }
.size-14 { width: 56px !important; height: 56px !important; min-width: 56px !important; min-height: 56px !important; max-width: 56px; max-height: 56px; }
.size-16 { width: 64px !important; height: 64px !important; min-width: 64px !important; min-height: 64px !important; max-width: 64px; max-height: 64px; }
.size-full { width: 100% !important; height: 100% !important; }

/* ==========================================================================
   Full BBCode Content Typography (#resource-content)
   ========================================================================== */
#resource-content {
	line-height: 1.7;
	word-break: break-word;
}

#resource-content p {
	margin-bottom: 0.85em;
	line-height: 1.7;
}

#resource-content :is(h1, h2, h3, h4, h5, h6) {
	font-weight: 800;
	margin-top: 1.2em;
	margin-bottom: 0.5em;
	color: var(--rm-text-main);
	line-height: 1.3;
}

#resource-content ul {
	list-style-type: disc !important;
	margin-top: 0.6em !important;
	margin-bottom: 0.85em !important;
	padding-inline-start: 28px !important;
}

#resource-content ol {
	list-style-type: decimal !important;
	margin-top: 0.6em !important;
	margin-bottom: 0.85em !important;
	padding-inline-start: 28px !important;
}

#resource-content li {
	display: list-item !important;
	margin-top: 0.3em !important;
	margin-bottom: 0.3em !important;
	line-height: 1.6 !important;
}

#resource-content ul ul {
	list-style-type: circle !important;
	margin-top: 0.35em !important;
	margin-bottom: 0.35em !important;
	padding-inline-start: 24px !important;
}

#resource-content ul ul ul {
	list-style-type: square !important;
	padding-inline-start: 22px !important;
}

#resource-content code,
#resource-content .inline-code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
	font-size: 0.85em !important;
	font-weight: 600 !important;
	padding: 2px 7px !important;
	border-radius: 6px !important;
	background: #f1f5f9 !important;
	border: 1px solid #e2e8f0 !important;
	color: #e11d48 !important;
	display: inline-block !important;
	line-height: 1.35 !important;
}

#resource-content .codebox {
	margin: 14px 0 !important;
	padding: 14px 16px !important;
	border-radius: 10px !important;
	background: #f8fafc !important;
	border: 1px solid #e2e8f0 !important;
	overflow-x: auto !important;
}

#resource-content blockquote {
	margin: 14px 0 !important;
	padding: 12px 18px !important;
	border-inline-start: 4px solid var(--rm-primary) !important;
	background: #f8fafc !important;
	border-radius: 0 8px 8px 0 !important;
	color: var(--rm-text-sub) !important;
	font-style: italic !important;
}

#resource-content [style*="color"] :is(h1, h2, h3, h4, h5, h6, strong, b, span, em, i, p, li) {
	color: inherit !important;
}


