:root {
    --bg: #f7f9fb;
    --surface: #ffffff;
    --surface-alt: #edf4f2;
    --ink: #172426;
    --muted: #637173;
    --line: #dbe4e5;
    --primary: #0f766e;
    --primary-dark: #115e59;
    --accent: #d97706;
    --danger: #b42318;
    --success: #15803d;
    --shadow: 0 16px 40px rgba(23, 36, 38, 0.11);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.narrow {
    width: min(720px, calc(100% - 32px));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.nav-shell {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    min-height: 74px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 8px;
    background: var(--primary);
    color: white;
    font-size: 14px;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    color: var(--muted);
    font-weight: 600;
}

.site-nav a:hover {
    color: var(--primary-dark);
}

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

.nav-actions form {
    margin: 0;
}

.button,
button.button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-dark {
    background: var(--primary-dark);
    color: white;
}

.button-light {
    background: var(--surface-alt);
    color: var(--primary-dark);
    border-color: var(--line);
}

.button-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}

.button-small {
    min-height: 34px;
    padding: 7px 12px;
    background: var(--primary);
    color: white;
    font-size: 14px;
}

.icon-button {
    display: none;
    border: 0;
    background: transparent;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background: var(--ink);
}

.hero {
    padding: 56px 0 40px;
    background: linear-gradient(180deg, #ffffff 0%, #eef6f5 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
    gap: 40px;
    align-items: center;
}

.hero-copy h1,
.page-hero h1 {
    margin: 10px 0 18px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.02;
}

.hero-copy p {
    color: var(--muted);
    max-width: 620px;
    font-size: 18px;
}

.hero-actions,
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.hero-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.eyebrow {
    margin: 0;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.section {
    padding: 64px 0;
}

.section-muted {
    background: var(--surface-alt);
}

.section-heading {
    margin-bottom: 24px;
}

.section-heading h2,
.split-section h2,
.panel h2 {
    margin: 4px 0 8px;
    font-size: 32px;
    line-height: 1.15;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
    gap: 32px;
    align-items: center;
}

.split-section img,
.page-banner,
.page-section img {
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.card-grid,
.pricing-grid,
.stat-grid,
.panel-grid {
    display: grid;
    gap: 22px;
}

.card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-card,
.pricing-card,
.panel,
.auth-card,
.status-card,
.side-panel,
.stat-card,
.wallet-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(23, 36, 38, 0.06);
}

.blog-card {
    overflow: hidden;
}

.blog-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.card-body,
.pricing-card,
.panel,
.auth-card,
.status-card,
.side-panel,
.stat-card,
.wallet-card {
    padding: 22px;
}

.blog-card h2,
.blog-card h3,
.pricing-card h2,
.pricing-card h3 {
    margin: 10px 0;
    line-height: 1.2;
}

.card-meta,
.list-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: 14px;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 800;
}

.badge-free {
    background: #dcfce7;
    color: #166534;
}

.badge-premium {
    background: #fef3c7;
    color: #92400e;
}

.page-hero {
    padding: 70px 0;
    background: #e7f1ef;
}

.page-hero.compact {
    padding: 44px 0;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 220px auto;
    gap: 12px;
    margin-top: 20px;
}

.input,
input,
select,
textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    background: white;
    color: var(--ink);
    font: inherit;
}

textarea {
    min-height: 130px;
}

.auth-page,
.status-page {
    display: grid;
    min-height: 68vh;
    place-items: center;
    padding: 48px 16px;
}

.auth-card,
.status-card {
    width: min(480px, 100%);
}

.auth-card--wide {
    width: min(680px, 100%);
}

.auth-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.auth-form-grid > div {
    display: flex;
    flex-direction: column;
}

.auth-form-grid label {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 4px;
}

.auth-form-grid input,
.auth-form-grid select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--rh-border, #e5e7eb);
    border-radius: 8px;
    font-size: 0.875rem;
    background: #fff;
}

.auth-form-grid small {
    font-size: 0.75rem;
    color: var(--rh-muted, #6b7280);
    margin-top: 4px;
}

.auth-password-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.auth-password-section > div {
    display: flex;
    flex-direction: column;
}

.auth-password-section label {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 4px;
}

.auth-password-section input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--rh-border, #e5e7eb);
    border-radius: 8px;
    font-size: 0.875rem;
}

.auth-password-section small {
    font-size: 0.75rem;
    color: var(--rh-muted, #6b7280);
    margin-top: 4px;
}

.auth-interests-section {
    margin-top: 4px;
}

.auth-interests-section > label {
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
}

.auth-interests-help {
    display: block;
    font-size: 0.75rem;
    color: var(--rh-muted, #6b7280);
    margin-bottom: 10px;
}

.auth-interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
}

.auth-interest-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--rh-border, #e5e7eb);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1;
    transition: background 0.15s;
}

.auth-interest-item:hover {
    background: #f9fafb;
}

.auth-interest-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--rh-primary, #007f5f);
    flex-shrink: 0;
    margin: 0;
    vertical-align: middle;
}

