.rt-toolbox {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: stretch;
	justify-content: center;
	margin: 28px 0;
	padding: 20px;
	border-radius: 14px;
	background: #1c1f2b;
}

.rt-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 130px;
	flex: 1 1 130px;
	max-width: 180px;
	padding: 16px 12px;
	font-size: 14px;
	border: 1px solid rgba(255,255,255,.08);
	border-radius: 12px;
	background: #2a2e40;
	cursor: pointer;
	color: #fff;
	text-align: center;
	transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.rt-btn:hover {
	transform: translateY(-3px);
	background: #353a52;
	border-color: rgba(255,255,255,.18);
}

.rt-btn:active {
	transform: translateY(0);
}

.rt-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255,255,255,.08);
	color: #ffffff;
	flex-shrink: 0;
}

.rt-icon svg {
	display: block;
}

.rt-text {
	display: flex;
	flex-direction: column;
	align-items: center;
	line-height: 1.25;
}

.rt-label {
	font-weight: 700;
	font-size: 14px;
	color: #fff;
}

.rt-desc {
	font-size: 11.5px;
	color: #9aa0b4;
	margin-top: 2px;
	text-align: center;
}

.rt-btn.rt-active {
	background: #e0356f;
	border-color: #e0356f;
}

.rt-btn.rt-active .rt-icon {
	background: rgba(255,255,255,.2);
}

.rt-btn.rt-active .rt-desc {
	color: #ffe1ea;
}

/* Modal */
.rt-modal {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.6);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rt-modal-inner {
	background: #fff;
	width: 90%;
	max-width: 700px;
	max-height: 90vh;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.rt-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 16px;
	border-bottom: 1px solid #eee;
}

.rt-close {
	background: none;
	border: none;
	font-size: 22px;
	cursor: pointer;
	line-height: 1;
}

.rt-modal-body {
	padding: 12px 16px;
	overflow: auto;
	flex: 1;
}

.rt-loading {
	text-align: center;
	padding: 30px;
	color: #666;
}

.rt-crop-wrap img {
	max-width: 100%;
	display: block;
}

.rt-modal-footer {
	padding: 12px 16px;
	border-top: 1px solid #eee;
	display: flex;
	gap: 10px;
	justify-content: flex-end;
}

.rt-modal-footer .rt-btn {
	flex-direction: row;
	min-width: auto;
	padding: 8px 16px;
}

.rt-primary {
	background: #2271b1;
	color: #fff;
	border-color: #2271b1;
}

.rt-primary:hover {
	background: #135e96;
	color: #fff;
}

/* Saved Posts page */
#rt-saved-posts-list {
	display: grid;
	gap: 12px;
	margin-top: 16px;
}

.rt-saved-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 12px;
	border: 1px solid #eee;
	border-radius: 8px;
}

.rt-saved-item a {
	font-weight: 600;
	text-decoration: none;
}

.rt-saved-remove {
	background: #fdecec;
	border: 1px solid #f5b5b5;
	color: #c0392b;
	border-radius: 6px;
	padding: 4px 10px;
	cursor: pointer;
}

.rt-empty {
	color: #777;
}

@media (max-width: 480px) {
	.rt-toolbox {
		gap: 10px;
		padding: 14px;
	}
	.rt-btn {
		min-width: 40%;
		max-width: none;
		padding: 12px 8px;
	}
}
