.dashboard-page {
    padding: 36px 0 64px;
}

/* ── Font Awesome Icons in Dashboard ── */
.rh-stat-card i,
.rh-mini-account i,
.rh-subscription-status i {
    flex-shrink: 0;
    color: var(--rh-primary, #007f5f);
    font-size: 1.25rem;
}

.rh-stat-card.orange i { color: #e67e22; }
.rh-stat-card.violet i { color: #8e44ad; }

.rh-dashboard-sidebar nav a i {
    width: 20px;
    text-align: center;
    color: currentColor;
}

.rh-table-icon i {
    display: block;
    width: 18px;
    color: var(--rh-primary, #007f5f);
}

.rh-account-row i {
    flex-shrink: 0;
    color: var(--rh-muted, #6b7280);
    width: 18px;
    text-align: center;
}

.rh-recharge-grid button i {
    font-size: 1.25rem;
    color: var(--rh-primary, #007f5f);
}

.rh-recharge-grid button.popular i {
    color: #fff;
}

/* ── Dashboard Layout ── */
.rh-dashboard-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px;
}

.rh-dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.rh-dashboard-head h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--rh-text, #1a202c);
    margin: 0 0 4px;
}

.rh-dashboard-head p {
    font-size: 0.9375rem;
    color: var(--rh-muted, #6b7280);
    margin: 0;
}

/* ── Stat Cards ── */
.rh-stat-grid {
    display: grid;
    gap: 20px;
}

.rh-stat-grid.four {
    grid-template-columns: repeat(4, 1fr);
}

.rh-stat-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: box-shadow 0.2s;
}

.rh-stat-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.rh-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rh-stat-icon.green {
    background: #e3f5ee;
    color: #007f5f;
}

.rh-stat-icon.orange {
    background: #fff3e6;
    color: #e67e22;
}

.rh-stat-icon.blue {
    background: #e8f0fe;
    color: #3b82f6;
}

.rh-stat-icon i {
    font-size: 1.25rem;
}

.rh-stat-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.rh-stat-body small {
    font-size: 0.8125rem;
    color: var(--rh-muted, #6b7280);
    font-weight: 500;
}

.rh-stat-body strong {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--rh-text, #1a202c);
    line-height: 1.2;
}

.rh-stat-body em {
    font-size: 0.8125rem;
    color: var(--rh-muted, #9ca3af);
    font-style: normal;
}

.rh-stat-body a {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--rh-primary, #007f5f);
    text-decoration: none;
    margin-top: 4px;
}

.rh-stat-body a:hover {
    text-decoration: underline;
}

/* ── Dashboard Grid ── */
.rh-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: start;
}

.rh-dashboard-aside {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ── Cards ── */
.rh-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
}

.rh-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 16px;
}

.rh-card-head h2 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--rh-text, #1a202c);
    margin: 0;
}

.rh-card-head a {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--rh-primary, #007f5f);
    text-decoration: none;
}

.rh-card-head a:hover {
    text-decoration: underline;
}

/* ── Table ── */
.rh-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.rh-table-wrap table {
    width: 100%;
    border-collapse: collapse;
}

.rh-table-wrap th,
.rh-table-wrap td {
    padding: 12px 12px;
    border-bottom: 1px solid #f3f4f6;
    text-align: left;
    vertical-align: middle;
}

.rh-table-wrap th {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--rh-muted, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rh-table-wrap td {
    font-size: 0.875rem;
    color: var(--rh-text, #374151);
}

.rh-table-wrap td strong {
    font-weight: 600;
    color: var(--rh-text, #1a202c);
}

.rh-table-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rh-table-icon.green {
    background: #e3f5ee;
    color: #007f5f;
}

.rh-table-icon.blue {
    background: #e8f0fe;
    color: #3b82f6;
}

.rh-table-icon.orange {
    background: #fff3e6;
    color: #e67e22;
}

.rh-table-icon i {
    font-size: 0.875rem;
}

.rh-view-all-btn {
    display: block;
    text-align: center;
    padding: 12px;
    margin-top: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--rh-primary, #007f5f);
    text-decoration: none;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: background 0.2s;
}

.rh-view-all-btn:hover {
    background: #f9fafb;
}

/* ── Subscription Status ── */
.rh-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.rh-badge.green {
    background: #e3f5ee;
    color: #007f5f;
}

.rh-badge.blue {
    background: #e8f0fe;
    color: #3b82f6;
}

.rh-badge.small {
    padding: 2px 8px;
    font-size: 0.6875rem;
}

.rh-subscription-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 10px;
    margin-bottom: 16px;
}

.rh-subscription-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #e3f5ee;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rh-subscription-icon i {
    font-size: 1.25rem;
    color: #007f5f;
}

.rh-subscription-hero h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--rh-text, #1a202c);
    margin: 0 0 2px;
}

.rh-subscription-hero p {
    font-size: 0.8125rem;
    color: var(--rh-muted, #6b7280);
    margin: 0;
}

.rh-detail-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
    margin: 0 0 16px;
}

.rh-detail-list dt {
    font-size: 0.8125rem;
    color: var(--rh-muted, #6b7280);
    font-weight: 500;
}

.rh-detail-list dd {
    font-size: 0.875rem;
    color: var(--rh-text, #1a202c);
    font-weight: 600;
    text-align: right;
    margin: 0;
}

.rh-detail-list dd.green {
    color: var(--rh-primary, #007f5f);
}

/* ── Recent Items ── */
.rh-recent-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rh-recent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 10px;
}

.rh-recent-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.rh-recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rh-recent-placeholder {
    width: 100%;
    height: 100%;
    background: #e5e7eb;
}

.rh-recent-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.rh-recent-info strong {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--rh-text, #1a202c);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rh-recent-info small {
    font-size: 0.75rem;
    color: var(--rh-muted, #9ca3af);
}

.rh-recent-action {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: var(--rh-primary, #007f5f);
    text-decoration: none;
    flex-shrink: 0;
}

.rh-recent-action:hover {
    background: #e3f5ee;
}

/* ── Buttons ── */
.rh-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.rh-button-outline {
    background: transparent;
    border: 1px solid #e5e7eb;
    color: var(--rh-text, #374151);
}

.rh-button-outline:hover {
    background: #f9fafb;
}

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

/* ── Dashboard Sidebar ── */
.rh-dashboard-sidebar {
    position: sticky;
    top: 98px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rh-sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.rh-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--rh-primary, #007f5f);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.rh-sidebar-user strong {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--rh-text, #1a202c);
    display: block;
}

.rh-sidebar-user small {
    font-size: 0.75rem;
    color: var(--rh-muted, #6b7280);
}

.rh-dashboard-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 8px;
}

.rh-dashboard-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--rh-muted, #6b7280);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s;
}

.rh-dashboard-sidebar nav a:hover {
    background: #f9fafb;
    color: var(--rh-text, #1a202c);
}

.rh-dashboard-sidebar nav a.active {
    background: #e3f5ee;
    color: var(--rh-primary, #007f5f);
    font-weight: 600;
}

body.side-dashboard .side-dashboard,
body.side-downloads .side-downloads,
body.side-purchases .side-purchases,
body.side-subscription .side-subscription,
body.side-wallet .side-wallet,
body.side-payments .side-payments,
body.side-profile .side-profile {
    background: #e3f5ee;
    color: var(--rh-primary, #007f5f);
    font-weight: 600;
}

body.side-dashboard .side-dashboard i,
body.side-downloads .side-downloads i,
body.side-purchases .side-purchases i,
body.side-subscription .side-subscription i,
body.side-wallet .side-wallet i,
body.side-payments .side-payments i,
body.side-profile .side-profile i {
    color: var(--rh-primary, #007f5f);
}

/* ── Premium Card ── */
.rh-premium-card {
    background: linear-gradient(135deg, #007f5f 0%, #00634d 100%);
    border-radius: 12px;
    padding: 24px;
    color: #fff;
    margin-top: 8px;
}

.rh-premium-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.rh-premium-icon i {
    font-size: 1.25rem;
    color: #fbbf24;
}

.rh-premium-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.rh-premium-card p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.85);
    margin: 0 0 16px;
    line-height: 1.55;
}

.rh-premium-list {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}

.rh-premium-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.9);
}

.rh-premium-list li i {
    color: #4ade80;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.rh-premium-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #fff;
    color: var(--rh-primary, #007f5f);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.rh-premium-button:hover {
    background: #f3f4f6;
}

/* ── Stat Grid Variations ── */
.rh-stat-grid:not(.four):not(.small) {
    grid-template-columns: repeat(3, 1fr);
}

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

/* ── Breadcrumb ── */
.rh-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--rh-muted, #6b7280);
    margin-bottom: 8px;
}

.rh-breadcrumb a {
    color: var(--rh-muted, #6b7280);
    text-decoration: none;
}

.rh-breadcrumb a:hover {
    color: var(--rh-primary, #007f5f);
}

.rh-breadcrumb span {
    color: var(--rh-muted, #9ca3af);
}

/* ── Button Variants ── */
.rh-button-green {
    background: var(--rh-primary, #007f5f);
    color: #fff;
}

.rh-button-green:hover {
    background: var(--rh-primary-dark, #00634d);
}

.rh-button-light {
    background: #f3f4f6;
    color: var(--rh-text, #374151);
}

.rh-button-light:hover {
    background: #e5e7eb;
}

.rh-button-danger {
    background: #fee2e2;
    color: #dc2626;
}

.rh-button-danger:hover {
    background: #fecaca;
}

.rh-button.small {
    padding: 6px 12px;
    font-size: 0.8125rem;
}

/* ── Profile Page ── */
.rh-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.rh-profile-hero {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
}

.rh-avatar.huge {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    font-size: 1.25rem;
}

.rh-profile-hero h2 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.rh-profile-hero h2 em {
    font-size: 0.8125rem;
    color: var(--rh-primary, #007f5f);
    font-style: normal;
    font-weight: 500;
    margin-left: 8px;
}

.rh-profile-hero p {
    font-size: 0.875rem;
    color: var(--rh-muted, #6b7280);
    margin: 0 0 2px;
}

.rh-profile-hero > div strong {
    display: block;
    font-size: 0.8125rem;
    color: var(--rh-text, #374151);
    margin-top: 4px;
}

.rh-mini-account {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    padding: 20px;
}

.rh-mini-account i {
    font-size: 1.5rem;
    color: var(--rh-primary, #007f5f);
    margin-bottom: 4px;
}

.rh-mini-account small {
    font-size: 0.75rem;
    color: var(--rh-muted, #6b7280);
}

.rh-mini-account strong {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--rh-text, #1a202c);
}

.rh-mini-account a {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--rh-primary, #007f5f);
    text-decoration: none;
    margin-top: 4px;
}

.rh-mini-account a:hover {
    text-decoration: underline;
}

.rh-profile-form-card {
    grid-column: 1 / -1;
}

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

.rh-profile-form p {
    margin: 0;
}

.rh-profile-form label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--rh-text, #374151);
    margin-bottom: 4px;
}

.rh-profile-form input,
.rh-profile-form select,
.rh-profile-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    background: #fff;
    box-sizing: border-box;
}

.rh-account-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.rh-account-row:last-child {
    border-bottom: none;
}

.rh-account-row i {
    width: 18px;
    text-align: center;
    color: var(--rh-muted, #6b7280);
    flex-shrink: 0;
}

.rh-account-row strong {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--rh-text, #1a202c);
    flex: 1;
}

.rh-account-row em {
    font-size: 0.75rem;
    color: var(--rh-primary, #007f5f);
    font-style: normal;
    font-weight: 600;
}

.rh-account-row a {
    font-size: 0.8125rem;
    color: var(--rh-primary, #007f5f);
    font-weight: 600;
    text-decoration: none;
}

.rh-account-row a:hover {
    text-decoration: underline;
}

.rh-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
}

.rh-toggle-row:last-of-type {
    border-bottom: none;
}

.rh-toggle-row strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--rh-text, #1a202c);
}

.rh-toggle-row small {
    font-size: 0.75rem;
    color: var(--rh-muted, #6b7280);
}

.rh-toggle-row span {
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: #e5e7eb;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
}

.rh-toggle-row span.on {
    background: var(--rh-primary, #007f5f);
}

.rh-toggle-row span::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s;
}

.rh-toggle-row span.on::after {
    transform: translateX(20px);
}

.rh-toggle-row em {
    font-size: 0.875rem;
    color: var(--rh-primary, #007f5f);
    font-style: normal;
    font-weight: 600;
    cursor: pointer;
}

.rh-danger-row {
    display: flex;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
    margin-top: 8px;
}

/* ── Subscription Page ── */
.rh-subscription-status.large {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 10px;
    margin-bottom: 16px;
}

.rh-subscription-status.large i {
    font-size: 1.5rem;
    color: var(--rh-primary, #007f5f);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e3f5ee;
    border-radius: 12px;
    flex-shrink: 0;
}

.rh-subscription-status.large h2 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 2px;
}

.rh-subscription-status.large p {
    font-size: 0.8125rem;
    color: var(--rh-muted, #6b7280);
    margin: 0;
}

.rh-subscription-status.large em {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--rh-primary, #007f5f);
    background: #e3f5ee;
    padding: 4px 10px;
    border-radius: 20px;
    font-style: normal;
}

/* ── Wallet Page ── */
.rh-wallet-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    align-items: start;
}

/* ── Wallet Hero ── */
.rh-wallet-hero {
    background: linear-gradient(135deg, #007f5f 0%, #00634d 100%);
    border-radius: 14px;
    padding: 36px 32px;
    color: #fff;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.rh-wallet-hero::before {
    content: "\f19a";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 7rem;
    color: rgba(255,255,255,0.06);
    line-height: 1;
}

.rh-wallet-hero span {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.rh-wallet-hero strong {
    display: block;
    font-size: 2.25rem;
    font-weight: 800;
    margin: 6px 0 4px;
    letter-spacing: -0.02em;
}

.rh-wallet-hero em {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.6);
    font-style: normal;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rh-wallet-hero em::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    display: inline-block;
}

.rh-wallet-hero > div {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.rh-wallet-hero .rh-button {
    flex: 1;
    justify-content: center;
    min-height: 44px;
}

.rh-wallet-hero .rh-button-light {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    color: #fff;
    border: none;
}

.rh-wallet-hero .rh-button-light:hover {
    background: rgba(255,255,255,0.3);
}

.rh-wallet-hero .rh-button-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
}

.rh-wallet-hero .rh-button-outline:hover {
    background: rgba(255,255,255,0.1);
}

/* ── Recharge Section ── */
.rh-recharge-section {
    margin-bottom: 28px;
}

.rh-recharge-section h2 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.rh-recharge-section > p {
    font-size: 0.875rem;
    color: var(--rh-muted, #6b7280);
    margin: 0 0 18px;
}

.rh-recharge-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.rh-recharge-grid button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 16px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.rh-recharge-grid button:hover {
    border-color: var(--rh-primary, #007f5f);
    box-shadow: 0 4px 12px rgba(0,127,95,0.1);
    transform: translateY(-2px);
}

.rh-recharge-grid button.selected {
    border-color: var(--rh-primary, #007f5f);
    background: #e3f5ee;
    box-shadow: 0 0 0 2px rgba(0,127,95,0.2);
}

.rh-recharge-grid button.selected strong,
.rh-recharge-grid button.selected i,
.rh-recharge-grid button.selected small {
    color: var(--rh-primary, #007f5f);
}

.rh-recharge-grid button.selected small {
    color: var(--rh-primary, #007f5f);
    opacity: 0.8;
}

.rh-recharge-grid button.popular {
    border-color: var(--rh-primary, #007f5f);
    background: var(--rh-primary, #007f5f);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0,127,95,0.25);
}

.rh-recharge-grid button.popular.selected {
    box-shadow: 0 0 0 2px #fbbf24, 0 4px 14px rgba(0,127,95,0.25);
}

.rh-recharge-grid button.popular:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,127,95,0.3);
}

.rh-recharge-grid button.popular em {
    position: absolute;
    top: -10px;
    font-size: 0.6875rem;
    background: #fbbf24;
    color: #1a202c;
    padding: 3px 10px;
    border-radius: 20px;
    font-style: normal;
    font-weight: 700;
}

.rh-recharge-grid button strong {
    font-size: 1.25rem;
    font-weight: 700;
}

.rh-recharge-grid button small {
    font-size: 0.6875rem;
    color: var(--rh-muted, #6b7280);
}

.rh-recharge-grid button.popular small {
    color: rgba(255,255,255,0.8);
}

.rh-recharge-grid button i {
    font-size: 1.25rem;
    color: var(--rh-primary, #007f5f);
}

.rh-recharge-grid button.popular i {
    color: #fff;
}

.rh-recharge-grid label {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    flex-wrap: wrap;
    background: #fafbfc;
}

.rh-recharge-grid label strong {
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.rh-recharge-grid label input {
    flex: 1;
    min-width: 120px;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: border-color 0.2s;
}

.rh-recharge-grid label input:focus {
    border-color: var(--rh-primary, #007f5f);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,127,95,0.1);
}

.rh-recharge-grid label button {
    padding: 10px 20px;
    background: var(--rh-primary, #007f5f);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.2s;
}

.rh-recharge-grid label button:hover {
    background: var(--rh-primary-dark, #00634d);
}

/* ── Wallet Help Sidebar ── */
.rh-wallet-help {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
}

.rh-wallet-help h2 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.rh-wallet-help > div {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.rh-wallet-help > div span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--rh-primary-soft, #e3f5ee);
    color: var(--rh-primary, #007f5f);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 700;
    flex-shrink: 0;
}

.rh-wallet-help > div strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.rh-wallet-help > div p {
    font-size: 0.8125rem;
    color: var(--rh-muted, #6b7280);
    margin: 0;
    line-height: 1.5;
}

.rh-wallet-help footer {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--rh-text, #374151);
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    margin-top: 4px;
}

.rh-wallet-help footer small {
    display: block;
    font-weight: 400;
    color: var(--rh-muted, #6b7280);
    margin-top: 6px;
}

/* ── Convert Currency ── */
.rh-convert-section {
    margin-bottom: 28px;
}

.rh-convert-section h2 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.rh-convert-section > p {
    font-size: 0.875rem;
    color: var(--rh-muted, #6b7280);
    margin: 0 0 18px;
}

.rh-exchange-rates {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.rh-rate-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
}

.rh-rate-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.rh-rate-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.rh-rate-header strong {
    font-size: 0.875rem;
    font-weight: 600;
}

.rh-rate-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f3f4f6;
    font-size: 0.75rem;
    font-weight: 700;
    color: #374151;
    flex-shrink: 0;
}

.rh-flag-us {
    background: #dbeafe;
    color: #1d4ed8;
}

.rh-flag-gb {
    background: #fce7f3;
    color: #be185d;
}

.rh-flag-eu {
    background: #ede9fe;
    color: #7c3aed;
}

.rh-rate-value {
    margin-bottom: 12px;
}

.rh-rate-amount {
    display: block;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.3;
}

.rh-rate-label {
    font-size: 0.75rem;
    color: var(--rh-muted, #6b7280);
}

.rh-rate-per {
    font-size: 0.75rem;
    color: var(--rh-muted, #6b7280);
    padding-top: 10px;
    border-top: 1px solid #f3f4f6;
}

/* ── Convert Form ── */
.rh-convert-form-section {
    margin-bottom: 28px;
}

.rh-convert-form-section h2 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.rh-convert-form-section > p {
    font-size: 0.875rem;
    color: var(--rh-muted, #6b7280);
    margin: 0 0 18px;
}

.rh-convert-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rh-convert-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fafbfc;
    transition: border-color 0.2s, background 0.2s;
}

.rh-convert-option:hover {
    border-color: var(--rh-primary, #007f5f);
    background: #f0fdf4;
}

.rh-convert-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.rh-convert-info > div strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
}

.rh-convert-info > div small {
    font-size: 0.8125rem;
    color: var(--rh-muted, #6b7280);
}

.rh-convert-option .rh-button {
    white-space: nowrap;
    padding: 8px 18px;
    font-size: 0.8125rem;
    min-height: 36px;
}

/* ── Steps ── */
.rh-steps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 8px;
}

.rh-step {
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fafbfc;
}

.rh-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--rh-primary-soft, #e3f5ee);
    color: var(--rh-primary, #007f5f);
    font-size: 0.8125rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.rh-step strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.rh-step p {
    font-size: 0.8125rem;
    color: var(--rh-muted, #6b7280);
    margin: 0;
    line-height: 1.5;
}

/* ── Convert Currency Sidebar ── */
.side-convert .rh-wallet-help {
    position: sticky;
    top: 24px;
}

/* ── Responsive ── */
@media (max-width: 1280px) {
    .rh-dashboard-shell {
        grid-template-columns: 220px minmax(0, 1fr);
    }
    .rh-dashboard-grid {
        grid-template-columns: 1fr 320px;
    }
}

@media (max-width: 1024px) {
    .rh-dashboard-shell {
        grid-template-columns: 1fr;
    }
    .rh-dashboard-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    .rh-sidebar-user {
        display: none;
    }
    .rh-dashboard-sidebar nav {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
    }
    .rh-dashboard-grid {
        grid-template-columns: 1fr;
    }
    .rh-stat-grid.four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .rh-stat-grid:not(.four):not(.small) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .rh-wallet-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .rh-dashboard-shell {
        padding: 16px;
    }
    .rh-dashboard-head h1 {
        font-size: 1.5rem;
    }
    .rh-stat-grid,
    .rh-stat-grid:not(.four):not(.small),
    .rh-stat-grid.small,
    .rh-stat-grid.four {
        grid-template-columns: 1fr;
    }
    .rh-stat-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .rh-stat-body a {
        margin-top: 8px;
    }
    .rh-detail-list {
        grid-template-columns: 1fr;
    }
    .rh-detail-list dd {
        text-align: left;
    }
    .rh-dashboard-sidebar {
        flex-direction: column;
    }
    .rh-dashboard-sidebar nav {
        flex-direction: column;
    }
    .rh-dashboard-sidebar nav a {
        padding: 12px;
    }
    .rh-profile-grid {
        grid-template-columns: 1fr;
    }
    .rh-profile-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .rh-subscription-status.large {
        flex-wrap: wrap;
    }
    .rh-subscription-status.large > div {
        min-width: 0;
    }
    .rh-wallet-hero {
        padding: 24px 20px;
    }
    .rh-wallet-hero strong {
        font-size: 1.75rem;
    }
    .rh-recharge-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .rh-wallet-hero > div {
        flex-direction: column;
    }
    .rh-exchange-rates {
        grid-template-columns: 1fr;
    }
    .rh-steps {
        grid-template-columns: 1fr;
    }
    .rh-convert-option {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .rh-convert-info {
        justify-content: center;
    }
    .rh-convert-option .rh-button {
        width: 100%;
    }

    /* ── Toolbar: stack filters full-width ── */
    .rh-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .rh-toolbar > * {
        width: 100%;
    }
    .rh-toolbar input {
        flex: 1;
        min-width: 0;
    }
    .rh-toolbar button {
        min-height: 44px;
        padding: 10px 14px;
    }

    /* ── Tables become stacked cards ── */
    .rh-table-wrap {
        overflow-x: visible;
    }
    .rh-table-wrap table,
    .rh-table-wrap tbody,
    .rh-table-wrap tr,
    .rh-table-wrap td {
        display: block;
        width: 100%;
    }
    .rh-table-wrap thead {
        display: none;
    }
    .rh-table-wrap tr {
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        background: #fff;
        padding: 6px 14px;
        margin-bottom: 10px;
    }
    .rh-table-wrap tr:last-child {
        margin-bottom: 0;
    }
    .rh-table-wrap td {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        column-gap: 12px;
        row-gap: 4px;
        padding: 9px 0;
        border-bottom: 1px dashed #f3f4f6;
        text-align: left;
    }
    .rh-table-wrap td:last-child {
        border-bottom: 0;
    }
    .rh-table-wrap td::before {
        content: "";
        margin-right: auto;
        font-size: 0.6875rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--rh-muted, #6b7280);
    }

    /* Column labels per dashboard page */
    body.side-dashboard .rh-table-wrap td:nth-child(1)::before { content: "Activity"; }
    body.side-dashboard .rh-table-wrap td:nth-child(2)::before { content: "Type"; }
    body.side-dashboard .rh-table-wrap td:nth-child(3)::before { content: "Item"; }
    body.side-dashboard .rh-table-wrap td:nth-child(4)::before { content: "Date"; }
    body.side-dashboard .rh-table-wrap td:nth-child(5)::before { content: "Amount"; }

    body.side-downloads .rh-table-wrap td:nth-child(1)::before { content: "File Name"; }
    body.side-downloads .rh-table-wrap td:nth-child(2)::before { content: "Type"; }
    body.side-downloads .rh-table-wrap td:nth-child(3)::before { content: "Related Article"; }
    body.side-downloads .rh-table-wrap td:nth-child(4)::before { content: "Date Downloaded"; }
    body.side-downloads .rh-table-wrap td:nth-child(5)::before { content: "Action"; }

    body.side-purchases .rh-table-wrap td:nth-child(1)::before { content: "Article"; }
    body.side-purchases .rh-table-wrap td:nth-child(2)::before { content: "Category"; }
    body.side-purchases .rh-table-wrap td:nth-child(3)::before { content: "Purchase Date"; }
    body.side-purchases .rh-table-wrap td:nth-child(4)::before { content: "Status"; }
    body.side-purchases .rh-table-wrap td:nth-child(5)::before { content: "Action"; }

    body.side-subscription .rh-table-wrap td:nth-child(1)::before { content: "Plan"; }
    body.side-subscription .rh-table-wrap td:nth-child(2)::before { content: "Status"; }
    body.side-subscription .rh-table-wrap td:nth-child(3)::before { content: "Started"; }
    body.side-subscription .rh-table-wrap td:nth-child(4)::before { content: "Expires"; }

    body.side-payments .rh-table-wrap td:nth-child(1)::before { content: "Invoice ID"; }
    body.side-payments .rh-table-wrap td:nth-child(2)::before { content: "Type"; }
    body.side-payments .rh-table-wrap td:nth-child(3)::before { content: "Amount"; }
    body.side-payments .rh-table-wrap td:nth-child(4)::before { content: "Date"; }
    body.side-payments .rh-table-wrap td:nth-child(5)::before { content: "Method"; }
    body.side-payments .rh-table-wrap td:nth-child(6)::before { content: "Status"; }
    body.side-payments .rh-table-wrap td:nth-child(7)::before { content: "Invoice"; }

    body.side-wallet .rh-table-wrap td:nth-child(1)::before { content: "Date"; }
    body.side-wallet .rh-table-wrap td:nth-child(2)::before { content: "Transaction ID"; }
    body.side-wallet .rh-table-wrap td:nth-child(3)::before { content: "Description"; }
    body.side-wallet .rh-table-wrap td:nth-child(4)::before { content: "Type"; }
    body.side-wallet .rh-table-wrap td:nth-child(5)::before { content: "Amount"; }
    body.side-wallet .rh-table-wrap td:nth-child(6)::before { content: "Balance"; }

    /* Empty-state rows span the full card */
    body.page-dashboard .rh-table-wrap td[colspan] {
        display: block;
        text-align: center;
        padding: 14px 0;
    }
    body.page-dashboard .rh-table-wrap td[colspan]::before {
        content: none;
    }

    /* Purchased-article cell inside stacked cards */
    .rh-blog-cell {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 10px;
    }
    .rh-blog-cell img {
        width: 72px;
    }

    /* Dark mode: stacked rows */
    body[data-theme="dark"] .rh-table-wrap tr {
        background: var(--rh-soft);
        border-color: var(--rh-border);
    }
    body[data-theme="dark"] .rh-table-wrap td {
        border-bottom-color: var(--rh-border);
    }
    body[data-theme="dark"] .rh-table-wrap td::before {
        color: var(--rh-muted);
    }
}

/* ═══════════════════════════════════════════
   DARK MODE – Dashboard Overrides
   ═══════════════════════════════════════════ */
body[data-theme="dark"] .rh-dashboard-sidebar {
    background: var(--rh-surface);
    border-color: var(--rh-border);
}

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

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

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

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

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

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

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

body[data-theme="dark"] .rh-dashboard-sidebar nav a.active,
body[data-theme="dark"] body.side-dashboard .side-dashboard,
body[data-theme="dark"] body.side-downloads .side-downloads,
body[data-theme="dark"] body.side-purchases .side-purchases,
body[data-theme="dark"] body.side-subscription .side-subscription,
body[data-theme="dark"] body.side-wallet .side-wallet,
body[data-theme="dark"] body.side-payments .side-payments,
body[data-theme="dark"] body.side-profile .side-profile {
    background: var(--rh-primary-soft);
    color: var(--rh-primary);
}

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

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

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

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

body[data-theme="dark"] .rh-stat-icon.orange {
    background: #3d2a1e;
    color: #fb923c;
}

body[data-theme="dark"] .rh-stat-icon.blue {
    background: #1e2a4a;
    color: #60a5fa;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

body[data-theme="dark"] .rh-button-danger {
    background: #2a1a1a;
    color: #f87171;
    border-color: #3a2020;
}

body[data-theme="dark"] .rh-badge.blue {
    background: #1e2a4a;
    color: #60a5fa;
}

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

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

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

body[data-theme="dark"] .rh-profile-hero h2 em {
    color: var(--rh-primary);
}

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

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

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

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

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

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

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

body[data-theme="dark"] .rh-recent-action:hover {
    color: var(--rh-primary);
    background: var(--rh-primary-soft);
}

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

body[data-theme="dark"] .rh-wallet-hero {
    background: linear-gradient(135deg, #0a3d2f 0%, #06261e 100%);
}

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

body[data-theme="dark"] .rh-recharge-grid button.selected {
    background: var(--rh-primary-soft);
    border-color: var(--rh-primary);
}

body[data-theme="dark"] .rh-recharge-grid button i {
    color: var(--rh-primary);
}

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

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

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

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

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

body[data-theme="dark"] .rh-wallet-help > div p {
    color: var(--rh-muted);
}

body[data-theme="dark"] .rh-wallet-help > div strong {
    color: var(--rh-text);
}

body[data-theme="dark"] .rh-wallet-help > div span {
    background: var(--rh-primary-soft);
    color: var(--rh-primary);
}

body[data-theme="dark"] .rh-wallet-help footer {
    border-top-color: var(--rh-border);
    color: var(--rh-text);
}

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

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

body[data-theme="dark"] .rh-rate-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

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

body[data-theme="dark"] .rh-flag-us {
    background: #1e3a5f;
    color: #93c5fd;
}

body[data-theme="dark"] .rh-flag-gb {
    background: #4a1942;
    color: #f9a8d4;
}

body[data-theme="dark"] .rh-flag-eu {
    background: #2e1f5e;
    color: #c4b5fd;
}

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

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

body[data-theme="dark"] .rh-convert-option:hover {
    background: var(--rh-primary-soft);
    border-color: var(--rh-primary);
}

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

body[data-theme="dark"] .rh-premium-card {
    background: linear-gradient(135deg, #0a3d2f 0%, #06261e 100%);
}

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

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

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

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

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

body[data-theme="dark"] .rh-table-icon.blue {
    background: #1e2a4a;
    color: #60a5fa;
}

body[data-theme="dark"] .rh-table-icon.orange {
    background: #3d2a1e;
    color: #fb923c;
}

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

body[data-theme="dark"] .rh-view-all-btn {
    border-top-color: var(--rh-border);
    color: var(--rh-text);
}

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

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

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

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

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

/* Empty state styles */
.rh-empty-state {
    text-align: center;
    padding: 32px 16px !important;
    color: var(--rh-muted, #6b7280);
    font-size: 0.875rem;
}

.rh-empty-card {
    text-align: center;
    padding: 32px 20px;
}

.rh-empty-card i {
    font-size: 2rem;
    color: var(--rh-muted, #9ca3af);
    margin-bottom: 12px;
    display: block;
}

.rh-empty-card p {
    font-weight: 600;
    color: var(--rh-text, #374151);
    margin: 0 0 4px;
}

.rh-empty-card small {
    color: var(--rh-muted, #6b7280);
    display: block;
    margin-bottom: 16px;
}

.rh-empty-card .rh-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 0 auto;
}

.rh-empty-card.small {
    padding: 24px 16px;
}

.rh-empty-card.small i {
    font-size: 1.5rem;
}

body[data-theme="dark"] .rh-empty-card i {
    color: var(--rh-muted, #6b7280);
}

body[data-theme="dark"] .rh-empty-card p {
    color: var(--rh-text, #f9fafb);
}

/* ── Profile Form Sections ── */
.rh-profile-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--rh-heading, #111827);
    margin-bottom: 24px;
}

.rh-profile-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.rh-form-section {
    background: var(--rh-surface, #fff);
    border: 1px solid var(--rh-border, #e5e7eb);
    border-radius: 12px;
    padding: 20px 24px;
}

.rh-form-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--rh-heading, #111827);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rh-border, #e5e7eb);
}

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

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

.rh-form-group {
    display: flex;
    flex-direction: column;
}

.rh-form-group label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--rh-text, #374151);
    margin-bottom: 6px;
}

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

.rh-form-hint {
    font-size: 0.75rem;
    color: var(--rh-muted, #6b7280);
    margin: 0 0 8px;
}

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

.rh-form-error {
    font-size: 0.75rem;
    color: #dc2626;
    margin-top: 4px;
}

.rh-interests-section {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.rh-interests-section > label {
    font-weight: 600;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 2px;
}

.rh-interests-section > .rh-form-hint {
    margin-bottom: 12px;
}

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

.rh-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, border-color 0.15s, box-shadow 0.15s;
}

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

.rh-interest-item:has(input:checked) {
    background: #e3f5ee;
    border-color: var(--rh-primary, #007f5f);
    box-shadow: 0 0 0 1px rgba(0, 127, 95, 0.15);
}

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

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

body[data-theme="dark"] .rh-interests-section {
    border-top-color: var(--rh-border, #374151);
}

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

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

body[data-theme="dark"] .rh-interest-item:has(input:checked) {
    background: rgba(0, 127, 95, 0.15);
    border-color: var(--rh-primary, #007f5f);
    box-shadow: 0 0 0 1px rgba(0, 127, 95, 0.25);
}

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

body[data-theme="dark"] .rh-form-section-title {
    color: var(--rh-heading, #f9fafb);
    border-color: var(--rh-border, #374151);
}

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

body[data-theme="dark"] .rh-form-group input,
body[data-theme="dark"] .rh-form-group select,
body[data-theme="dark"] .rh-form-group textarea {
    background: var(--rh-soft, #374151);
    border-color: var(--rh-border, #4b5563);
    color: var(--rh-text, #f9fafb);
}

body[data-theme="dark"] .rh-form-hint {
    color: var(--rh-muted, #9ca3af);
}

@media (max-width: 768px) {
    .rh-form-grid,
    .rh-form-grid--3 {
        grid-template-columns: 1fr;
    }
}