.auth-interest-item span {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

body[data-theme="dark"] .auth-card--wide {
    background: var(--rh-surface, #1f2937);
}

body[data-theme="dark"] .auth-form-grid input,
body[data-theme="dark"] .auth-form-grid select,
body[data-theme="dark"] .auth-password-section input {
    background: var(--rh-surface, #1f2937);
    border-color: var(--rh-border, #374151);
    color: var(--rh-text, #f9fafb);
}

body[data-theme="dark"] .auth-interest-item {
    border-color: var(--rh-border, #374151);
    background: var(--rh-surface, #1f2937);
}

body[data-theme="dark"] .auth-interest-item:hover {
    background: var(--rh-soft, #374151);
}

.stack-form {
    display: grid;
    gap: 16px;
}

.stack-form p {
    margin: 0;
}

.stack-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

.muted,
.helptext {
    color: var(--muted);
}

.auth-card .helptext ul {
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
}

.auth-card .helptext ul li {
    font-size: 0.8125rem;
    color: var(--rh-muted, #6b7280);
    padding: 3px 0;
}

.auth-card .helptext ul li::before {
    content: "\2022";
    color: var(--rh-primary, #007f5f);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: 2px;
}

.message-stack {
    position: fixed;
    top: 90px;
    right: 18px;
    z-index: 30;
    display: grid;
    gap: 10px;
}

.alert {
    max-width: 360px;
    border-radius: 8px;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.alert-success {
    border-color: #86efac;
}

.alert-error {
    border-color: #fca5a5;
}

.alert.is-hiding {
    opacity: 0;
}

.blog-detail-header {
    padding: 54px 0 34px;
    background: #e7f1ef;
}

.blog-detail-header h1 {
    margin: 12px 0;
    max-width: 900px;
    font-size: clamp(36px, 6vw, 62px);
    line-height: 1.06;
}

.detail-image {
    margin-top: 28px;
}

.detail-image img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 8px;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    padding: 42px 0 68px;
}

.article-body {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 30px;
}

.premium-lock {
    margin-top: 24px;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 22px;
    background: #fffbeb;
}

.file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.file-row:last-child {
    border-bottom: 0;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 28px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    background: white;
    color: var(--muted);
    text-align: center;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 30px;
}

.pricing-card {
    display: grid;
    gap: 12px;
}

.pricing-card strong {
    font-size: 32px;
}

.site-footer {
    padding: 42px 0;
    background: #152526;
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 1fr;
    gap: 28px;
}



.footer-grid a,
.footer-grid p {
    display: block;
    color: #c7d6d7;
}

.footer-grid>div>.rh-brand{
    display: inline-flex !important;
}
.page-content {
    max-width: 860px;
}

.page-section {
    margin-top: 36px;
}

/* ResourceHub homepage */
.home-page {
    background: var(--rh-bg, #020614);
    color: #f8fbff;
}

.home-page .site-header,
.home-page .site-footer {
    display: none;
}

.home-page main {
    background: var(--rh-bg, #020614);
}

.resource-home {
    --rh-bg: #020614;
    --rh-panel: rgba(6, 16, 38, 0.82);
    --rh-panel-strong: rgba(9, 23, 55, 0.94);
    --rh-line: rgba(83, 139, 230, 0.42);
    --rh-line-soft: rgba(104, 143, 210, 0.22);
    --rh-text: #f8fbff;
    --rh-muted: #aab7ce;
    --rh-blue: #0878ff;
    --rh-cyan: #16d3ff;
    --rh-teal: #2dd4bf;
    --rh-amber: #fb923c;
    --rh-violet: #8b5cf6;
    --rh-pink: #ec4899;
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    color: var(--rh-text);
    background:
        linear-gradient(112deg, rgba(2, 6, 20, 0.98) 0%, rgba(3, 9, 29, 0.94) 44%, rgba(7, 42, 105, 0.7) 100%),
        repeating-linear-gradient(0deg, rgba(80, 136, 220, 0.1) 0 1px, transparent 1px 66px),
        repeating-linear-gradient(90deg, rgba(80, 136, 220, 0.09) 0 1px, transparent 1px 66px),
        #020614;
}

.resource-home::before {
    content: "";
    position: absolute;
    inset: 78px 0 auto auto;
    width: 62%;
    height: 560px;
    pointer-events: none;
    background:
        linear-gradient(118deg, transparent 0%, rgba(3, 105, 255, 0.18) 38%, rgba(10, 132, 255, 0.5) 74%, transparent 100%);
    clip-path: polygon(24% 0, 100% 10%, 100% 86%, 16% 100%, 0 52%);
    opacity: 0.72;
}

.resource-home::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(16, 81, 175, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 81, 175, 0.08) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(90deg, transparent 0%, #000 32%, #000 100%);
    opacity: 0.65;
}

.resource-home svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.resource-container {
    position: relative;
    z-index: 1;
    width: min(1440px, calc(100% - 84px));
    margin: 0 auto;
}

.resource-topbar {
    position: relative;
    z-index: 3;
    padding: 14px 0 10px;
    color: #cdd8ed;
    font-size: 14px;
}

.resource-topbar-inner,
.topbar-note,
.topbar-links,
.topbar-links a,
.topbar-currency {
    display: flex;
    align-items: center;
}

.resource-topbar-inner {
    justify-content: space-between;
    gap: 24px;
}

.topbar-note {
    gap: 9px;
}

.topbar-note svg {
    color: var(--rh-blue);
}

.topbar-links {
    gap: 16px;
}

.topbar-links a,
.topbar-currency {
    gap: 8px;
    color: #d9e3f5;
}

.topbar-links span {
    width: 1px;
    height: 16px;
    background: rgba(188, 207, 245, 0.28);
}

.topbar-currency {
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.resource-navbar {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    min-height: 76px;
    padding: 16px 38px;
    border: 1px solid rgba(66, 130, 234, 0.58);
    border-radius: 12px;
    background: rgba(4, 13, 35, 0.82);
    box-shadow: 0 18px 54px rgba(0, 80, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
}

.resource-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: white;
    font-size: 25px;
    font-weight: 800;
}

.resource-brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, #17a2ff, #065fff);
    box-shadow: 0 0 22px rgba(8, 120, 255, 0.7);
}

.resource-brand-mark svg {
    width: 22px;
    height: 22px;
}

.resource-nav-links {
    display: flex;
    justify-content: center;
    gap: 34px;
    color: #e4ebfa;
    font-weight: 680;
}

.resource-nav-links a {
    position: relative;
    padding: 12px 0;
}

.resource-nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -18px;
    height: 3px;
    border-radius: 3px;
    background: transparent;
}

.resource-nav-links a:hover,
.resource-nav-links .is-active {
    color: white;
}

.resource-nav-links .is-active::after {
    background: var(--rh-blue);
    box-shadow: 0 0 18px rgba(8, 120, 255, 0.9);
}

.resource-nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cart-link {
    position: relative;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: white;
}

.cart-link svg {
    width: 30px;
    height: 30px;
}

.cart-link span {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 999px;
    background: var(--rh-blue);
    color: white;
    font-size: 11px;
    font-weight: 800;
}

.resource-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    padding: 10px 22px;
    font-weight: 700;
}

.resource-button-ghost {
    border: 1px solid rgba(136, 171, 230, 0.5);
    background: rgba(4, 13, 35, 0.42);
    color: white;
}

.resource-button-solid {
    border: 1px solid rgba(37, 139, 255, 0.75);
    background: linear-gradient(135deg, #0d8cff, #075cff);
    color: white;
    box-shadow: 0 10px 24px rgba(8, 120, 255, 0.35);
}

.resource-hero {
    position: relative;
    z-index: 1;
    padding: 28px 0 32px;
}

.resource-hero-grid {
    display: grid;
    grid-template-columns: minmax(430px, 0.86fr) minmax(0, 1.14fr);
    gap: 40px;
    align-items: center;
    min-height: 430px;
}

.resource-hero-copy {
    padding-top: 18px;
}

.resource-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    border: 1px solid rgba(27, 135, 255, 0.62);
    border-radius: 999px;
    padding: 8px 16px;
    background: rgba(7, 24, 56, 0.72);
    color: #58b7ff;
    font-weight: 700;
    box-shadow: inset 0 0 18px rgba(8, 120, 255, 0.16);
}

.resource-pill span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #65c9ff;
    box-shadow: 0 0 13px #34a6ff;
}

.resource-hero h1 {
    margin: 0;
    max-width: 690px;
    font-size: clamp(54px, 5.3vw, 72px);
    line-height: 1.05;
    letter-spacing: 0;
}

.resource-hero h1 span {
    color: var(--rh-blue);
}

.resource-hero-copy > p {
    max-width: 660px;
    margin: 18px 0 22px;
    color: var(--rh-muted);
    font-size: 18px;
    line-height: 1.55;
}

.resource-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px 96px;
    align-items: center;
    width: min(640px, 100%);
    margin-top: 18px;
    padding: 6px;
    border: 1px solid rgba(37, 123, 255, 0.74);
    border-radius: 12px;
    background: rgba(5, 16, 39, 0.88);
    box-shadow: 0 0 0 5px rgba(8, 120, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 0 14px;
    color: #91a1bc;
}

.search-input-wrap svg {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
}

.resource-search input,
.resource-search select {
    min-height: 44px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #edf4ff;
    font-size: 15px;
}

.resource-search input {
    padding: 0;
}

.resource-search input::placeholder {
    color: #7f8da8;
}

.resource-search select {
    border-left: 1px solid rgba(147, 169, 210, 0.22);
    padding: 0 14px;
}

.resource-search select option {
    background: #08142e;
    color: white;
}

.resource-search button {
    min-height: 46px;
    border: 0;
    border-radius: 7px;
    background: linear-gradient(135deg, #0f8dff, #085cff);
    color: white;
    cursor: pointer;
    font: inherit;
    font-weight: 780;
    box-shadow: 0 10px 24px rgba(8, 120, 255, 0.35);
}

.resource-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    width: min(640px, 100%);
    margin-top: 32px;
}

.resource-trust-grid div {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 12px;
    row-gap: 2px;
    align-items: center;
}

.trust-icon {
    display: grid;
    grid-row: span 2;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(56, 143, 255, 0.58);
    border-radius: 8px;
    background: rgba(5, 19, 48, 0.76);
}

.trust-blue {
    color: #1793ff;
}

.trust-teal {
    color: #2dd4bf;
}

.trust-violet {
    color: #8b5cf6;
}

.resource-trust-grid strong {
    color: #58b7ff;
    font-size: 13px;
}

.resource-trust-grid small {
    color: #a8b4ca;
    font-size: 12px;
}

.resource-hero-art {
    position: relative;
    min-height: 420px;
}

.resource-hero-art img {
    width: min(850px, 116%);
    max-width: none;
    margin-left: -4%;
    filter: drop-shadow(0 26px 58px rgba(0, 88, 255, 0.38));
}

.resource-categories {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--rh-line-soft);
    border-bottom: 1px solid var(--rh-line-soft);
    background: rgba(1, 5, 16, 0.42);
}

.resource-category-row {
    display: grid;
    grid-template-columns: 180px repeat(6, minmax(124px, 1fr)) 154px;
    gap: 16px;
    padding: 14px 0;
}

.category-card {
    position: relative;
    display: grid;
    min-height: 118px;
    align-content: center;
    justify-items: center;
    gap: 8px;
    overflow: hidden;
    border: 1px solid rgba(98, 145, 220, 0.36);
    border-radius: 8px;
    padding: 18px 14px;
    background: linear-gradient(145deg, rgba(8, 20, 47, 0.94), rgba(2, 8, 22, 0.74));
    color: white;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(145deg, rgba(0, 124, 255, 0.14), transparent 55%);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card-title {
    justify-items: start;
    padding-left: 22px;
    text-align: left;
}

.category-card-title h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.22;
}

.category-card-title p,
.category-card small {
    margin: 0;
    color: #aebad0;
    font-size: 12px;
}

.category-card-title > svg {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    color: rgba(8, 120, 255, 0.64);
}

.category-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--category-color, var(--rh-blue));
}

.category-icon svg {
    width: 38px;
    height: 38px;
}

.category-card strong {
    position: relative;
    font-size: 14px;
    line-height: 1.2;
}

.category-accent-1 {
    --category-color: var(--rh-blue);
}

.category-accent-2 {
    --category-color: var(--rh-teal);
}

.category-accent-3 {
    --category-color: var(--rh-amber);
}

.category-accent-4 {
    --category-color: var(--rh-violet);
}

.category-accent-5 {
    --category-color: #f8c445;
}

.category-accent-6 {
    --category-color: var(--rh-pink);
}

.category-card-view {
    justify-items: start;
    text-align: left;
}

.category-card-view span {
    position: relative;
    font-weight: 780;
    line-height: 1.35;
}

.category-card-view svg {
    justify-self: end;
    width: 28px;
    height: 28px;
}

.resource-popular {
    position: relative;
    z-index: 1;
    padding: 24px 0 34px;
}

.resource-popular-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: stretch;
}

.resource-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.resource-section-head h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    font-size: 27px;
    line-height: 1.18;
}

.resource-section-head h2 span {
    width: 15px;
    height: 15px;
    clip-path: polygon(50% 0, 65% 34%, 100% 50%, 65% 66%, 50% 100%, 35% 66%, 0 50%, 35% 34%);
    background: var(--rh-blue);
}

.resource-section-head p {
    margin: 3px 0 0;
    color: var(--rh-muted);
    font-size: 14px;
}

.resource-section-head a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #1594ff;
    font-weight: 700;
}

.resource-section-head a svg {
    width: 22px;
    height: 22px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.resource-article-card {
    overflow: hidden;
    border: 1px solid rgba(93, 141, 217, 0.32);
    border-radius: 8px;
    background: rgba(7, 17, 39, 0.92);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

.article-image {
    display: block;
    overflow: hidden;
    background: #071126;
}

.article-image img {
    width: 100%;
    aspect-ratio: 16 / 7.2;
    object-fit: cover;
    transition: transform 0.18s ease;
}

.resource-article-card:hover .article-image img {
    transform: scale(1.03);
}

.article-card-body {
    padding: 16px;
}

.article-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    padding: 4px 8px;
    color: white;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.tag-1 {
    background: #0b76df;
}

.tag-2 {
    background: #0f8f78;
}

.tag-3 {
    background: #d96c08;
}

.tag-4 {
    background: #4f46e5;
}

.article-card-body h3 {
    margin: 10px 0 8px;
    min-height: 58px;
    font-size: 17px;
    line-height: 1.25;
}

.article-card-body p {
    margin: 0 0 14px;
    color: #aab6cc;
    font-size: 13px;
    line-height: 1.45;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    color: #8d99b0;
    font-size: 11px;
}

.article-meta span + span::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 3px;
    margin-right: 9px;
    border-radius: 999px;
    background: #63718b;
    vertical-align: middle;
}

.premium-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(8, 120, 255, 0.78);
    border-radius: 10px;
    padding: 28px 24px;
    background:
        linear-gradient(145deg, rgba(5, 17, 43, 0.96), rgba(2, 8, 22, 0.94)),
        repeating-linear-gradient(0deg, rgba(12, 123, 255, 0.1) 0 1px, transparent 1px 11px);
    box-shadow: 0 0 44px rgba(8, 120, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.premium-panel::after {
    content: "";
    position: absolute;
    right: -32px;
    bottom: -30px;
    width: 190px;
    height: 130px;
    background-image: radial-gradient(rgba(8, 120, 255, 0.55) 1px, transparent 1.5px);
    background-size: 8px 8px;
    opacity: 0.55;
}

.premium-panel > * {
    position: relative;
    z-index: 1;
}

.premium-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(8, 120, 255, 0.76);
    border-radius: 8px;
    background: rgba(6, 22, 56, 0.84);
    color: var(--rh-blue);
}

.premium-icon svg {
    width: 28px;
    height: 28px;
}

.premium-panel h2 {
    margin: 18px 0 10px;
    font-size: 22px;
}

.premium-panel p {
    margin: 0 0 18px;
    color: #b7c2d6;
    line-height: 1.55;
}

.premium-panel ul {
    display: grid;
    gap: 12px;
    margin: 0 0 26px;
    padding: 0;
    color: #cdd7ea;
    list-style: none;
}

.premium-panel li {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 14px;
}

.premium-panel li::before {
    content: "";
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    background: var(--rh-blue);
    clip-path: polygon(14% 50%, 34% 70%, 80% 20%, 91% 32%, 35% 88%, 3% 58%);
}

.premium-button {
    display: inline-flex;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border-radius: 7px;
    background: linear-gradient(135deg, #0f8dff, #075dff);
    color: white;
    font-weight: 830;
    box-shadow: 0 15px 32px rgba(8, 120, 255, 0.3);
}

.premium-button svg {
    width: 22px;
    height: 22px;
}

@media (max-width: 1180px) {
    .resource-container {
        width: min(100% - 40px, 1040px);
    }

    .resource-navbar {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 12px;
    }

    .resource-nav-links a::after {
        bottom: -6px;
    }

    .resource-hero-grid {
        grid-template-columns: 1fr;
    }

    .resource-hero-art {
        min-height: 0;
    }

    .resource-hero-art img {
        width: 100%;
        margin-left: 0;
    }

    .resource-category-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .resource-topbar-inner,
    .topbar-links,
    .resource-nav-links,
    .resource-nav-actions,
    .resource-trust-grid,
    .resource-section-head {
        align-items: stretch;
    }

    .resource-topbar-inner,
    .topbar-links,
    .resource-nav-links,
    .resource-nav-actions,
    .resource-section-head {
        flex-direction: column;
    }

    .resource-navbar {
        padding: 18px;
    }

    .resource-nav-links {
        gap: 10px;
        text-align: center;
    }

    .resource-nav-actions {
        width: 100%;
    }

    .cart-link {
        align-self: center;
    }

    .resource-button {
        width: 100%;
    }

    .resource-hero h1 {
        font-size: 48px;
    }

    .resource-search {
        grid-template-columns: 1fr;
    }

    .resource-search select {
        border-top: 1px solid rgba(147, 169, 210, 0.22);
        border-left: 0;
    }

    .resource-trust-grid,
    .resource-popular-grid {
        grid-template-columns: 1fr;
    }

    .resource-category-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .resource-container {
        width: min(100% - 24px, 520px);
    }

    .resource-topbar {
        font-size: 12px;
    }

    .resource-brand {
        font-size: 22px;
    }

    .resource-hero {
        padding-top: 18px;
    }

    .resource-hero h1 {
        font-size: 38px;
    }

    .resource-hero-copy > p {
        font-size: 16px;
    }

    .resource-category-row,
    .article-grid {
        grid-template-columns: 1fr;
    }

    .article-card-body h3 {
        min-height: auto;
    }
}

/* ResourceHub light design system */
body,
.resource-light-page {
    --rh-bg: #fbfcfd;
    --rh-surface: #ffffff;
    --rh-soft: #eef8f4;
    --rh-border: #dfe7ee;
    --rh-border-soft: #edf1f5;
    --rh-text: #0f1930;
    --rh-muted: #536078;
    --rh-primary: #007f5f;
    --rh-primary-dark: #00634d;
    --rh-primary-soft: #e3f5ee;
    --rh-orange: #f97316;
    --rh-violet: #4f46e5;
    --rh-blue: #2563eb;
    --rh-pink: #f43f7f;
    --rh-shadow: 0 12px 34px rgba(15, 25, 48, 0.08);
    --rh-shadow-soft: 0 8px 24px rgba(15, 25, 48, 0.06);
    background:
        radial-gradient(circle at 8% 18%, rgba(0, 127, 95, 0.035), transparent 24%),
        radial-gradient(circle at 92% 26%, rgba(0, 127, 95, 0.04), transparent 24%),
        var(--rh-bg);
    color: var(--rh-text);
}

/* ── Dark Mode ── */
body[data-theme="dark"] {
    --rh-bg: #0f1117;
    --rh-surface: #1a1d27;
    --rh-soft: #1e212b;
    --rh-border: #2a2e3a;
    --rh-border-soft: #232733;
    --rh-text: #e2e8f0;
    --rh-muted: #94a3b8;
    --rh-primary: #2dd4bf;
    --rh-primary-dark: #14b8a6;
    --rh-primary-soft: #0d3b2e;
    --rh-orange: #fb923c;
    --rh-violet: #a78bfa;
    --rh-blue: #60a5fa;
    --rh-pink: #f472b6;
    --rh-shadow: 0 12px 34px rgba(0, 0, 0, 0.3);
    --rh-shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.2);
    background:
        radial-gradient(circle at 8% 18%, rgba(45, 212, 191, 0.04), transparent 24%),
        radial-gradient(circle at 92% 26%, rgba(45, 212, 191, 0.05), transparent 24%),
        var(--rh-bg);
}

body[data-theme="dark"] .rh-header {
    background: rgba(26, 29, 39, 0.96);
    border-bottom-color: var(--rh-border);
}

body[data-theme="dark"] .rh-nav a {
    color: var(--rh-muted);
}

body[data-theme="dark"] .page-home .rh-nav .nav-home,
body[data-theme="dark"] .page-blog .rh-nav .nav-blog,
body[data-theme="dark"] .page-dashboard .rh-nav .nav-dashboard,
body[data-theme="dark"] .page-pricing .rh-nav .nav-pricing,
body[data-theme="dark"] .page-about .rh-nav .nav-about,
body[data-theme="dark"] .page-contact .rh-nav .nav-contact {
    color: var(--rh-primary);
    font-weight: 700;
}

body[data-theme="dark"] .page-home .rh-nav .nav-home::after,
body[data-theme="dark"] .page-blog .rh-nav .nav-blog::after,
body[data-theme="dark"] .page-dashboard .rh-nav .nav-dashboard::after,
body[data-theme="dark"] .page-pricing .rh-nav .nav-pricing::after,
body[data-theme="dark"] .page-about .rh-nav .nav-about::after,
body[data-theme="dark"] .page-contact .rh-nav .nav-contact::after {
    background: var(--rh-primary);
}

body[data-theme="dark"] .site-footer {
    background: #080a0e;
}

body[data-theme="dark"] .site-footer p,
body[data-theme="dark"] .site-footer a,
body[data-theme="dark"] .site-footer h4 {
    color: #c7d6d7;
}

body[data-theme="dark"] .site-footer a:hover {
    color: var(--rh-primary);
}

body[data-theme="dark"] .footer-grid p {
    color: #94a3b8;
}

body[data-theme="dark"] .rh-filter-chips span,
body[data-theme="dark"] .rh-chip {
    border-color: var(--rh-border);
    background: var(--rh-surface);
}

body[data-theme="dark"] .rh-filter-sidebar hr {
    border-color: var(--rh-border);
}

body[data-theme="dark"] .rh-user-chip {
    background: var(--rh-surface);
    border-color: var(--rh-border);
}

body[data-theme="dark"] .rh-user-chip strong {
    color: var(--rh-text);
}

body[data-theme="dark"] .rh-user-chip:hover {
    background: var(--rh-soft);
}

body main,
.resource-light-page main {
    min-height: calc(100vh - 132px);
}

.resource-light-page svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.rh-container {
    width: min(1360px, calc(100% - 160px));
    margin: 0 auto;
}

.rh-topbar {
    height: 50px;
    border-bottom: 1px solid var(--rh-border-soft);
    background: #f8fafb;
    color: #26344c;
    font-size: 13px;
}

.rh-topbar-inner,
.rh-top-note,
.rh-top-links,
.rh-top-links a,
.rh-top-links button {
    display: flex;
    align-items: center;
}

.rh-topbar-inner {
    height: 50px;
    justify-content: space-between;
    gap: 24px;
}

.rh-top-note {
    gap: 10px;
}

.rh-top-note svg,
.rh-top-links svg {
    color: #26344c;
    font-size: 17px;
}

.rh-top-links {
    gap: 32px;
}

.rh-top-links a,
.rh-top-links button {
    gap: 8px;
    border: 0;
    background: transparent;
    color: #26344c;
    cursor: pointer;
    font: inherit;
}

.rh-header {
    height: 72px;
    border-bottom: 1px solid var(--rh-border);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
}

.rh-header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    height: 72px;
    gap: 32px;
}

.rh-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.rh-brand span {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.rh-logo {
    height: 79px;
    width: auto;
}

.site-footer .rh-logo:not(.rh-logo-sm) {
    filter: brightness(0) invert(1);
}

.site-footer .rh-logo-sm {
    filter: brightness(0) invert(1);
}

.site-footer .rh-brand span {
    display: none;
}

.rh-logo-sm {
    height: 42px;
    width: auto;
}

.rh-menu-button {
    display: none;
}

.rh-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    color: var(--rh-text);
    font-size: 15px;
    font-weight: 600;
}

.rh-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 14px;
    min-height: 72px;
    color: #475569;
    border-radius: 8px 8px 0 0;
    transition: color 0.15s, background 0.15s;
}

.rh-nav a:hover {
    color: var(--rh-primary);
    background: var(--rh-primary-soft);
}

.rh-nav a::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: transparent;
    transition: background 0.15s;
}

.page-home .rh-nav .nav-home::after,
.page-blog .rh-nav .nav-blog::after,
.page-dashboard .rh-nav .nav-dashboard::after,
.page-pricing .rh-nav .nav-pricing::after,
.page-about .rh-nav .nav-about::after,
.page-contact .rh-nav .nav-contact::after {
    background: var(--rh-primary);
}

.page-home .rh-nav .nav-home,
.page-blog .rh-nav .nav-blog,
.page-dashboard .rh-nav .nav-dashboard,
.page-pricing .rh-nav .nav-pricing,
.page-about .rh-nav .nav-about,
.page-contact .rh-nav .nav-contact {
    color: var(--rh-primary-dark);
    font-weight: 700;
}

.rh-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.rh-cart {
    position: relative;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: var(--rh-text);
    border-radius: 8px;
    transition: background 0.15s;
}

.rh-cart:hover {
    background: var(--rh-primary-soft);
}

.rh-cart svg {
    width: 24px;
    height: 24px;
}

.rh-cart span {
    position: absolute;
    top: 2px;
    right: 2px;
    display: grid;
    width: 16px;
    height: 16px;
    place-items: center;
    border-radius: 999px;
    background: var(--rh-primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
}

.rh-button,
button.rh-button,
a.rh-button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    padding: 0 20px;
    border: 1px solid transparent;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    font-size: 14px;
    transition: opacity 0.15s, box-shadow 0.15s;
}

.rh-button:hover {
    opacity: 0.9;
}

.rh-button.full {
    width: 100%;
}

.rh-button.small {
    min-height: 36px;
    padding: 8px 16px;
    font-size: 13px;
}

.rh-button-green {
    background: linear-gradient(135deg, var(--rh-primary), var(--rh-primary-dark));
    color: white;
    box-shadow: 0 2px 8px rgba(0, 127, 95, 0.2);
}

.rh-button-light,
.rh-button-outline {
    border-color: var(--rh-border);
    background: #fff;
    color: var(--rh-text);
}

.rh-button-outline {
    border-color: var(--rh-primary);
    color: var(--rh-primary);
}

.rh-button-danger {
    border-color: #fecaca;
    background: #fff;
    color: #dc2626;
}

.rh-button-wallet {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
    border: none;
    width: 100%;
    margin-bottom: 8px;
}
.rh-button-wallet:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
}

