/* ==========================================================================
   Rekammedia Dark Theme — design system
   ========================================================================== */

/* Fonts (bundled in assets/fonts) ---------------------------------------- */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-800-italic.woff2") format("woff2"); font-weight: 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* Tokens ---------------------------------------------------------------- */
:root {
	--rm-bg: #09090B;
	--rm-surface: #141417;
	--rm-surface-2: #1C1C21;
	--rm-surface-3: #0E0E11;
	--rm-border: rgba(255, 255, 255, 0.1);
	--rm-border-strong: rgba(255, 255, 255, 0.18);
	--rm-text: #ECECEC;
	--rm-muted: #A1A1AA;
	--rm-dim: #71717A;
	--rm-ink: #09090B;
	--rm-white: #FFFFFF;

	--rm-free: #34D399;
	--rm-free-bg: rgba(16, 185, 129, 0.14);
	--rm-free-border: rgba(52, 211, 153, 0.35);
	--rm-success: #22C55E;
	--rm-pro-gradient: linear-gradient(120deg, #B98BFF 0%, #E3B6FF 35%, #F6D58E 75%, #E9A84B 100%);
	--rm-accent-gradient: radial-gradient(80.17% 109.2% at 44.37% 35.15%, #D0B2FF 0%, #FFEED8 42.83%, #E8400D 88.38%);
	--rm-cta-gradient: linear-gradient(to top, #CFDEF6 20%, #FAFAFA 80%);
	--rm-glow: radial-gradient(60% 60% at 50% 0%, rgba(208, 178, 255, 0.18) 0%, rgba(232, 64, 13, 0.08) 45%, transparent 75%);

	--rm-radius: 16px;
	--rm-radius-sm: 10px;
	--rm-radius-lg: 24px;
	--rm-pill: 999px;

	--rm-font-display: "Archivo", "Arial Black", system-ui, sans-serif;
	--rm-font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	--rm-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

	--rm-container: 1360px;
	--rm-gutter: clamp(16px, 4vw, 32px);
	--rm-header-h: 68px;
	--rm-ease: cubic-bezier(0.16, 1, 0.3, 1);
	--rm-shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 40px -24px rgba(0, 0, 0, 0.8);
	--rm-shadow-cta: 0 10px 30px -10px rgba(207, 222, 246, 0.45);
}

/* Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--rm-header-h) + 16px); }
body {
	margin: 0;
	background: var(--rm-bg);
	color: var(--rm-text);
	font-family: var(--rm-font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--rm-white); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #D0B2FF; outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(208, 178, 255, 0.35); color: var(--rm-white); }
[hidden] { display: none !important; }

.screen-reader-text, .rm-skip-link:not(:focus) {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.rm-skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 1000; padding: 10px 16px; background: var(--rm-white); color: var(--rm-ink); border-radius: var(--rm-pill); }

.rm-container { width: 100%; max-width: var(--rm-container); margin-inline: auto; padding-inline: var(--rm-gutter); }
.rm-section { padding-block: clamp(48px, 8vw, 96px); }
.rm-main { min-height: 60vh; }
.rm-icon { flex-shrink: 0; }

/* Typography ------------------------------------------------------------ */
.rm-display {
	margin: 0;
	font-family: var(--rm-font-display);
	font-weight: 800;
	text-transform: uppercase;
	font-size: clamp(2.6rem, 8.4vw, 7rem);
	line-height: 0.92;
	letter-spacing: -0.025em;
	color: var(--rm-text);
}
.rm-display--md { font-size: clamp(2.4rem, 6vw, 4.75rem); }
.rm-display__line { display: block; }
.rm-display em { font-style: italic; font-weight: 800; padding-right: 0.06em; }
.rm-gradient-text {
	background: var(--rm-accent-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}
.rm-gradient-text--animated { background-size: 220% 220%; animation: rm-gradient-shift 7s ease-in-out infinite alternate; }
@keyframes rm-gradient-shift {
	0% { background-position: 0% 30%; }
	50% { background-position: 80% 60%; }
	100% { background-position: 30% 100%; }
}

.rm-eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rm-muted); }
.rm-section-title { margin: 0; font-family: var(--rm-font-display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; font-size: clamp(1.5rem, 3vw, 2.125rem); line-height: 1.05; }
.rm-page-head { margin-bottom: 40px; }
.rm-page-title { margin: 8px 0 0; font-family: var(--rm-font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1; letter-spacing: -0.02em; }
.rm-page-lead { margin: 16px 0 0; max-width: 620px; color: var(--rm-muted); font-size: 1.0625rem; }

/* Buttons --------------------------------------------------------------- */
.rm-btn {
	--rm-btn-h: 46px;
	position: relative;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: var(--rm-btn-h);
	padding: 0 22px;
	border: 1px solid transparent;
	border-radius: var(--rm-pill);
	font-weight: 700; font-size: 15px; line-height: 1; letter-spacing: -0.005em;
	white-space: nowrap;
	transition: transform 0.25s var(--rm-ease), box-shadow 0.25s var(--rm-ease), background 0.25s, color 0.25s, border-color 0.25s;
}
.rm-btn--primary {
	background: var(--rm-cta-gradient);
	border-color: transparent;
	border-top: 2px solid var(--rm-white);
	color: var(--rm-ink);
	box-shadow: var(--rm-shadow-cta);
}
.rm-btn--primary:hover { color: var(--rm-ink); transform: translateY(-1px); box-shadow: 0 14px 38px -10px rgba(207, 222, 246, 0.6); }
.rm-btn--primary:active { transform: translateY(0); }
.rm-btn--ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--rm-border-strong); color: var(--rm-text); }
.rm-btn--ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.3); }
.rm-btn--sm { --rm-btn-h: 38px; padding: 0 16px; font-size: 14px; }
.rm-btn--lg { --rm-btn-h: 54px; padding: 0 28px; font-size: 16px; }
.rm-btn--block { display: flex; width: 100%; }
.rm-btn.is-static { cursor: default; transform: none; }
.rm-btn__state { display: inline-flex; align-items: center; gap: 8px; }
.rm-btn__state--done { display: none; }
.rm-btn.is-copied { background: var(--rm-success); border-top-color: #86EFAC; color: var(--rm-ink); box-shadow: 0 12px 32px -12px rgba(34, 197, 94, 0.7); }
.rm-btn.is-copied .rm-btn__state--idle { display: none; }
.rm-btn.is-copied .rm-btn__state--done { display: inline-flex; }

.rm-icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px;
	border-radius: var(--rm-pill);
	border: 1px solid transparent;
	background: transparent;
	color: var(--rm-muted);
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.rm-icon-btn:hover, .rm-icon-btn[aria-expanded="true"] { color: var(--rm-white); background: rgba(255, 255, 255, 0.06); border-color: var(--rm-border); }

/* Badges ---------------------------------------------------------------- */
.rm-badge {
	display: inline-flex; align-items: center; gap: 5px;
	height: 24px; padding: 0 10px;
	border-radius: var(--rm-pill);
	font-size: 11px; font-weight: 800; letter-spacing: 0.08em; line-height: 1;
	text-transform: uppercase;
}
.rm-badge--free { color: var(--rm-free); background: var(--rm-free-bg); border: 1px solid var(--rm-free-border); }
.rm-badge--pro { color: var(--rm-ink); background: var(--rm-pro-gradient); box-shadow: 0 4px 16px -4px rgba(185, 139, 255, 0.55); }

.rm-pill-badge {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 8px 16px;
	border-radius: var(--rm-pill);
	border: 1px solid rgba(208, 178, 255, 0.35);
	background: linear-gradient(180deg, rgba(208, 178, 255, 0.12), rgba(232, 64, 13, 0.06));
	box-shadow: 0 0 32px -6px rgba(208, 178, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
	font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
	color: #F3E8FF;
}
.rm-pill-badge__dot { width: 7px; height: 7px; border-radius: 50%; background: #FFB27A; box-shadow: 0 0 0 0 rgba(255, 178, 122, 0.7); animation: rm-pulse 2s infinite; }
@keyframes rm-pulse {
	0% { box-shadow: 0 0 0 0 rgba(255, 178, 122, 0.7); }
	70% { box-shadow: 0 0 0 9px rgba(255, 178, 122, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 178, 122, 0); }
}

.rm-plan-badge {
	display: inline-flex; align-items: center; gap: 6px;
	height: 28px; padding: 0 12px;
	border-radius: var(--rm-pill);
	font-size: 11px; font-weight: 800; letter-spacing: 0.1em;
}
.rm-plan-badge--free { color: var(--rm-free); background: var(--rm-free-bg); border: 1px solid var(--rm-free-border); }
.rm-plan-badge--free:hover { color: var(--rm-free); border-color: var(--rm-free); }
.rm-plan-badge--pro { color: var(--rm-ink); background: var(--rm-pro-gradient); }

.rm-tool {
	display: inline-flex; align-items: center; gap: 6px;
	height: 30px; padding: 0 12px;
	border-radius: var(--rm-pill);
	border: 1px solid var(--rm-border);
	background: rgba(255, 255, 255, 0.03);
	font-size: 13px; font-weight: 600; color: var(--rm-text);
}
.rm-tool .rm-icon { color: #FFB27A; }

/* Header ---------------------------------------------------------------- */
.rm-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(9, 9, 11, 0.72);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	backdrop-filter: blur(16px) saturate(140%);
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s, background 0.3s;
}
.admin-bar .rm-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .rm-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .rm-header { top: 0; } }
.rm-header.is-scrolled { border-bottom-color: var(--rm-border); background: rgba(9, 9, 11, 0.88); }
.rm-header__inner { display: flex; align-items: center; gap: 24px; height: var(--rm-header-h); }
.rm-header__brand { flex-shrink: 0; }
.rm-header__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }

.rm-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--rm-white); }
.rm-logo:hover { color: var(--rm-white); }
.rm-logo__mark {
	width: 22px; height: 22px; border-radius: 7px;
	background: var(--rm-accent-gradient);
	box-shadow: 0 0 18px -2px rgba(232, 64, 13, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.rm-logo__text { font-family: var(--rm-font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.custom-logo-link img { max-height: 36px; width: auto; }

.rm-nav { flex: 1; }
.rm-menu { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.rm-menu a {
	display: inline-flex; align-items: center; height: 36px; padding: 0 14px;
	border-radius: var(--rm-pill);
	font-size: 14.5px; font-weight: 600; color: var(--rm-muted);
	transition: color 0.2s, background 0.2s;
}
.rm-menu a:hover, .rm-menu .current-menu-item > a { color: var(--rm-white); background: rgba(255, 255, 255, 0.06); }

.rm-avatar { padding: 0; overflow: hidden; }
.rm-avatar__img { width: 30px; height: 30px; border-radius: 50%; }
.rm-nav-toggle { display: none; }

.rm-search-panel { border-top: 1px solid var(--rm-border); padding-block: 16px; background: rgba(9, 9, 11, 0.96); }
.rm-search-form {
	display: flex; align-items: center; gap: 10px;
	padding: 6px 6px 6px 18px;
	border: 1px solid var(--rm-border-strong);
	border-radius: var(--rm-pill);
	background: var(--rm-surface);
	color: var(--rm-muted);
}
.rm-search-form__input { flex: 1; min-width: 0; height: 40px; border: 0; background: transparent; outline: none; color: var(--rm-text); font-size: 15px; }
.rm-search-form__input::placeholder { color: var(--rm-dim); }

@media (max-width: 960px) {
	.rm-nav-toggle { display: inline-flex; }
	.rm-nav {
		position: absolute; top: 100%; left: 0; right: 0;
		padding: 12px var(--rm-gutter) 20px;
		background: rgba(9, 9, 11, 0.98);
		border-bottom: 1px solid var(--rm-border);
		display: none;
	}
	.rm-nav.is-open { display: block; }
	.rm-menu { flex-direction: column; align-items: stretch; }
	.rm-menu a { height: 46px; font-size: 16px; }
}
.rm-nav__account { display: none; }
@media (max-width: 960px) {
	.rm-nav__account { display: flex; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--rm-border); }
}
@media (max-width: 560px) {
	.rm-header__inner { gap: 12px; }
	.rm-header__actions { gap: 2px; }
	.rm-header__signin { width: 40px; padding: 0; }
	.rm-header__signin-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
	.rm-hide-sm { display: none; }
	.rm-logo__text { font-size: 17px; }
}

/* Hero ------------------------------------------------------------------ */
.rm-hero { position: relative; overflow: hidden; padding-block: clamp(64px, 12vw, 150px) clamp(48px, 8vw, 96px); text-align: center; isolation: isolate; }
.rm-hero__glow {
	position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1;
	background: var(--rm-glow);
	filter: blur(10px);
	pointer-events: none;
}
.rm-hero__grid {
	position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
	background-size: 64px 64px;
	-webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 75%);
	mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 75%);
}
.rm-hero__inner { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.rm-hero__subtitle { margin: 0; max-width: 640px; color: var(--rm-muted); font-size: clamp(1rem, 1.6vw, 1.1875rem); line-height: 1.6; }
.rm-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.rm-hero__tools { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.rm-hero__tools-label { margin-right: 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rm-dim); }

.rm-reveal { opacity: 0; transform: translateY(18px); animation: rm-reveal 0.9s var(--rm-ease) forwards; animation-delay: var(--rm-delay, 0ms); }
@keyframes rm-reveal { to { opacity: 1; transform: none; } }

/* Catalog & filters ----------------------------------------------------- */
.rm-catalog { padding-top: 24px; }
.rm-catalog__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.rm-catalog__count { font-size: 14px; color: var(--rm-dim); font-weight: 600; }
.rm-filters { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.rm-filters__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

.rm-segmented {
	display: inline-flex; gap: 4px; padding: 4px;
	border-radius: var(--rm-pill);
	border: 1px solid var(--rm-border);
	background: var(--rm-surface);
}
.rm-segmented--full { display: flex; width: 100%; }
.rm-segmented--full .rm-segmented__btn { flex: 1; }
.rm-segmented__btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	height: 34px; padding: 0 16px;
	border: 0; border-radius: var(--rm-pill);
	background: transparent;
	font-size: 14px; font-weight: 600; color: var(--rm-muted);
	transition: background 0.2s, color 0.2s;
}
.rm-segmented__btn:hover { color: var(--rm-white); }
.rm-segmented__btn.is-active { background: var(--rm-surface-2); color: var(--rm-white); box-shadow: inset 0 0 0 1px var(--rm-border-strong); }

.rm-pills {
	display: flex; gap: 8px;
	overflow-x: auto; scrollbar-width: none;
	padding-bottom: 2px;
	-webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
	mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.rm-pills::-webkit-scrollbar { display: none; }
.rm-pill {
	flex-shrink: 0;
	height: 36px; padding: 0 16px;
	border-radius: var(--rm-pill);
	border: 1px solid var(--rm-border);
	background: transparent;
	font-size: 14px; font-weight: 600; color: var(--rm-muted);
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.rm-pill:hover { color: var(--rm-white); border-color: var(--rm-border-strong); }
.rm-pill.is-active { background: var(--rm-text); border-color: var(--rm-text); color: var(--rm-ink); }

/* Grid & cards ---------------------------------------------------------- */
.rm-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .rm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .rm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .rm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.rm-card {
	background: var(--rm-surface);
	border: 1px solid var(--rm-border);
	border-radius: var(--rm-radius);
	box-shadow: var(--rm-shadow-card);
	overflow: hidden;
	transition: transform 0.35s var(--rm-ease), border-color 0.35s, box-shadow 0.35s;
}
.rm-card:hover { transform: translateY(-3px); border-color: var(--rm-border-strong); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(208, 178, 255, 0.08); }
.rm-card__link { display: block; padding: 8px; color: var(--rm-text); }
.rm-card__media {
	position: relative;
	aspect-ratio: 1.5;
	border-radius: calc(var(--rm-radius) - 6px);
	overflow: hidden;
	background: var(--rm-surface-3);
}
.rm-card__media .rm-video, .rm-card__img, .rm-card__placeholder {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	border: 0; outline: 0;
	transition: transform 0.8s var(--rm-ease);
}
.rm-card:hover .rm-video, .rm-card:hover .rm-card__img { transform: scale(1.04); }
.rm-card__placeholder { background: var(--rm-accent-gradient); background-size: 200% 200%; animation: rm-gradient-shift 8s ease-in-out infinite alternate; opacity: 0.85; }
.rm-card__badge { position: absolute; top: 10px; left: 10px; z-index: 1; }
.rm-card__badge.rm-badge--free { background: rgba(6, 30, 22, 0.78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.rm-card__body { display: flex; flex-direction: column; gap: 2px; padding: 12px 6px 6px; }
.rm-card__title { margin: 0; font-size: 15.5px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.rm-card__meta { font-size: 13px; color: var(--rm-muted); }
.rm-card.is-hidden { display: none; }
.rm-card.is-entering { animation: rm-card-in 0.5s var(--rm-ease) both; }
@keyframes rm-card-in { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: none; } }

.rm-empty {
	display: flex; flex-direction: column; align-items: center; gap: 14px;
	padding: 56px 24px;
	border: 1px dashed var(--rm-border-strong);
	border-radius: var(--rm-radius);
	text-align: center; color: var(--rm-muted);
}
.rm-empty p { margin: 0; }

/* Prompt detail --------------------------------------------------------- */
.rm-detail { padding-block: 28px 96px; }
.rm-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 14px; font-weight: 600; color: var(--rm-muted); }
.rm-detail__grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
@media (min-width: 1024px) { .rm-detail__grid { grid-template-columns: minmax(0, 65fr) minmax(0, 35fr); gap: 32px; } }
.rm-showcase {
	position: relative;
	aspect-ratio: 16 / 10;
	border-radius: var(--rm-radius-lg);
	overflow: hidden;
	background: var(--rm-surface-3);
	border: 1px solid var(--rm-border);
	box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.rm-showcase .rm-video, .rm-showcase .rm-card__img, .rm-showcase .rm-card__placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.rm-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.rm-tools__label { margin-right: 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rm-dim); }
.rm-detail__content { margin-top: 32px; }

.rm-detail__panel { position: relative; }
@media (min-width: 1024px) { .rm-detail__panel { position: sticky; top: calc(var(--rm-header-h) + 20px); } .admin-bar .rm-detail__panel { top: calc(var(--rm-header-h) + 52px); } }
.rm-panel {
	display: flex; flex-direction: column; gap: 16px;
	padding: 24px;
	background: var(--rm-surface);
	border: 1px solid var(--rm-border);
	border-radius: var(--rm-radius);
}
.rm-panel__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rm-panel__title { margin: 0; font-family: var(--rm-font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.6rem, 2.6vw, 2.25rem); line-height: 1; letter-spacing: -0.02em; }
.rm-panel__desc { margin: 0; color: var(--rm-muted); font-size: 15px; }
.rm-panel__hint { margin: 0; text-align: center; font-size: 14px; color: var(--rm-muted); }
.rm-panel__hint a { color: var(--rm-white); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.rm-codebox { border: 1px solid var(--rm-border); border-radius: 12px; background: #050506; overflow: hidden; }
.rm-codebox__head {
	display: flex; justify-content: space-between; gap: 12px;
	padding: 10px 14px;
	border-bottom: 1px solid var(--rm-border);
	font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rm-dim);
}
.rm-codebox__body {
	margin: 0; padding: 14px;
	max-height: 360px; overflow: auto;
	font-family: var(--rm-font-mono); font-size: 12.5px; line-height: 1.7; color: #D4D4D8;
	white-space: pre-wrap; word-break: break-word;
	scrollbar-width: thin; scrollbar-color: #3F3F46 transparent;
}

.rm-locked {
	position: relative;
	display: flex; flex-direction: column; gap: 10px;
	padding: 18px 14px;
	border: 1px solid var(--rm-border); border-radius: 12px;
	background: #050506;
	overflow: hidden;
	min-height: 220px;
}
.rm-locked > span { display: block; height: 10px; border-radius: 6px; background: linear-gradient(90deg, #27272A, #18181B); filter: blur(1.5px); }
.rm-locked > span:nth-child(2n) { width: 82%; }
.rm-locked > span:nth-child(3n) { width: 64%; }
.rm-locked__overlay {
	position: absolute; inset: 0;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
	padding: 20px; text-align: center;
	background: radial-gradient(70% 70% at 50% 50%, rgba(9, 9, 11, 0.6), rgba(9, 9, 11, 0.92));
	font-size: 14px; color: var(--rm-muted);
}
.rm-locked__overlay strong { color: var(--rm-white); font-size: 16px; }
.rm-locked__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; margin-bottom: 6px;
	border-radius: 50%;
	background: var(--rm-pro-gradient); color: var(--rm-ink);
	box-shadow: 0 0 32px -4px rgba(185, 139, 255, 0.6);
}
.rm-related { margin-top: clamp(56px, 8vw, 96px); }
.rm-related .rm-section-title { margin-bottom: 20px; }

/* Pricing --------------------------------------------------------------- */
.rm-pricing { position: relative; overflow: hidden; isolation: isolate; }
.rm-pricing__head { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; margin-bottom: 48px; }
.rm-pricing__head .rm-page-lead { margin-top: 0; }
.rm-plans { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 880px; margin-inline: auto; }
@media (min-width: 768px) { .rm-plans { grid-template-columns: 1fr 1fr; } }
.rm-plan {
	position: relative;
	display: flex; flex-direction: column; gap: 20px;
	padding: 28px;
	background: var(--rm-surface);
	border: 1px solid var(--rm-border);
	border-radius: var(--rm-radius-lg);
}
.rm-plan--pro {
	background: linear-gradient(var(--rm-surface), var(--rm-surface)) padding-box, var(--rm-accent-gradient) border-box;
	border: 1px solid transparent;
	box-shadow: 0 30px 80px -40px rgba(232, 64, 13, 0.45), 0 0 60px -30px rgba(208, 178, 255, 0.5);
}
.rm-plan__ribbon { position: absolute; top: -12px; right: 24px; padding: 4px 12px; border-radius: var(--rm-pill); background: var(--rm-pro-gradient); color: var(--rm-ink); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.rm-plan__name { margin: 0; font-family: var(--rm-font-display); font-weight: 800; text-transform: uppercase; font-size: 20px; letter-spacing: 0.01em; }
.rm-plan__price { margin: 0; font-family: var(--rm-font-display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; letter-spacing: -0.02em; }
.rm-plan__price small { margin-left: 4px; font-family: var(--rm-font-body); font-size: 15px; font-weight: 600; color: var(--rm-muted); letter-spacing: 0; }
.rm-plan__list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; flex: 1; }
.rm-plan__list li { display: flex; align-items: flex-start; gap: 10px; color: var(--rm-text); font-size: 15px; }
.rm-plan__list .rm-icon { margin-top: 4px; color: var(--rm-free); }
.rm-pay { display: flex; flex-wrap: wrap; gap: 8px; }
.rm-pay__chip { padding: 5px 10px; border-radius: 8px; border: 1px solid var(--rm-border); background: rgba(255, 255, 255, 0.03); font-size: 12px; font-weight: 700; color: var(--rm-muted); }
.rm-pricing__content { max-width: 720px; margin: 64px auto 0; }

/* Auth modal ------------------------------------------------------------ */
.rm-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.rm-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: rm-fade 0.25s ease both; }
.rm-modal__dialog {
	position: relative;
	width: 100%; max-width: 420px; max-height: calc(100vh - 32px); overflow: auto;
	padding: 28px;
	background: var(--rm-surface);
	border: 1px solid var(--rm-border-strong);
	border-radius: var(--rm-radius-lg);
	box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9), 0 0 80px -40px rgba(208, 178, 255, 0.5);
	animation: rm-pop 0.35s var(--rm-ease) both;
}
@keyframes rm-fade { from { opacity: 0; } }
@keyframes rm-pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
.rm-modal__close { position: absolute; top: 14px; right: 14px; }
.rm-modal__head { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 20px; text-align: center; }
.rm-modal__head .rm-logo__mark { width: 36px; height: 36px; border-radius: 11px; margin-bottom: 6px; }
.rm-modal__title { margin: 0; font-family: var(--rm-font-display); font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: -0.01em; }
.rm-modal__lead { margin: 0; font-size: 14px; color: var(--rm-muted); }
.rm-auth__panel { margin-top: 20px; }
.rm-auth__panel form p, .rm-auth__form p { margin: 0 0 14px; }
.rm-auth__panel label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--rm-muted); }
.rm-auth__panel input[type="text"], .rm-auth__panel input[type="password"], .rm-auth__panel input[type="email"] {
	width: 100%; height: 46px; padding: 0 14px;
	border: 1px solid var(--rm-border-strong); border-radius: 12px;
	background: var(--rm-surface-3); color: var(--rm-text);
	outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.rm-auth__panel input:focus { border-color: #D0B2FF; box-shadow: 0 0 0 3px rgba(208, 178, 255, 0.2); }
.rm-auth__panel .login-remember label { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.rm-auth__panel .login-submit input[type="submit"], #rm-login-form .button-primary {
	width: 100%; min-height: 48px;
	border: 0; border-top: 2px solid var(--rm-white); border-radius: var(--rm-pill);
	background: var(--rm-cta-gradient); color: var(--rm-ink);
	font-weight: 700; font-size: 15px; cursor: pointer;
	box-shadow: var(--rm-shadow-cta);
}
.rm-auth__link { display: block; text-align: center; font-size: 13px; color: var(--rm-muted); text-decoration: underline; text-underline-offset: 3px; }
.rm-auth__note { font-size: 13px; color: var(--rm-muted); }
body.rm-modal-open { overflow: hidden; }

/* Content (posts, pages, block editor) ---------------------------------- */
.rm-article { max-width: 780px; margin-inline: auto; }
.rm-article__thumb { margin-bottom: 32px; border-radius: var(--rm-radius); overflow: hidden; }
.rm-prose { color: #D4D4D8; font-size: 17px; line-height: 1.75; }
.rm-prose > * + * { margin-top: 1.1em; }
.rm-prose h1, .rm-prose h2, .rm-prose h3, .rm-prose h4 { color: var(--rm-text); font-family: var(--rm-font-display); font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; margin-top: 1.8em; }
.rm-prose a { color: var(--rm-white); text-decoration: underline; text-decoration-color: rgba(208, 178, 255, 0.6); text-underline-offset: 3px; }
.rm-prose code { font-family: var(--rm-font-mono); font-size: 0.9em; padding: 2px 6px; border-radius: 6px; background: var(--rm-surface-2); }
.rm-prose pre { padding: 16px; border-radius: 12px; background: #050506; border: 1px solid var(--rm-border); overflow: auto; }
.rm-prose blockquote { margin-inline: 0; padding-left: 20px; border-left: 3px solid #D0B2FF; color: var(--rm-text); }
.rm-prose img, .rm-prose figure { border-radius: 12px; }
.rm-prose .alignwide { max-width: 1100px; }
.rm-prose .alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.wp-block-button__link { border-radius: var(--rm-pill); background: var(--rm-cta-gradient); color: var(--rm-ink); font-weight: 700; border-top: 2px solid var(--rm-white); }
.rm-pagination .nav-links { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.rm-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--rm-pill); border: 1px solid var(--rm-border); color: var(--rm-muted); }
.rm-pagination .page-numbers.current { background: var(--rm-text); color: var(--rm-ink); border-color: var(--rm-text); }
.rm-404 { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; padding-block: 120px; }

/* Elementor ------------------------------------------------------------- */
.rm-elementor-page .rm-main { min-height: 0; }
.elementor-page .rm-main > .elementor { width: 100%; }

/* Footer ---------------------------------------------------------------- */
.rm-footer { margin-top: 48px; border-top: 1px solid var(--rm-border); background: linear-gradient(180deg, transparent, rgba(208, 178, 255, 0.03)); }
.rm-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-block: 48px 32px; }
.rm-footer__brand { max-width: 360px; }
.rm-footer__tagline { margin: 14px 0 0; color: var(--rm-muted); font-size: 14px; }
.rm-footer__menu, .rm-footer__nav .rm-menu { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; list-style: none; flex-direction: row; }
.rm-footer__menu a { display: inline-flex; height: 36px; align-items: center; padding: 0 12px; border-radius: var(--rm-pill); font-size: 14px; font-weight: 600; color: var(--rm-muted); }
.rm-footer__menu a:hover { color: var(--rm-white); background: rgba(255, 255, 255, 0.05); }
.rm-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px 32px; border-top: 1px solid var(--rm-border); font-size: 13px; color: var(--rm-dim); }

/* Reduced motion -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
	.rm-reveal { opacity: 1; transform: none; }
}