.rh-wallet-pay-form {
    width: 100%;
}

.rh-plan-card .rh-wallet-pay-form + .js-local-payment,
.rh-plan-card .rh-wallet-pay-form + .paypal-button {
    margin-top: 0;
}

.rh-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    border-radius: 999px;
    color: var(--rh-text);
    transition: background 0.15s;
}

.rh-user-chip:hover {
    background: #f1f5f9;
}

.rh-user-chip img,
.rh-user-chip > span,
.rh-avatar,
.rh-mini-avatar {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 999px;
    background: var(--rh-primary-soft);
    color: var(--rh-primary-dark);
    font-weight: 700;
    font-size: 13px;
}

.rh-user-chip svg {
    font-size: 14px;
    color: var(--rh-muted);
}

.rh-home-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--rh-border);
    padding: 72px 0 68px;
    background:
        radial-gradient(560px 380px at 12% 8%, rgba(0, 127, 95, 0.10), transparent 65%),
        radial-gradient(620px 420px at 88% 12%, rgba(212, 175, 55, 0.10), transparent 65%),
        radial-gradient(720px 480px at 50% 110%, rgba(0, 127, 95, 0.08), transparent 60%),
        linear-gradient(180deg, #fff 0%, #fbfcfd 100%);
}

.rh-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(0, 127, 95, 0.10) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: radial-gradient(70% 80% at 50% 30%, #000 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(70% 80% at 50% 30%, #000 30%, transparent 100%);
}

.rh-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
}

.rh-hero-orb--emerald {
    width: 420px;
    height: 420px;
    top: -160px;
    left: -120px;
    background: rgba(0, 127, 95, 0.16);
}

.rh-hero-orb--gold {
    width: 380px;
    height: 380px;
    top: -140px;
    right: -110px;
    background: rgba(212, 175, 55, 0.16);
}

.rh-hero-centered {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.rh-hero-centered .rh-hero-copy {
    max-width: 780px;
    margin: 0 auto;
}

.rh-hero-centered .rh-hero-copy h1 {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.rh-hero-centered .rh-hero-copy > p {
    margin-left: auto;
    margin-right: auto;
}

.rh-hero-centered .rh-pill {
    margin-bottom: 20px;
    box-shadow: 0 4px 14px rgba(0, 127, 95, 0.12);
}

.rh-hero-centered .rh-pill i {
    color: #d4af37;
}

.rh-hero-centered .rh-hero-copy h1 span {
    background: linear-gradient(120deg, var(--rh-primary) 20%, #0ea5a0 60%, #d4af37 110%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.rh-hero-centered .rh-searchbar {
    margin: 0 auto;
    border-color: rgba(0, 127, 95, 0.18);
    box-shadow: 0 8px 28px rgba(0, 127, 95, 0.10);
    backdrop-filter: blur(6px);
}

.rh-hero-ctas {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.rh-hero-ctas .rh-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    font-weight: 700;
}

.rh-hero-centered .rh-feature-row {
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.rh-hero-centered .rh-feature-row > div {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(0, 127, 95, 0.12);
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(6px);
}

.rh-hero-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.rh-hero-stats div {
    display: grid;
    gap: 2px;
    min-width: 150px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(0, 127, 95, 0.12);
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(6px);
}

.rh-hero-stats strong {
    font-size: 26px;
    font-weight: 800;
    color: var(--rh-text);
}

.rh-hero-stats strong::after {
    content: "";
    display: block;
    width: 28px;
    height: 3px;
    margin: 6px auto 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--rh-primary), #d4af37);
}

.rh-hero-stats small {
    font-size: 13px;
    color: var(--rh-muted);
}

body[data-theme="dark"] .rh-home-hero {
    background:
        radial-gradient(560px 380px at 12% 8%, rgba(45, 212, 191, 0.10), transparent 65%),
        radial-gradient(620px 420px at 88% 12%, rgba(212, 175, 55, 0.10), transparent 65%),
        var(--rh-bg);
}

body[data-theme="dark"] .rh-hero-bg {
    background-image: radial-gradient(rgba(45, 212, 191, 0.12) 1px, transparent 1px);
    opacity: 0.5;
}

body[data-theme="dark"] .rh-hero-centered .rh-feature-row > div,
body[data-theme="dark"] .rh-hero-stats div {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--rh-border);
}

.rh-hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.rh-hero-image img {
    max-width: 100%;
    height: auto;
}

.rh-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    border: 1px solid #cceadf;
    border-radius: 999px;
    padding: 7px 14px;
    background: #ecf8f4;
    color: var(--rh-primary-dark);
    font-size: 13px;
    font-weight: 800;
}

.rh-hero-copy h1 {
    margin: 0;
    max-width: 620px;
    font-size: clamp(48px, 4.2vw, 64px);
    line-height: 1.08;
    color: var(--rh-text);
}

.rh-hero-copy h1 span {
    color: var(--rh-primary);
}

.rh-hero-copy > p {
    max-width: 610px;
    margin: 20px 0 24px;
    color: var(--rh-muted);
    font-size: 17px;
    line-height: 1.65;
}

.rh-searchbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    width: min(680px, 100%);
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.rh-searchbar label,
.rh-filter-form label,
.rh-toolbar label {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.rh-searchbar label {
    padding: 0 18px;
    border-right: 1px solid #e5e7eb;
}

.rh-searchbar svg,
.rh-filter-form svg {
    flex: 0 0 auto;
    color: #6b7280;
    width: 20px;
    height: 20px;
}

.rh-searchbar input,
.rh-searchbar select,
.rh-filter-form input,
.rh-filter-form select,
.rh-toolbar input,
.rh-toolbar select,
.rh-profile-form input,
.rh-profile-form select,
.rh-profile-form textarea,
.rh-recharge-grid input {
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--rh-border);
    border-radius: 7px;
    background: white;
    color: var(--rh-text);
    font: inherit;
}

.rh-searchbar input,
.rh-searchbar select {
    border: 0;
    background: transparent;
    color: #111827;
}

.rh-searchbar input {
    min-width: 200px;
    padding-left: 8px;
}

.rh-searchbar input::placeholder {
    color: #9ca3af;
}

.rh-searchbar input:focus,
.rh-searchbar select:focus {
    outline: none;
}

.rh-searchbar select {
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    padding: 0 16px;
    color: #111827;
    font-weight: 500;
    cursor: pointer;
    appearance: auto;
    min-width: 160px;
}

.rh-searchbar button {
    border: 0;
    background: linear-gradient(135deg, var(--rh-primary), var(--rh-primary-dark));
    color: white;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 0 32px;
    min-height: 50px;
    border-radius: 0 11px 11px 0;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    white-space: nowrap;
}

.rh-filter-form button {
    border: 0;
    background: linear-gradient(135deg, var(--rh-primary), var(--rh-primary-dark));
    color: white;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 0 24px;
    min-height: 44px;
    border-radius: 8px;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.rh-search-input {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--rh-border);
    border-radius: 8px;
    padding: 0 14px;
}

.rh-search-input input {
    border: 0;
    padding: 0;
    min-height: 44px;
}

.rh-search-input svg {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    color: var(--rh-muted);
}

.rh-recharge-grid label button {
    border: 0;
    background: linear-gradient(135deg, var(--rh-primary), var(--rh-primary-dark));
    color: white;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 0 28px;
    min-height: 50px;
    border-radius: 0 11px 11px 0;
    transition: opacity 0.2s;
}

.rh-searchbar button:hover,
.rh-filter-form button:hover {
    opacity: 0.9;
}

.rh-feature-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    max-width: 620px;
    margin-top: 34px;
}

.rh-feature-row div {
    display: grid;
    grid-template-columns: 32px 1fr;
    column-gap: 12px;
    align-items: center;
}

.rh-feature-row span,
.rh-feature-row i {
    display: grid;
    grid-row: span 2;
    width: 32px;
    height: 32px;
    place-items: center;
    color: var(--rh-primary);
}

.rh-feature-row strong {
    color: var(--rh-primary-dark);
    font-size: 13px;
}

.rh-feature-row small {
    color: var(--rh-muted);
    font-size: 12px;
}

/* ── Hero Collage ──────────────────────────────────── */

.rh-category-band {
    background: var(--rh-soft, #f7f9fb);
}

.rh-category-strip {
    display: grid;
    grid-template-columns: 176px repeat(6, 1fr) 150px;
    align-items: stretch;
    gap: 16px;
    padding: 32px 0;
}

.rh-category-title,
.rh-category-mini,
.rh-category-view {
    border: 1px solid var(--rh-border);
    border-radius: 10px;
    background: var(--rh-surface);
}

.rh-category-title {
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rh-category-title h2,
.rh-category-title p {
    margin: 0;
}

.rh-category-title h2 {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--rh-text);
}

.rh-category-title p {
    color: var(--rh-muted);
    font-size: 12px;
    margin-top: 4px;
}

.rh-category-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 10px;
    text-align: center;
    border-top: 3px solid var(--cat, var(--rh-primary));
    transition: box-shadow 0.2s, transform 0.2s;
}

.rh-category-mini:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.rh-category-mini span,
.rh-category-mini i {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 12px;
    background: var(--cat-bg, var(--rh-primary-soft));
    color: var(--cat, var(--rh-primary));
    flex-shrink: 0;
}

.rh-category-mini strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--rh-text);
    line-height: 1.3;
}

.rh-category-mini small {
    color: var(--rh-muted);
    font-size: 12px;
}

.accent-1 { --cat: var(--rh-primary); --cat-bg: #e4f5ef; }
.accent-2 { --cat: #0f766e; --cat-bg: #e2f6f3; }
.accent-3 { --cat: var(--rh-orange); --cat-bg: #fff1e8; }
.accent-4 { --cat: var(--rh-violet); --cat-bg: #f0edff; }
.accent-5 { --cat: #d97706; --cat-bg: #fff6df; }
.accent-6 { --cat: var(--rh-pink); --cat-bg: #fff0f6; }

.rh-category-view {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 14px;
    color: var(--rh-primary);
    font-weight: 700;
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
    transition: background 0.2s;
}

.rh-category-view:hover {
    background: var(--rh-primary-soft);
}

.rh-category-view span {
    color: var(--rh-primary);
    font-size: 20px;
    font-weight: 700;
}

.rh-home-popular {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 318px;
    gap: 28px;
    padding: 26px 0 38px;
}

.rh-section-head,
.rh-card-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.rh-section-head h2,
.rh-card-head h2,
.rh-dashboard-head h1 {
    margin: 0;
    color: var(--rh-text);
    line-height: 1.16;
}

.rh-section-head h2 {
    font-size: 26px;
}

.rh-section-head p,
.rh-card-head p,
.rh-dashboard-head p {
    margin: 4px 0 0;
    color: var(--rh-muted);
}

.rh-section-head a,
.rh-card-head a {
    color: var(--rh-primary);
    font-weight: 800;
    font-size: 13px;
}

.rh-article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.rh-article-grid-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.rh-article-card,
.rh-resource-card,
.rh-card,
.rh-stat-card,
.rh-plan-card,
.rh-compare-card,
.rh-filter-panel,
.rh-filter-sidebar,
.rh-side-card,
.rh-attached-panel {
    border: 1px solid var(--rh-border);
    border-radius: 8px;
    background: white;
    box-shadow: var(--rh-shadow-soft);
}

.rh-article-card,
.rh-resource-card {
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rh-article-card:hover,
.rh-resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.rh-article-card:hover .rh-article-image img,
.rh-resource-card:hover .rh-resource-image img {
    transform: scale(1.05);
}

.rh-article-image,
.rh-resource-image {
    position: relative;
    display: block;
    overflow: hidden;
}

.rh-article-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rh-article-card > div,
.rh-resource-card > div {
    padding: 20px 20px 22px;
}

.rh-article-card h3,
.rh-resource-card h2 {
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--rh-text);
}

.rh-article-card p,
.rh-resource-card p {
    margin: 0 0 12px;
    color: var(--rh-muted);
    font-size: 14px;
    line-height: 1.55;
}

.rh-tag,
.rh-status,
.rh-access-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    padding: 4px 10px;
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.rh-tag.tag-1,
.rh-tag.tag-5 {
    background: var(--rh-primary);
}

.rh-tag.tag-2,
.rh-tag.tag-6 {
    background: #139a7b;
}

.rh-tag.tag-3 {
    background: var(--rh-orange);
}

.rh-tag.tag-4 {
    background: var(--rh-violet);
}

.rh-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--rh-muted);
    font-size: 12px;
    font-weight: 500;
}

.rh-meta span + span::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 3px;
    margin-right: 9px;
    border-radius: 999px;
    background: #94a3b8;
    vertical-align: middle;
}

.rh-list-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--rh-border);
    padding: 36px 0 32px;
    background: #fff;
}

.rh-list-hero.compact {
    padding: 28px 0;
}

.rh-list-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    align-items: center;
    gap: 32px;
}

.rh-list-hero img {
    width: 420px;
    justify-self: end;
}

.rh-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
    color: var(--rh-muted);
    font-size: 13px;
    line-height: 1.4;
}

.rh-breadcrumb a {
    color: var(--rh-primary);
    font-weight: 600;
}

.rh-list-hero h1,
.rh-pricing-head h1,
.rh-detail-main h1 {
    margin: 0;
    color: var(--rh-text);
    font-size: clamp(36px, 3.8vw, 48px);
    line-height: 1.15;
    font-weight: 800;
}

.rh-list-hero p {
    max-width: 590px;
    margin: 12px 0 0;
    color: var(--rh-muted);
    font-size: 16px;
    line-height: 1.6;
}

.rh-filter-panel {
    position: relative;
    z-index: 2;
    margin-top: -38px;
    padding: 18px;
}

.rh-filter-form {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 170px 82px;
    gap: 12px;
}

.rh-filter-form label {
    border: 1px solid var(--rh-border);
    border-radius: 8px;
    padding: 0 14px;
}

.rh-filter-form input,
.rh-filter-form select,
.rh-toolbar input,
.rh-toolbar select {
    min-height: 44px;
}

.rh-filter-form input {
    border: 0;
    padding: 0;
}

.rh-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.rh-filter-chips span {
    border: 1px solid var(--rh-border);
    border-radius: 8px;
    padding: 8px 16px;
    background: #fafbfc;
    color: var(--rh-text);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.rh-filter-chips a {
    align-self: center;
    color: var(--rh-primary);
    font-size: 13px;
    font-weight: 700;
}

.rh-chip {
    border: 1px solid var(--rh-border);
    border-radius: 8px;
    padding: 8px 16px;
    background: #fafbfc;
    color: var(--rh-text);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transition: background 0.15s;
}

.rh-chip:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

.rh-chip-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rh-chip-icon svg {
    flex-shrink: 0;
    color: var(--rh-muted);
}

.rh-resource-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 286px;
    gap: 28px;
    padding: 36px 0 56px;
}

.rh-resource-layout.two-col {
    grid-template-columns: 240px minmax(0, 1fr);
}

.rh-filter-sidebar {
    align-self: start;
    padding: 20px;
}

.rh-filter-sidebar h2 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--rh-text);
}

.rh-filter-sidebar a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-radius: 8px;
    padding: 9px 10px;
    color: var(--rh-muted);
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s;
}

.rh-filter-sidebar a:hover {
    background: var(--rh-primary-soft);
}

.rh-filter-sidebar a.is-active {
    background: var(--rh-primary-soft);
    color: var(--rh-primary-dark);
    font-weight: 700;
}

.rh-filter-sidebar label {
    display: block;
    margin: 10px 0;
    color: var(--rh-muted);
    font-size: 14px;
    font-weight: 500;
}

.rh-sidebar-section h2 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rh-sidebar-section h2 svg {
    color: var(--rh-muted);
    flex-shrink: 0;
}

.rh-checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.rh-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--rh-primary);
    flex-shrink: 0;
}

.rh-checkbox-label span {
    flex: 1;
}

.rh-checkbox-label strong {
    color: var(--rh-muted);
    font-size: 13px;
    font-weight: 600;
}

.rh-filter-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    color: var(--rh-text);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s;
}

.rh-filter-link:hover {
    background: #f1f5f9;
}

.rh-filter-link.is-active {
    background: #e3f5ee;
    color: var(--rh-primary);
    font-weight: 600;
}

.rh-filter-sidebar hr {
    border: 0;
    border-top: 1px solid var(--rh-border);
    margin: 20px 0;
}

.rh-result-count {
    margin: 0 0 16px;
    color: var(--rh-muted);
    font-size: 14px;
    font-weight: 500;
}

.rh-resource-image img {
    width: 100%;
    aspect-ratio: 16 / 6.4;
    object-fit: cover;
}

.rh-resource-image .rh-tag {
    position: absolute;
    left: 12px;
    bottom: 12px;
}

.rh-access-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: var(--rh-primary-soft);
    color: var(--rh-primary-dark);
}

.rh-resource-card footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--rh-border-soft);
    padding: 12px 16px;
}

.rh-file-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--rh-muted);
    font-size: 13px;
    font-weight: 500;
}

.rh-file-type svg {
    color: var(--rh-muted);
}

.rh-download-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: var(--rh-primary);
    transition: background 0.15s;
}

.rh-download-icon:hover {
    background: var(--rh-primary-soft);
}

.rh-meta-author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rh-meta-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--rh-primary-soft);
    color: var(--rh-primary-dark);
    font-size: 10px;
    font-weight: 700;
}

.rh-empty {
    grid-column: 1 / -1;
    border: 1px dashed var(--rh-border);
    border-radius: 8px;
    padding: 40px 28px;
    color: var(--rh-muted);
    font-size: 15px;
    text-align: center;
}

.rh-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 36px;
}

.rh-pagination a,
.rh-pagination span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--rh-border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--rh-text);
    transition: background 0.15s;
}

.rh-pagination a:hover {
    background: var(--rh-primary-soft);
    border-color: var(--rh-primary);
}

.rh-page-current {
    background: var(--rh-primary) !important;
    color: white !important;
    border-color: var(--rh-primary) !important;
    font-weight: 700;
}

.rh-page-arrow {
    color: var(--rh-muted);
}

.rh-page-arrow.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.rh-page-dots {
    border: none;
    width: auto;
    padding: 0 4px;
    color: var(--rh-muted);
}

.rh-detail-page {
    position: relative;
    padding: 32px 0 52px;
}

.rh-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 48px;
}

.rh-detail-main h1 {
    max-width: 760px;
    margin-top: 14px;
}

.rh-detail-subtitle {
    max-width: 760px;
    margin: 8px 0 0;
    color: var(--rh-muted);
    font-size: 17px;
    line-height: 1.6;
    font-weight: 450;
}

.rh-author-line {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 20px 0;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--rh-border-soft);
    color: var(--rh-muted);
    font-size: 13px;
    font-weight: 500;
}

.rh-mini-avatar {
    width: 28px;
    height: 28px;
}

.rh-detail-hero img {
    width: 100%;
    aspect-ratio: 16 / 5;
    object-fit: cover;
    border-radius: 8px;
}

.rh-article-body {
    color: #24304a;
    font-size: 16px;
    line-height: 1.7;
}

.rh-article-body h2 {
    margin: 24px 0 10px;
    color: var(--rh-text);
    font-size: 22px;
    font-weight: 700;
}

.rh-article-body p {
    margin: 0 0 16px;
    color: var(--rh-muted);
    font-size: 16px;
    line-height: 1.7;
}

.rh-article-body blockquote {
    margin: 24px 0;
    border-radius: 8px;
    border: 1px solid #dbeee7;
    background: #f1faf7;
    padding: 20px 24px;
    color: #304155;
    font-size: 15px;
    line-height: 1.65;
}

.rh-check-list {
    list-style: none;
    padding: 0;
}

.rh-check-list li {
    padding: 6px 0;
    font-size: 15px;
    line-height: 1.6;
}

.rh-check-list li::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 7px;
    margin-right: 10px;
    border-left: 2px solid var(--rh-primary);
    border-bottom: 2px solid var(--rh-primary);
    transform: rotate(-45deg) translateY(-2px);
}

.rh-detail-sidebar {
    display: grid;
    gap: 20px;
    align-self: start;
}

.rh-side-card {
    padding: 24px;
}

.rh-side-card h2 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
    color: var(--rh-text);
}

.rh-author-card {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 16px;
    background: var(--rh-soft, #f9fafb);
    border: 1px solid var(--rh-border, #e5e7eb);
    border-radius: 10px;
    margin-bottom: 14px;
}

.rh-author-card strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--rh-text);
    margin-bottom: 2px;
}

.rh-avatar.big {
    width: 52px;
    height: 52px;
    font-size: 18px;
    flex-shrink: 0;
}

.rh-author-card small {
    font-size: 13px;
    color: var(--rh-muted);
}

.rh-author-card small::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rh-primary);
    margin-right: 6px;
    vertical-align: middle;
}

.rh-side-card > p {
    color: var(--rh-muted);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

.rh-side-card li {
    color: var(--rh-muted);
    font-size: 14px;
    line-height: 1.55;
}

.rh-side-card ol {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 20px;
}

.rh-premium-lock {
    border: 1px solid #f9d47a;
    border-radius: 8px;
    background: #fffaf0;
    padding: 20px;
}

.rh-premium-lock > div {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.rh-premium-price {
    margin: 8px 0 0;
    font-size: 18px;
    color: var(--rh-text);
}

.rh-premium-price strong {
    color: var(--rh-primary);
}

.rh-access-badge-premium {
    background: #fbbf24 !important;
    color: #1a202c !important;
}

.rh-attached-panel {
    margin-top: 32px;
    padding: 24px;
}

.rh-attached-panel h2 {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 700;
}

.rh-file-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.rh-file-card {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    gap: 14px;
    align-items: center;
    border: 1px solid var(--rh-border);
    border-radius: 8px;
    padding: 16px;
}

.rh-file-card > span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 8px;
    background: #fff0eb;
    color: #ef4444;
    font-size: 11px;
    font-weight: 700;
}

.rh-file-card strong {
    font-size: 14px;
    font-weight: 600;
}

.rh-file-card small {
    display: block;
    color: var(--rh-muted);
    font-size: 13px;
    margin-top: 2px;
}

.rh-file-card a {
    color: var(--rh-primary);
    font-size: 14px;
    font-weight: 600;
}

.rh-related {
    margin-top: 32px;
}

.rh-related h2 {
    font-size: 22px;
}

.rh-article-card.compact h3 {
    font-size: 15px;
    font-weight: 700;
}

.rh-pricing-page {
    position: relative;
    padding: 34px 0 50px;
}

.rh-pricing-head {
    text-align: center;
}

.rh-pricing-head p {
    max-width: 720px;
    margin: 12px auto 0;
    color: var(--rh-muted);
}

.rh-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: 960px;
    margin: 34px auto 20px;
}

.rh-plan-card {
    position: relative;
    overflow: hidden;
    padding: 28px 22px 22px;
}

.rh-plan-card.rh-plan-locked {
    opacity: 0.6;
    pointer-events: none;
}

.rh-plan-locked-msg {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    margin-top: 12px;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    color: #991b1b;
    font-size: 12px;
    font-weight: 500;
    pointer-events: auto;
}

body[data-theme="dark"] .rh-plan-locked-msg {
    background: #451a1a;
    border-color: #7f1d1d;
    color: #fca5a5;
}

.rh-plan-card.featured {
    border-color: var(--rh-primary);
    box-shadow: 0 16px 34px rgba(0, 127, 95, 0.14);
}

.rh-best-value {
    position: absolute;
    inset: 0 0 auto;
    display: grid;
    height: 28px;
    place-items: center;
    background: var(--rh-primary);
    color: white;
    font-size: 12px;
    font-weight: 800;
}

.rh-plan-card.featured {
    padding-top: 52px;
}

.rh-plan-card h2,
.rh-plan-card p {
    margin: 0;
}

.rh-plan-card p,
.rh-plan-card li {
    color: var(--rh-muted);
    font-size: 13px;
}

.rh-plan-card strong {
    display: block;
    margin: 16px 0;
    font-size: 34px;
}

.rh-plan-card strong span {
    font-size: 14px;
    color: var(--rh-muted);
}

.rh-plan-card ul {
    display: grid;
    gap: 10px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.rh-plan-card li::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 7px;
    margin-right: 10px;
    border-left: 2px solid var(--rh-primary);
    border-bottom: 2px solid var(--rh-primary);
    transform: rotate(-45deg) translateY(-2px);
}

.rh-compare-card {
    max-width: 960px;
    margin: 18px auto 24px;
    overflow-x: auto;
}

.rh-compare-card table {
    min-width: 760px;
    width: 100%;
    border-collapse: collapse;
}

.rh-compare-card td,
.rh-compare-card th {
    text-align: center;
    padding: 12px 14px;
}

.rh-compare-card thead {
    background: var(--rh-primary-soft);
}

.rh-compare-card thead th {
    padding: 14px;
    font-size: 13px;
}

.rh-compare-card td {
    padding: 12px 14px;
}

.rh-compare-card tbody tr {
    border-bottom: 1px solid var(--rh-border);
}

.rh-compare-card tbody tr:last-child {
    border-bottom: 0;
}

.rh-compare-card td:first-child,
.rh-compare-card th:first-child {
    text-align: left;
    font-weight: 600;
}

.rh-compare-card th span {
    border-radius: 5px;
    background: #d7f5e8;
    color: var(--rh-primary-dark);
    padding: 3px 6px;
    font-size: 10px;
}

/* Free vs Premium */
.rh-free-vs-premium h2 {
    font-size: 1.5rem;
    width: fit-content;
    margin: 4px auto;
}
.rh-free-vs-premium > p {
    color: var(--rh-muted);
    width: fit-content;
    margin: 20px auto;
}
.rh-free-vs-premium .rh-col-free {
    background: #e8f5e9 !important;
    color: #2e7d32 !important;
}
.rh-free-vs-premium .rh-col-premium {
    background: var(--rh-primary-soft) !important;
    color: var(--rh-primary-dark) !important;
}
.rh-check-free {
    color: #2e7d32;
    font-size: 1.1rem;
}
.rh-check-premium {
    color: var(--rh-primary);
    font-size: 1.1rem;
}
.rh-xmark {
    color: #bbb;
    font-size: 1.1rem;
}
.rh-free-vs-premium td small {
    display: block;
    font-size: 11px;
    color: var(--rh-muted);
    margin-top: 2px;
}

body[data-theme="dark"] .rh-free-vs-premium .rh-col-free {
    background: rgba(46, 125, 50, 0.15) !important;
    color: #66bb6a !important;
}
body[data-theme="dark"] .rh-free-vs-premium .rh-col-premium {
    background: rgba(0, 127, 95, 0.15) !important;
    color: var(--rh-primary) !important;
}
body[data-theme="dark"] .rh-check-free {
    color: #66bb6a;
}
body[data-theme="dark"] .rh-xmark {
    color: #555;
}

.rh-pricing-bottom {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 48px;
    max-width: 960px;
    margin: 0 auto;
}

.rh-pricing-bottom details {
    border: 1px solid var(--rh-border);
    border-radius: 7px;
    margin-bottom: 8px;
    background: #fff;
    padding: 10px 14px;
}

.rh-unlock-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    border: 1px solid #cceadf;
    border-radius: 10px;
    padding: 24px;
    background: #f3fbf8;
}

.rh-unlock-card img {
    width: 180px;
}

.rh-unlock-card p {
    color: var(--rh-muted);
}

.rh-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--rh-border);
    margin: -20px -20px 0;
    padding: 20px 20px;
}

.rh-toolbar label {
    border: 1px solid var(--rh-border);
    border-radius: 7px;
    padding: 0 12px;
}

.rh-toolbar input {
    border: 0;
}

.rh-toolbar button {
    border: 1px solid var(--rh-border);
    border-radius: 7px;
    background: #fff;
    color: var(--rh-text);
    font: inherit;
    font-weight: 700;
}

.rh-status {
    background: #e8f7f1;
    color: var(--rh-primary-dark);
    text-transform: none;
}

.rh-status.success,
.rh-status.active {
    background: #dff7ed;
    color: var(--rh-primary-dark);
}

.rh-status.failed,
.rh-status.expired {
    background: #fee2e2;
    color: #dc2626;
}

.rh-status.pending,
.rh-status.created {
    background: #fff7ed;
    color: #ea580c;
}

.rh-status.neutral {
    background: #e9f8f2;
    color: var(--rh-primary-dark);
}

.rh-icon-button {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid var(--rh-border);
    border-radius: 7px;
}



.rh-blog-cell {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.rh-blog-cell img {
    width: 120px;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    border-radius: 6px;
}

.rh-blog-cell small {
    color: var(--rh-muted);
}

.rh-access-ok {
    color: var(--rh-primary);
    font-weight: 800;
}

.auth-page {
    background: var(--rh-bg);
}

.auth-card {
    background: var(--rh-surface);
    padding: 28px;
    border: 1px solid var(--rh-border);
    border-radius: 10px;
    box-shadow: var(--rh-shadow);
}

@media (max-width: 1280px) {
    .rh-container {
        width: min(100% - 48px, 1120px);
    }

    .rh-header-inner {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .rh-list-hero-grid,
    .rh-detail-grid {
        grid-template-columns: 1fr;
    }

    .rh-category-strip {
        grid-template-columns: 140px repeat(6, 1fr) 130px;
        gap: 12px;
        padding: 28px 0;
    }

    .rh-category-mini span,
    .rh-category-mini i {
        width: 44px;
        height: 44px;
    }

    .rh-category-mini strong {
        font-size: 12px;
    }

    .rh-home-popular {
        grid-template-columns: 1fr;
    }

    .rh-resource-layout {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 20px;
    }

    .rh-resource-layout > .rh-premium-card {
        display: none;
    }

    .rh-filter-sidebar {
        padding: 16px;
    }

    .rh-filter-sidebar a {
        padding: 7px 8px;
        font-size: 13px;
    }

    .rh-checkbox-label {
        font-size: 13px;
    }

    .rh-article-grid-four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .rh-topbar {
        height: auto;
        padding: 10px 0;
    }

    .rh-topbar-inner,
    .rh-top-links {
        flex-wrap: wrap;
        gap: 12px;
    }

    .rh-header {
        height: auto;
    }

    .rh-header-inner {
        grid-template-columns: 1fr auto;
        height: auto;
        min-height: 60px;
        padding: 12px 0;
    }

    .rh-menu-button {
        display: inline-grid;
        gap: 5px;
        border: 0;
        background: transparent;
        padding: 8px;
    }

    .rh-menu-button span {
        width: 22px;
        height: 2px;
        background: var(--rh-text);
        border-radius: 2px;
    }

    .rh-nav,
    .rh-actions {
        display: none;
        grid-column: 1 / -1;
    }

    .rh-nav.is-open {
        display: grid;
        justify-items: start;
        gap: 8px;
    }

    .rh-nav.is-open + .rh-actions,
    .rh-header-inner:has(.rh-nav.is-open) .rh-actions {
        display: flex;
        justify-content: flex-start;
    }

    .rh-nav a {
        min-height: 36px;
    }

    .rh-home-hero {
        padding: 52px 0 48px;
    }

    .rh-hero-orb--emerald,
    .rh-hero-orb--gold {
        width: 260px;
        height: 260px;
    }

    .rh-hero-ctas .rh-button {
        width: 100%;
        justify-content: center;
    }

    .rh-hero-stats {
        flex-wrap: wrap;
        gap: 12px;
    }

    .rh-hero-stats div {
        min-width: 0;
        flex: 1 1 100px;
        padding: 12px 10px;
    }

    .rh-category-strip {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 28px 0;
    }

    .rh-category-title {
        grid-column: 1 / -1;
    }

    .rh-category-view {
        grid-column: 1 / -1;
    }

    .rh-searchbar,
    .rh-filter-form,
    .rh-toolbar,
    .rh-pricing-bottom,
    .rh-file-grid,
    .rh-profile-form {
        grid-template-columns: 1fr;
    }

    .rh-filter-form button {
        width: 100%;
    }

    .rh-searchbar label {
        border-right: 0;
        border-bottom: 1px solid var(--rh-border);
        border-radius: 12px 12px 0 0;
    }

    .rh-searchbar select {
        border-left: 0;
        border-right: 0;
        border-bottom: 1px solid var(--rh-border);
    }

    .rh-searchbar button {
        border-radius: 0 0 12px 12px;
    }

    .rh-resource-layout {
        grid-template-columns: 1fr;
    }

    .rh-detail-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .rh-file-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .rh-container {
        width: min(100% - 24px, 560px);
    }

    .rh-hero-copy h1,
    .rh-list-hero h1,
    .rh-pricing-head h1,
    .rh-detail-main h1 {
        font-size: 36px;
    }

    .rh-feature-row,
    .rh-category-strip,
    .rh-article-grid,
    .rh-article-grid-four,
    .rh-plan-grid {
        grid-template-columns: 1fr;
    }

    .rh-feature-row {
        gap: 20px;
        max-width: 100%;
    }

    .rh-feature-row div {
        grid-template-columns: 40px 1fr;
        column-gap: 14px;
    }

    .rh-feature-row i {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .rh-feature-row strong {
        font-size: 15px;
    }

    .rh-feature-row small {
        font-size: 13px;
    }

    .rh-category-title {
        grid-column: auto;
    }

    .rh-category-view {
        grid-column: auto;
    }

    .rh-category-mini {
        flex-direction: row;
        gap: 12px;
        padding: 14px 16px;
        text-align: left;
        justify-content: flex-start;
    }

    .rh-detail-grid {
        gap: 28px;
    }

    .rh-home-popular {
        padding: 20px 0 32px;
    }

    .rh-article-body {
        font-size: 15px;
    }

    .rh-article-body h2 {
        font-size: 20px;
    }

    .rh-file-grid {
        grid-template-columns: 1fr;
    }

    .rh-attached-panel {
        padding: 18px;
    }
}

/* ResourceHub refinements */
.rh-header {
    position: sticky;
    top: 0;
    z-index: 50;
}

.rh-header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.rh-nav {
    gap: 4px;
    font-size: 15px;
    font-weight: 600;
}

.rh-nav a {
    gap: 4px;
    color: #475569;
}

.rh-nav a:hover,
.page-home .rh-nav .nav-home,
.page-blog .rh-nav .nav-blog,
.page-pricing .rh-nav .nav-pricing,
.page-about .rh-nav .nav-about,
.page-contact .rh-nav .nav-contact,
.page-dashboard .rh-nav .nav-dashboard {
    color: var(--rh-primary);
}

.page-dashboard .rh-nav .nav-dashboard::after {
    background: var(--rh-primary);
}

.rh-nav-caret {
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}

.rh-cart,
.rh-bell {
    position: relative;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: var(--rh-text);
    border-radius: 8px;
    transition: background 0.15s;
}

.rh-cart:hover,
.rh-bell:hover {
    background: var(--rh-primary-soft);
}

.rh-bell svg {
    width: 22px;
    height: 22px;
}

.rh-bell span {
    position: absolute;
    top: 2px;
    right: 2px;
    display: grid;
    width: 16px;
    height: 16px;
    place-items: center;
    border-radius: 999px;
    background: var(--rh-primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
}

.rh-actions {
    gap: 8px;
}

.rh-user-chip {
    border-left: 0;
    padding-left: 4px;
}

.rh-user-chip strong {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
}

.rh-pill-dot,
.rh-heading-mark {
    display: inline-block;
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--rh-primary);
}

.rh-heading-mark {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    transform: rotate(45deg);
}

.rh-hero-copy h1,
.rh-list-hero h1,
.rh-pricing-head h1,
.rh-detail-main h1,
.rh-dashboard-head h1,
.rh-static-page h1 {
    letter-spacing: 0;
    font-weight: 800;
}

.rh-list-hero p,
.rh-pricing-head p,
.rh-dashboard-head p,
.rh-lead {
    font-size: 16px;
    line-height: 1.65;
    font-weight: 400;
}

.rh-table-icon,
.rh-wallet-help div span {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
}

.rh-section-head h2,
.rh-card-head h2,
.rh-card h2 {
    font-weight: 700;
}

.rh-article-card h3,
.rh-resource-card h2 {
    font-weight: 700;
}

.rh-resource-card footer a.rh-download-icon {
    font-size: 0;
}

.rh-toolbar label span {
    color: var(--rh-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.rh-toolbar {
    align-items: center;
}

.rh-toolbar > * {
    min-width: 0;
}



.side-dashboard .side-dashboard span,
.side-downloads .side-downloads span,
.side-purchases .side-purchases span,
.side-subscription .side-subscription span,
.side-wallet .side-wallet span,
.side-payments .side-payments span,
.side-profile .side-profile span {
    background: #dff4ec;
    color: var(--rh-primary-dark);
}

.rh-stat-card strong {
    letter-spacing: 0;
    font-weight: 800;
}

.rh-table-wrap td,
.rh-table-wrap th {
    font-size: 14px;
    padding: 12px 14px;
}

.rh-table-wrap th {
    font-weight: 600;
    color: var(--rh-muted);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.04em;
}

.rh-table-wrap td {
    color: #22304c;
}

.rh-static-page {
    padding: 44px 0 64px;
}

.rh-static-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 34px;
    align-items: start;
}

.rh-static-grid.two-col {
    grid-template-columns: minmax(0, 1fr);
}

.rh-static-page h1 {
    margin: 0;
    color: var(--rh-text);
    font-size: clamp(36px, 4vw, 52px);
    line-height: 1.1;
}

.rh-lead {
    max-width: 760px;
    margin: 16px 0 24px;
    color: var(--rh-muted);
}

.rh-static-card {
    border: 1px solid var(--rh-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--rh-shadow-soft);
    padding: 24px;
    color: var(--rh-muted);
}

.rh-static-card + .rh-static-card {
    margin-top: 16px;
}

.rh-static-card h2,
.rh-static-card h3 {
    margin: 0 0 10px;
    color: var(--rh-text);
}

.rh-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.rh-contact-grid .rh-static-card {
    display: grid;
    gap: 8px;
    margin: 0;
}

.rh-contact-grid small {
    color: var(--rh-muted);
    font-weight: 700;
    text-transform: uppercase;
}

.rh-contact-grid strong {
    color: var(--rh-text);
    font-size: 16px;
    overflow-wrap: anywhere;
}

@media (max-width: 1280px) {
    .rh-header-inner {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }
}

@media (max-width: 900px) {
    .rh-static-grid,
    .rh-contact-grid {
        grid-template-columns: 1fr;
    }

    .rh-user-chip {
        border-left: 0;
        padding-left: 0;
    }
}

/* ═══════════════════════════════════════════
   DARK MODE – Component Overrides
   ═══════════════════════════════════════════ */
body[data-theme="dark"] .rh-card,
body[data-theme="dark"] .rh-stat-card,
body[data-theme="dark"] .rh-article-card,
body[data-theme="dark"] .rh-resource-card,
body[data-theme="dark"] .rh-plan-card,
body[data-theme="dark"] .rh-compare-card,
body[data-theme="dark"] .rh-side-card,
body[data-theme="dark"] .rh-attached-panel,
body[data-theme="dark"] .rh-filter-panel,
body[data-theme="dark"] .rh-filter-sidebar,
body[data-theme="dark"] .rh-static-card,
body[data-theme="dark"] .rh-card-plain {
    background: var(--rh-surface);
    border-color: var(--rh-border);
}

body[data-theme="dark"] .rh-list-hero,
body[data-theme="dark"] .rh-detail-hero {
    background: var(--rh-soft);
    border-color: var(--rh-border);
}

body[data-theme="dark"] .rh-sidebar-section a:hover {
    background: var(--rh-soft);
}

body[data-theme="dark"] .rh-filter-chips a.rh-chip {
    background: var(--rh-surface);
    border-color: var(--rh-border);
    color: var(--rh-text);
}

body[data-theme="dark"] .rh-filter-chips a.rh-chip:hover {
    background: #2a1f1f;
    border-color: #7f3d3d;
}

body[data-theme="dark"] .rh-filter-link:hover {
    background: var(--rh-soft);
}

body[data-theme="dark"] .rh-filter-link.is-active {
    background: var(--rh-primary-soft);
    color: var(--rh-primary);
}

body[data-theme="dark"] .rh-tag,
body[data-theme="dark"] .rh-access-badge {
    color: var(--rh-text);
}

body[data-theme="dark"] .rh-premium-lock {
    background: #1e1a12;
    border-color: #5c4a1a;
}

body[data-theme="dark"] .rh-premium-lock p {
    color: var(--rh-muted);
}

body[data-theme="dark"] .rh-premium-price {
    color: var(--rh-text);
}

body[data-theme="dark"] .rh-breadcrumb,
body[data-theme="dark"] .rh-breadcrumb a {
    color: var(--rh-muted);
}

body[data-theme="dark"] .rh-breadcrumb a {
    color: var(--rh-primary);
}

body[data-theme="dark"] .rh-status {
    background: var(--rh-soft);
    color: var(--rh-text);
}

body[data-theme="dark"] .rh-status.success,
body[data-theme="dark"] .rh-status.active {
    background: #1a3a30;
    color: #34d399;
}

body[data-theme="dark"] .rh-status.failed,
body[data-theme="dark"] .rh-status.expired {
    background: #2a1a1a;
    color: #f87171;
}

body[data-theme="dark"] .rh-status.pending,
body[data-theme="dark"] .rh-status.created {
    background: #3d2a1e;
    color: #fb923c;
}

body[data-theme="dark"] .rh-status.neutral {
    background: #1a3a30;
    color: #34d399;
}

body[data-theme="dark"] .rh-icon-button {
    background: var(--rh-surface);
    border-color: var(--rh-border);
    color: var(--rh-muted);
}

body[data-theme="dark"] .rh-meta,
body[data-theme="dark"] .rh-result-count {
    color: var(--rh-muted);
}

body[data-theme="dark"] .rh-pagination a,
body[data-theme="dark"] .rh-pagination span {
    background: var(--rh-surface);
    border-color: var(--rh-border);
    color: var(--rh-text);
}

body[data-theme="dark"] .rh-pagination .rh-page-current {
    background: var(--rh-primary-soft);
    border-color: var(--rh-primary);
    color: var(--rh-primary);
}

body[data-theme="dark"] .rh-pagination a:hover {
    background: var(--rh-soft);
}

body[data-theme="dark"] .rh-button-green {
    box-shadow: 0 2px 8px rgba(45, 212, 191, 0.25);
}

body[data-theme="dark"] .rh-button-wallet {
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

body[data-theme="dark"] .rh-button-light {
    background: var(--rh-soft);
    border-color: var(--rh-border);
    color: var(--rh-text);
}

body[data-theme="dark"] .rh-button-light:hover {
    background: var(--rh-surface);
}

body[data-theme="dark"] .rh-button-outline {
    background: transparent;
    border-color: var(--rh-border);
    color: var(--rh-text);
}

body[data-theme="dark"] .rh-button-outline:hover {
    background: var(--rh-soft);
}

body[data-theme="dark"] input,
body[data-theme="dark"] select,
body[data-theme="dark"] textarea,
body[data-theme="dark"] .input,
body[data-theme="dark"] .rh-search-input {
    background: var(--rh-surface);
    border-color: var(--rh-border);
    color: var(--rh-text);
}

body[data-theme="dark"] .rh-search-input input {
    background: transparent;
}

body[data-theme="dark"] .rh-search-input svg {
    color: var(--rh-muted);
}

body[data-theme="dark"] .rh-filter-chips span,
body[data-theme="dark"] .rh-filter-form label {
    border-color: var(--rh-border);
}

body[data-theme="dark"] .rh-card-head a,
body[data-theme="dark"] .rh-section-head a,
body[data-theme="dark"] .rh-card-head h2,
body[data-theme="dark"] .rh-section-head h2 {
    color: var(--rh-text);
}

body[data-theme="dark"] .rh-card-head p,
body[data-theme="dark"] .rh-section-head p {
    color: var(--rh-muted);
}

body[data-theme="dark"] .rh-table-wrap th {
    color: var(--rh-muted);
    border-bottom-color: var(--rh-border);
}

body[data-theme="dark"] .rh-table-wrap td {
    color: var(--rh-text);
    border-bottom-color: var(--rh-border);
}

body[data-theme="dark"] .rh-table-wrap tr:hover td {
    background: var(--rh-soft);
}

body[data-theme="dark"] .rh-sidebar-section {
    border-color: var(--rh-border);
}

body[data-theme="dark"] .rh-sidebar-section h2 {
    color: var(--rh-muted);
}

body[data-theme="dark"] .rh-filter-sidebar-section h2 {
    color: var(--rh-muted);
}

body[data-theme="dark"] .rh-article-card h3,
body[data-theme="dark"] .rh-resource-card h2 {
    color: var(--rh-text);
}

body[data-theme="dark"] .rh-article-card p,
body[data-theme="dark"] .rh-resource-card p {
    color: var(--rh-muted);
}

body[data-theme="dark"] .rh-article-body {
    color: var(--rh-text);
}

body[data-theme="dark"] .rh-author-card small {
    color: var(--rh-muted);
}

body[data-theme="dark"] .rh-author-card {
    background: var(--rh-surface, #1f2937);
    border-color: var(--rh-border, #374151);
}

body[data-theme="dark"] .rh-auth-card {
    background: var(--rh-surface);
    border-color: var(--rh-border);
}

body[data-theme="dark"] .rh-plan-card {
    background: var(--rh-surface);
    border-color: var(--rh-border);
}

body[data-theme="dark"] .rh-plan-card h2 {
    color: var(--rh-text);
}

body[data-theme="dark"] .rh-plan-card p,
body[data-theme="dark"] .rh-plan-card li {
    color: var(--rh-muted);
}

body[data-theme="dark"] .rh-plan-card strong {
    color: var(--rh-text);
}

body[data-theme="dark"] .rh-plan-card strong span {
    color: var(--rh-muted);
}

body[data-theme="dark"] .rh-plan-card.featured {
    border-color: var(--rh-primary);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
}

body[data-theme="dark"] .rh-pricing-card {
    background: var(--rh-surface);
    border-color: var(--rh-border);
}

body[data-theme="dark"] .rh-pricing-card ul li {
    color: var(--rh-text);
}

body[data-theme="dark"] .rh-pricing-card ul li.off {
    color: var(--rh-muted);
    opacity: 0.5;
}

body[data-theme="dark"] .rh-plan-features {
    color: var(--rh-text);
}

body[data-theme="dark"] .rh-plan-detail {
    background: var(--rh-soft);
    border-color: var(--rh-border);
    color: var(--rh-text);
}

body[data-theme="dark"] .rh-stat-card strong {
    color: var(--rh-text);
}

body[data-theme="dark"] .rh-stat-card small {
    color: var(--rh-muted);
}

body[data-theme="dark"] .rh-star-rating {
    color: var(--rh-muted);
}

body[data-theme="dark"] .rh-file-card {
    background: var(--rh-soft);
    border-color: var(--rh-border);
}

body[data-theme="dark"] .rh-file-card strong {
    color: var(--rh-text);
}

body[data-theme="dark"] .rh-file-card small {
    color: var(--rh-muted);
}

body[data-theme="dark"] .rh-file-card em {
    color: var(--rh-muted);
}

body[data-theme="dark"] .rh-file-card span {
    color: var(--rh-muted);
}

body[data-theme="dark"] .rh-plan-card ul li {
    color: var(--rh-text);
}

body[data-theme="dark"] .rh-plan-card ul li.off {
    color: var(--rh-muted);
    opacity: 0.5;
}

body[data-theme="dark"] .rh-check-list li {
    color: var(--rh-text);
}

body[data-theme="dark"] blockquote {
    border-left-color: var(--rh-border);
    color: var(--rh-muted);
}

body[data-theme="dark"] .rh-empty {
    color: var(--rh-muted);
}

body[data-theme="dark"] .rh-menu-button span {
    background: var(--rh-text);
}

body[data-theme="dark"] .rh-meta-avatar {
    color: var(--rh-text);
    background: var(--rh-soft);
}

body[data-theme="dark"] .alert {
    background: var(--rh-surface);
    border-color: var(--rh-border);
    color: var(--rh-text);
}

body[data-theme="dark"] .page-auth main {
    background: var(--rh-bg);
}

body[data-theme="dark"] .auth-card h1 {
    color: var(--rh-text);
}

body[data-theme="dark"] .auth-card .muted,
body[data-theme="dark"] .auth-card p.muted {
    color: var(--rh-muted);
}

body[data-theme="dark"] .auth-card a:not(.button) {
    color: var(--rh-primary);
}

body[data-theme="dark"] .auth-card .stack-form label {
    color: var(--rh-text);
}

.errorlist {
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
}

.errorlist li {
    color: #dc2626;
    font-size: 0.8125rem;
    padding: 6px 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    margin-bottom: 4px;
}

body[data-theme="dark"] .errorlist li {
    color: #f87171;
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(248, 113, 113, 0.3);
}

body[data-theme="dark"] .auth-card .helptext {
    color: var(--rh-muted);
}

body[data-theme="dark"] .auth-links a {
    color: var(--rh-muted);
}

body[data-theme="dark"] .rh-privacy-card,
body[data-theme="dark"] .rh-terms-card {
    background: var(--rh-surface);
    border-color: var(--rh-border);
}

body[data-theme="dark"] .rh-contact-info {
    background: var(--rh-soft);
    border-color: var(--rh-border);
}

body[data-theme="dark"] .rh-contact-info strong {
    color: var(--rh-text);
}

body[data-theme="dark"] .rh-contact-info small {
    color: var(--rh-muted);
}

body[data-theme="dark"] .rh-header .rh-logo:not(.rh-logo-sm) {
    filter: brightness(0) invert(1);
}

body[data-theme="dark"] .page-hero {
    background: var(--rh-soft);
    border-bottom-color: var(--rh-border);
}

body[data-theme="dark"] .page-hero h1 {
    color: var(--rh-text);
}

body[data-theme="dark"] .page-hero p {
    color: var(--rh-muted);
}

body[data-theme="dark"] .rh-category-mini {
    background: var(--rh-surface);
    border-color: var(--rh-border);
}

body[data-theme="dark"] .rh-category-mini span {
    color: var(--rh-muted);
}

body[data-theme="dark"] .rh-toc {
    border-color: var(--rh-border);
}

body[data-theme="dark"] .rh-hamburger span {
    background: var(--rh-text);
}

body[data-theme="dark"] .rh-searchbar {
    background: #ffffff;
    border-color: #e5e7eb;
}

body[data-theme="dark"] .rh-searchbar label {
    border-color: #e5e7eb;
}

body[data-theme="dark"] .rh-toolbar {
    background: var(--rh-surface);
    border-color: var(--rh-border);
}

body[data-theme="dark"] .rh-searchbar input,
body[data-theme="dark"] .rh-searchbar select {
    background: transparent !important;
    color: #111827 !important;
}

body[data-theme="dark"] .rh-searchbar input::placeholder {
    color: #6b7280;
}

body[data-theme="dark"] .rh-searchbar svg {
    color: #6b7280;
}

body[data-theme="dark"] .rh-searchbar select {
    border-color: #e5e7eb;
}

body[data-theme="dark"] .rh-toolbar button {
    background: var(--rh-surface);
    border-color: var(--rh-border);
    color: var(--rh-text);
}

body[data-theme="dark"] .rh-pricing-details {
    background: var(--rh-surface);
    border-color: var(--rh-border);
    color: var(--rh-text);
}

body[data-theme="dark"] .rh-compare-card thead {
    background: var(--rh-soft);
}

body[data-theme="dark"] .rh-compare-card th span {
    background: var(--rh-soft);
    color: var(--rh-primary);
}

body[data-theme="dark"] .rh-compare-card td {
    color: var(--rh-muted);
}

body[data-theme="dark"] .rh-compare-card th {
    color: var(--rh-text);
}

body[data-theme="dark"] .rh-pricing-bottom details {
    background: var(--rh-surface);
    border-color: var(--rh-border);
}

body[data-theme="dark"] .rh-pricing-bottom details summary {
    color: var(--rh-text);
}

body[data-theme="dark"] .rh-pricing-bottom details p {
    color: var(--rh-muted);
}

body[data-theme="dark"] .rh-pricing-bottom section h2 {
    color: var(--rh-text);
}

body[data-theme="dark"] .rh-unlock-card {
    background: var(--rh-soft);
    border-color: var(--rh-border);
}

body[data-theme="dark"] .rh-unlock-card h2 {
    color: var(--rh-text);
}

body[data-theme="dark"] .rh-unlock-card p {
    color: var(--rh-muted);
}

body[data-theme="dark"] .rh-unlock-card small {
    color: var(--rh-muted);
}

body[data-theme="dark"] .rh-switch {
    background: var(--rh-border);
}

body[data-theme="dark"] .rh-switch.active {
    background: var(--rh-primary);
}

body[data-theme="dark"] .message-stack .alert {
    background: var(--rh-surface);
    border-color: var(--rh-border);
    color: var(--rh-text);
}

body[data-theme="dark"] .message-stack .alert-success {
    border-left-color: var(--rh-primary);
}

body[data-theme="dark"] .message-stack .alert-error,
body[data-theme="dark"] .message-stack .alert-danger {
    border-left-color: #f87171;
}

body[data-theme="dark"] .rh-profile-form input,
body[data-theme="dark"] .rh-profile-form select,
body[data-theme="dark"] .rh-profile-form textarea {
    background: var(--rh-surface);
    border-color: var(--rh-border);
    color: var(--rh-text);
}

body[data-theme="dark"] .rh-profile-form label {
    color: var(--rh-text);
}

body[data-theme="dark"] .rh-profile-form .helptext {
    color: var(--rh-muted);
}

body[data-theme="dark"] .home-page {
    background: var(--rh-bg);
}

body[data-theme="dark"] .home-page main {
    background: var(--rh-bg);
}

body[data-theme="dark"] .home-page .rh-header {
    background: rgba(15, 17, 23, 0.96);
    border-bottom-color: var(--rh-border);
}

body[data-theme="dark"] .rh-category-band {
    background: var(--rh-soft);
}

body[data-theme="dark"] .rh-category-title h2 {
    color: var(--rh-text);
}

body[data-theme="dark"] .rh-category-title p {
    color: var(--rh-muted);
}

body[data-theme="dark"] .rh-category-view {
    color: var(--rh-primary);
}

body[data-theme="dark"] .rh-category-view:hover {
    background: rgba(255, 255, 255, 0.06);
}

body[data-theme="dark"] .accent-1 { --cat-bg: #1a3a30; }
body[data-theme="dark"] .accent-2 { --cat-bg: #143b37; }
body[data-theme="dark"] .accent-3 { --cat-bg: #3d2a1e; }
body[data-theme="dark"] .accent-4 { --cat-bg: #25224a; }
body[data-theme="dark"] .accent-5 { --cat-bg: #3d2f13; }
body[data-theme="dark"] .accent-6 { --cat-bg: #3d1c2c; }

body[data-theme="dark"] .rh-section-head h2 {
    color: var(--rh-text);
}

body[data-theme="dark"] .rh-section-head p {
    color: var(--rh-muted);
}

body[data-theme="dark"] .rh-section-head a {
    color: var(--rh-primary);
}

body[data-theme="dark"] .rh-home-popular {
    background: var(--rh-bg);
}

body[data-theme="dark"] .rh-auth-card h1 {
    color: var(--rh-text);
}

body[data-theme="dark"] .rh-auth-card p {
    color: var(--rh-muted);
}

body[data-theme="dark"] .auth-divider {
    color: var(--rh-muted);
}

body[data-theme="dark"] .auth-divider::before,
body[data-theme="dark"] .auth-divider::after {
    background: var(--rh-border);
}

/* ── Theme Toggle ── */
.rh-theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--rh-border);
    border-radius: 8px;
    background: var(--rh-surface);
    color: var(--rh-muted);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    flex-shrink: 0;
}

.rh-theme-toggle:hover {
    border-color: var(--rh-primary);
    color: var(--rh-primary);
    background: var(--rh-primary-soft);
}

.rh-theme-toggle .fa-cloud-sun {
    display: none;
}

body[data-theme="dark"] .rh-theme-toggle .fa-moon {
    display: none;
}

body[data-theme="dark"] .rh-theme-toggle .fa-cloud-sun {
    display: inline;
}

body[data-theme="dark"] .rh-theme-toggle {
    border-color: var(--rh-border);
    color: var(--rh-muted);
    background: var(--rh-surface);
}

.rh-mandatory {
    color: #dc2626;
    font-weight: 700;
}

/* ── Based on Your Interests (Articles page) ── */
.rh-interests-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow-x: auto;
}

.rh-interests-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #166534;
    white-space: nowrap;
    flex-shrink: 0;
}

.rh-interests-label i {
    color: #16a34a;
}

.rh-interests-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rh-interest-chip {
    display: inline-block;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #86efac;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #166534;
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}

.rh-interest-chip:hover {
    background: #16a34a;
    color: #fff;
    border-color: #16a34a;
}

body[data-theme="dark"] .rh-interests-bar {
    background: linear-gradient(135deg, rgba(22,101,52,0.15) 0%, rgba(5,150,105,0.1) 100%);
    border-color: rgba(34,197,94,0.25);
}

body[data-theme="dark"] .rh-interests-label {
    color: #86efac;
}

body[data-theme="dark"] .rh-interest-chip {
    background: rgba(22,101,52,0.2);
    border-color: rgba(34,197,94,0.3);
    color: #86efac;
}

body[data-theme="dark"] .rh-interest-chip:hover {
    background: #16a34a;
    color: #fff;
    border-color: #16a34a;
}

/* ── Based on Your Interests (Home page) ── */
.rh-home-interests {
    margin-bottom: 8px;
    grid-column: 1 / -1;
}

.rh-home-interests .rh-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.rh-interests-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.rh-interest-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: var(--rh-soft, #f3f4f6);
    border: 1px solid var(--rh-border, #e5e7eb);
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--rh-primary, #007f5f);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.rh-interest-tag:hover {
    background: var(--rh-primary, #007f5f);
    color: #fff;
    border-color: var(--rh-primary, #007f5f);
}

body[data-theme="dark"] .rh-interest-tag {
    background: rgba(0,127,95,0.15);
    border-color: rgba(0,127,95,0.3);
    color: #34d399;
}

body[data-theme="dark"] .rh-interest-tag:hover {
    background: #059669;
    color: #fff;
    border-color: #059669;
}

@media (max-width: 768px) {
    .rh-interests-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .rh-home-interests .rh-section-head {
        flex-direction: column;
    }
}

/* ── Subscription Success Page ── */
.rh-success-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.rh-success-card {
    max-width: 520px;
    width: 100%;
    text-align: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 48px 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.rh-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.rh-success-icon i {
    font-size: 2rem;
    color: #fff;
}

.rh-success-card h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}

.rh-success-subtitle {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 28px;
    line-height: 1.6;
}

.rh-success-plan {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 28px;
    text-align: left;
}

.rh-success-plan-badge {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rh-success-plan-badge i {
    color: #fff;
    font-size: 1.25rem;
}

.rh-success-plan-info strong {
    display: block;
    font-size: 1rem;
    color: #111827;
    margin-bottom: 2px;
}

.rh-success-plan-info small {
    color: #16a34a;
    font-size: 0.8125rem;
}

.rh-success-features {
    text-align: left;
    margin-bottom: 28px;
}

.rh-success-features h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

.rh-success-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rh-success-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.875rem;
    color: #4b5563;
}

.rh-success-features li i {
    color: #16a34a;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.rh-success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.rh-success-actions .rh-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.15s;
}

.rh-success-actions .rh-button-green {
    background: #16a34a;
    color: #fff;
}

.rh-success-actions .rh-button-green:hover {
    background: #15803d;
}

.rh-success-actions .rh-button-outline {
    background: transparent;
    border: 2px solid #e5e7eb;
    color: #374151;
}

.rh-success-actions .rh-button-outline:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.rh-success-note {
    font-size: 0.8125rem;
    color: #9ca3af;
}

/* Dark mode */
body[data-theme="dark"] .rh-success-card {
    background: var(--rh-surface, #1f2937);
    border-color: var(--rh-border, #374151);
}

body[data-theme="dark"] .rh-success-card h1 {
    color: var(--rh-heading, #f9fafb);
}

body[data-theme="dark"] .rh-success-subtitle {
    color: var(--rh-muted, #9ca3af);
}

body[data-theme="dark"] .rh-success-plan {
    background: rgba(22,101,52,0.15);
    border-color: rgba(34,197,94,0.25);
}

body[data-theme="dark"] .rh-success-plan-info strong {
    color: var(--rh-heading, #f9fafb);
}

body[data-theme="dark"] .rh-success-features h3 {
    color: var(--rh-text, #e5e7eb);
}

body[data-theme="dark"] .rh-success-features li {
    color: var(--rh-text, #d1d5db);
}

body[data-theme="dark"] .rh-success-actions .rh-button-outline {
    border-color: var(--rh-border, #4b5563);
    color: var(--rh-text, #e5e7eb);
}

body[data-theme="dark"] .rh-success-actions .rh-button-outline:hover {
    background: var(--rh-soft, #374151);
}

body[data-theme="dark"] .rh-success-note {
    color: var(--rh-muted, #6b7280);
}
