:root {
  --rm-bg: #f8fafc;
  --rm-surface: #ffffff;
  --rm-border: #e2e8f0;
  --rm-text: #0f172a;
  --rm-muted: #64748b;
  --rm-primary: #005b4e;
  --rm-primary-dark: #004d40;
  --rm-sidebar-bg: #004d40;
  --rm-sidebar-hover: #00695c;
  --rm-sidebar-active: #00695c;
  --rm-success: #10b981;
  --rm-success-bg: #ecfdf5;
  --rm-danger: #ef4444;
  --rm-danger-bg: #fef2f2;
  --rm-accent: #f59e0b;
}

body.rm-dashboard-body {
  margin: 0;
  background: var(--rm-bg);
  color: var(--rm-text);
  font-family: Arial, sans-serif;
}

.rm-auth-card,
.rm-card,
.rm-dashboard-panel {
  background: var(--rm-surface);
  border: 1px solid var(--rm-border);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.rm-auth-card {
  max-width: 960px;
  margin: 32px auto;
  padding: 32px;
}

.rm-auth-header {
  margin-bottom: 24px;
}

.rm-auth-header h2,
.rm-dashboard-header h1,
.rm-card h3 {
  margin: 0 0 8px;
}

.rm-auth-header p,
.rm-dashboard-header p,
.rm-dashboard-message {
  color: var(--rm-muted);
}

.rm-form {
  display: block;
  padding-right: 25px;
}

.rm-grid {
  display: grid;
  gap: 18px;
}

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

.rm-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.rm-field-full {
  grid-column: 1 / -1;
}

.rm-profile-avatar-field .rm-profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.rm-profile-avatar-preview {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--rm-border, #e2e8f0);
  flex-shrink: 0;
}

.rm-profile-avatar-upload input[type="file"] {
  max-width: 100%;
  padding: 8px 0;
  font-size: 13px;
}

.rm-profile-avatar-hint {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}

.rm-field input,
.rm-field textarea,
.rm-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rm-border);
  border-radius: 12px;
  box-sizing: border-box;
  background: #fff;
}

.rm-form-actions {
  margin-top: 20px;
}

.rm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: none;
  border-radius: 12px;
  background: var(--rm-primary);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.rm-button:hover {
  background: var(--rm-primary-dark);
}

.rm-button-secondary {
  background: #0f172a;
}

.rm-form-response {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  display: none;
}

.rm-form-response.is-success,
.rm-form-response.is-error {
  display: block;
}

.rm-form-response.is-success {
  background: var(--rm-success-bg);
  color: var(--rm-success);
}

.rm-form-response.is-error {
  background: var(--rm-danger-bg);
  color: var(--rm-danger);
}

.rm-dashboard-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  transition: all 0.3s ease;
  position: relative;
}

.rm-dashboard-app.sidebar-collapsed {
  grid-template-columns: 0px 1fr;
}

.rm-dashboard-app.sidebar-collapsed .rm-dashboard-sidebar {
  transform: translateX(-260px);
}

.rm-dashboard-sidebar {
  box-sizing: border-box;
  background: linear-gradient(180deg, #004d42 0%, #002d26 100%);
  color: #fff;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  font-size: 15px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.rm-dashboard-sidebar::-webkit-scrollbar {
  width: 4px;
}

.rm-dashboard-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.rm-dashboard-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.rm-dashboard-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

.rm-dashboard-header {
  height: 70px;
  background: #fff;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--rm-border);
}

.rm-sidebar-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
}

.rm-sidebar-toggle:hover {
  background: #f8fafc;
}

@media (min-width: 1025px) {
  .rm-sidebar-toggle {
    display: none;
  }
}

.rm-user-profile-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  border-radius: 99px;
  background: #f8fafc;
}

.rm-user-profile-header img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.rm-user-name-header {
  font-weight: 600;
  font-size: 14px;
  color: #2d3748;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rm-dashboard-body-inner {
  padding: 24px 32px;
}

.rm-notice-bar {
  background: #f0fdf4;
  color: #166534;
  padding: 16px 24px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.6;
}

.rm-balance-check-container {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.rm-button-balance-check {
  background: #ff8a65;
  color: #fff;
  padding: 10px 24px;
  border-radius: 99px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rm-button-balance-check:hover {
  background: #ff7043;
  transform: translateY(-1px);
}

/* Stat Cards New */
.rm-stats-container-new {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.rm-stat-card-new {
  background: #fff;
  border-radius: 12px;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  color: #fff;
  border: none;
}

.rm-stat-card-new.color-blue {
  background: #3182ce;
}

.rm-stat-card-new.color-green {
  background: #48bb78;
}

.rm-stat-card-new.color-orange {
  background: #ed8936;
}

.rm-stat-card-new.color-purple {
  background: #9f7aea;
}

.rm-stat-card-new.color-red {
  background: #f56565;
}

.rm-stat-card-new.color-yellow {
  background: #ecc94b;
}

.rm-stat-icon-new .dashicons {
  font-size: 24px;
  width: 24px;
  height: 24px;
}

.rm-stat-value-new {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 2px;
}

.rm-stat-label-new {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

/* Charts */
.rm-charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.rm-chart-container {
  background: #fff;
  border: 1px solid var(--rm-border);
  border-radius: 12px;
  padding: 24px;
}

.rm-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.rm-chart-header h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: #000;
}

.rm-chart-filter {
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid var(--rm-border);
  font-size: 12px;
  background: #f8fafc;
}

#rm-profit-canvas {
  height: 250px !important;
}

.rm-donut-wrapper {
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1200px) {
  .rm-stats-container-new {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

@media (max-width: 600px) {
  .rm-stats-container-new {
    grid-template-columns: repeat(2, 1fr);
  }
}

.rm-sidebar-brand {
  margin-bottom: 40px;
}

.rm-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.rm-custom-logo-link {
  display: block;
  line-height: 0;
}

.rm-site-logo-img {
  display: block;
  max-height: 40px;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.rm-reseller-badge {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rm-badge-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.rm-badge-tag {
  display: inline-flex;
  padding: 2px 10px;
  background: var(--rm-accent);
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  width: fit-content;
}

.rm-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.rm-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 4px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 3px solid transparent;
}

.rm-nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateX(4px);
}

.rm-nav-link.is-active {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0) 100%);
  color: #fff;
  border-left-color: #10b981;
}

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

.rm-nav-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  opacity: 0.5;
}

.rm-nav-chevron svg {
  width: 18px;
  height: 18px;
}

.is-expanded .rm-nav-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.rm-nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.rm-nav-icon svg {
  display: block;
}

.rm-nav-submenu {
  padding-left: 28px;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

.is-expanded .rm-nav-submenu {
  max-height: 500px;
  margin-top: 4px;
  opacity: 1;
}

.rm-subnav-link {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.2s ease;
}

.rm-subnav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.rm-subnav-link.is-active {
  color: #fff;
  font-weight: 600;
}

.rm-sidebar-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.rm-logout-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 500;
}

.rm-logout-link:hover {
  color: #fff;
}

.rm-dashboard-content {
  padding: 0;
  background: var(--rm-bg);
}

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

.rm-page-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: var(--rm-text);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

@media (min-width: 641px) {
  .rm-page-title {
    max-width: none;
  }
}

.rm-dashboard-header {
  padding: 0px 32px;
  background: #fff;
  border-bottom: 1px solid var(--rm-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  position: sticky;
  top: 0;
  z-index: 900;
}

.rm-dashboard-header h1 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.rm-dashboard-header p {
  display: none;
  /* Hide description in header */
}

.rm-balance-chip {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 600;
}

.rm-dashboard-panel {
  padding: 24px;
}

.rm-stats-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
  padding: 0 32px;
}

@media (max-width: 1024px) {
  .rm-stats-container {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 16px;
  }
}

@media (max-width: 640px) {
  .rm-stats-container {
    grid-template-columns: 1fr;
    padding: 0 16px;
    gap: 16px;
  }

  .rm-dashboard-body-inner {
    padding: 16px;
  }

  .rm-dashboard-header {
    padding: 0 16px;
  }
}

.rm-stat-card {
  background: #fff;
  border: 1px solid var(--rm-border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.rm-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rm-stat-icon .dashicons {
  font-size: 24px;
  width: 24px;
  height: 24px;
}

.rm-icon-bg-teal {
  background: #e6fffa;
  color: #008060;
}

.rm-icon-bg-orange {
  background: #fff7ed;
  color: #f59e0b;
}

.rm-icon-bg-green {
  background: #f0fdf4;
  color: #10b981;
}

.rm-stat-details {
  display: flex;
  flex-direction: column;
}

.rm-stat-label {
  font-size: 14px;
  color: var(--rm-muted);
  font-weight: 500;
}

.rm-stat-value {
  font-size: 20px;
  color: var(--rm-text);
  font-weight: 700;
}

.rm-recent-orders-card {
  background: #fff;
  border: 1px solid var(--rm-border);
  border-radius: 12px;
  margin: 0 32px 32px;
  overflow: hidden;
}

.rm-card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--rm-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rm-card-header h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.rm-view-all {
  font-size: 13px;
  color: var(--rm-primary);
  text-decoration: none;
  font-weight: 600;
}

.rm-view-all:hover {
  text-decoration: underline;
}

.rm-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
}

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

.rm-table th {
  background: #f8fafc;
  padding: 12px 24px;
  text-align: left;
  font-size: 13px;
  color: var(--rm-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--rm-border);
}

.rm-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--rm-border);
  font-size: 14px;
}

.rm-order-link {
  color: var(--rm-primary);
  text-decoration: none;
  font-weight: 600;
}

.rm-status-badge {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.rm-status-badge.status-processing {
  background: #000 !important;
  color: #fff !important;
}

.status-pending {
  background: #eff6ff;
  color: #2563eb;
}

.status-completed {
  background: #ecfdf5;
  color: #10b981;
}

.status-on-hold {
  background: #fff7ed;
  color: #f59e0b;
}

.status-cancelled,
.status-failed {
  background: #fef2f2;
  color: #ef4444;
}

.rm-card+.rm-card {
  margin-top: 24px;
}

/* Products Filter & Grid Redesign */
.rm-products-wrapper {
  padding: 20px;
  background: #fff;
  border-radius: 8px;
}

.rm-products-filter {
  margin-bottom: 24px;
}

.rm-filter-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.rm-filter-top {
  flex-direction: row;
}

.rm-filter-limit {
  flex: 0 0 15%;
}

.rm-filter-search {
  flex: 1;
}

.rm-filter-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .rm-filter-bottom {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .rm-filter-row.rm-filter-top {
    flex-direction: column;
    align-items: stretch;
  }

  .rm-filter-limit {
    width: 100%;
    margin-bottom: 12px;
  }
}

.rm-products-filter select,
.rm-products-filter input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
  color: #374151;
  height: 42px;
  box-sizing: border-box;
  outline: none;
}

.rm-products-filter select:focus,
.rm-products-filter input:focus {
  border-color: #9ca3af;
}

.rm-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

@media (max-width: 480px) {
  .rm-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }
}

.rm-product-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 12px;
  text-align: center;
  transition: box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.rm-product-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.rm-product-image {
  margin-bottom: 12px;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  background: #f9fafb;
}

.rm-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rm-product-img-placeholder {
  width: 100%;
  height: 100%;
  background: #f3f4f6;
}

.rm-product-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.rm-product-title {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin: 0 0 8px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rm-product-price-details {
  margin-bottom: 12px;
  margin-top: auto;
}

.rm-price-reg {
  display: block;
  font-size: 12px;
  color: #4b5563;
  margin-bottom: 4px;
}

.rm-price-ret {
  display: block;
  font-size: 11px;
  color: #111827;
}

.rm-product-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.rm-p-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background-color: #20c997;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.rm-p-btn:hover {
  background-color: #1aa179;
}

.rm-p-btn .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.rm-sidebar-overlay {
  display: none;
}

@media (max-width: 1024px) {
  .rm-dashboard-app {
    grid-template-columns: 1fr;
  }

  .rm-dashboard-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    height: 100vh;
    transform: translateX(-260px);
    z-index: 2000;
  }

  .rm-dashboard-app.sidebar-active .rm-dashboard-sidebar {
    transform: translateX(0);
  }

  /* Overlay */
  .rm-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: none;
  }

  .rm-dashboard-app.sidebar-active .rm-sidebar-overlay {
    display: block;
  }

  .rm-grid-2,
  .rm-stat-grid {
    grid-template-columns: 1fr;
  }
}

/* All Orders Redesign */
.rm-orders-stats-container {
  margin-bottom: 24px;
}

.rm-orders-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.rm-order-stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--rm-border);
  transition: transform 0.2s ease;
}

.rm-order-stat-card:hover {
  transform: translateY(-2px);
}

.rm-stat-main {
  display: flex;
  flex-direction: column;
}

.rm-stat-count {
  font-size: 24px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 4px;
}

.rm-stat-label {
  font-size: 14px;
  color: #334155;
  font-weight: 600;
}

.rm-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* Status specific icon backgrounds based on image */
.rm-order-stat-card[style*="#1e293b"] .rm-stat-icon {
  background: #fee2e2;
}

/* New */
.rm-order-stat-card[style*="#f59e0b"] .rm-stat-icon {
  background: #ffedd5;
}

/* Pending */
.rm-order-stat-card[style*="#10b981"] .rm-stat-icon {
  background: #dcfce7;
}

/* Confirmed */
.rm-order-stat-card[style*="#3b82f6"] .rm-stat-icon {
  background: #dbeafe;
}

/* Packaging */
.rm-order-stat-card[style*="#6366f1"] .rm-stat-icon {
  background: #e0e7ff;
}

/* Shipment */
.rm-order-stat-card[style*="#059669"] .rm-stat-icon {
  background: #ffedd5;
}

/* Delivered */
.rm-order-stat-card[style*="#d97706"] .rm-stat-icon {
  background: #fef9c3;
}

/* WFR */
.rm-order-stat-card[style*="#9333ea"] .rm-stat-icon {
  background: #f3e8ff;
}

/* Returned */
.rm-order-stat-card[style*="#ef4444"] .rm-stat-icon {
  background: #fee2e2;
}

/* Cancel */
.rm-order-stat-card[style*="#64748b"] .rm-stat-icon {
  background: #f1f5f9;
}

/* Incomplete */

.rm-orders-controls {
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 24px;
  border: 1px solid var(--rm-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.rm-filter-group {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.rm-input-date,
.rm-input-search,
.rm-input-select {
  padding: 10px 14px;
  border: 1px solid var(--rm-border);
  border-radius: 8px;
  font-size: 14px;
  background: #f8fafc;
}

.rm-input-search {
  min-width: 0;
  flex: 2;
}

.rm-input-select {
  flex: 0.5;
}

.rm-enriched-table-container {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--rm-border);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.rm-enriched-table {
  width: 100%;
  border-collapse: collapse;
}

.rm-enriched-table th {
  background: #f1f5f9;
  padding: 14px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  border-bottom: 1px solid var(--rm-border);
}

.rm-enriched-table td {
  padding: 20px 16px;
  border-bottom: 1px solid var(--rm-border);
  vertical-align: middle;
  font-size: 14px;
}

.rm-customer-name {
  font-weight: 700;
  margin-bottom: 8px;
  color: #1e293b;
  font-size: 15px;
}

.rm-customer-phone-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  color: #2563eb;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 8px;
  font-weight: 600;
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.rm-customer-address {
  font-size: 13px;
  color: #475569;
  margin-bottom: 10px;
  line-height: 1.6;
}

.rm-customer-summary-stats {
  font-size: 12px;
  margin-bottom: 10px;
  color: #64748b;
}

.rm-text-success {
  color: #10b981;
}

.rm-text-danger {
  color: #ef4444;
}

.rm-customer-actions {
  display: flex;
  gap: 10px;
}

.rm-btn-action-teal,
.rm-btn-view-teal {
  background: #20b2aa;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  font-size: 14px;
}

.rm-btn-action-teal svg {
  width: 18px;
  height: 18px;
}

.rm-btn-view-teal .rm-view-icon {
  font-size: 16px;
}

/* New Order Page Styles */
.rm-new-order-container {
  padding: 10px;
}

.rm-order-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 24px;
}

@media (max-width: 1024px) {
  .rm-order-grid {
    grid-template-columns: 1fr;
  }
}

.rm-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 24px;
  border: 1px solid #f1f5f9;
  overflow: hidden;
}

.rm-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  background: #fafafa;
}

.rm-card-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
}

.rm-card-body {
  padding: 20px;
}

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

.rm-form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}

.rm-form-group input,
.rm-form-group textarea,
.rm-form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #1e293b;
  transition: all 0.2s;
}

.rm-form-group input:focus,
.rm-form-group textarea:focus,
.rm-form-group select:focus {
  outline: none;
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

/* Radios/checkboxes must not use full-width text-input styling */
.rm-form-group input[type="radio"],
.rm-form-group input[type="checkbox"] {
  width: auto;
  max-width: none;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  accent-color: #0d9488;
  flex-shrink: 0;
}

.rm-form-group input[type="radio"]:focus,
.rm-form-group input[type="checkbox"]:focus {
  outline: 2px solid rgba(13, 148, 136, 0.35);
  outline-offset: 2px;
  box-shadow: none;
}

.rm-shipping-preset-fieldset {
  margin: 0 0 16px;
  padding: 12px 14px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.rm-shipping-preset-legend {
  padding: 0 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
}

.rm-shipping-preset-radios {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.rm-form-group .rm-shipping-preset-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  color: #1e293b;
  margin-bottom: 0;
  cursor: pointer;
  line-height: 1.45;
}

.rm-shipping-preset-label input[type="radio"] {
  margin-top: 3px;
}

.rm-shipping-preset-hint {
  margin: 10px 0 0;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.4;
}

/* Product Search */
.rm-product-search-wrapper {
  margin-bottom: 24px;
  position: relative;
}

.rm-search-input-container {
  position: relative;
}

#rm-product-search-input {
  padding-right: 40px;
}

.rm-search-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 100;
  max-height: 300px;
  overflow-y: auto;
  display: none;
}

.rm-search-result-item {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid #f1f5f9;
}

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

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

.rm-search-result-item img {
  border-radius: 4px;
  object-fit: cover;
}

.rm-search-result-item span {
  flex-grow: 1;
  font-size: 0.9rem;
  color: #1e293b;
}

.rm-search-result-item strong {
  font-size: 0.9rem;
  color: #0d9488;
}

/* Items Table */
.rm-order-items-table-wrapper {
  margin-bottom: 30px;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.rm-order-items-table {
  width: 100%;
  border-collapse: collapse;
}

.rm-order-items-table th {
  background: #f8fafc;
  padding: 12px 16px;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  border-bottom: 1px solid #f1f5f9;
}

.rm-order-items-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.rm-item-product {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rm-item-product img {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
}

.rm-item-product span {
  font-size: 15px;
}

.rm-item-qty,
.rm-item-resale {
  width: 70px !important;
  padding: 6px 10px !important;
  text-align: center;
}

.rm-item-variant {
  width: 100% !important;
  padding: 4px 8px !important;
  font-size: 0.85rem !important;
}

.rm-item-remove {
  background: #fee2e2;
  color: #ef4444;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.rm-item-remove:hover {
  background: #fecaca;
}

.rm-no-items {
  text-align: center;
  color: #94a3b8;
  font-style: italic;
}

/* Order Summary */
.rm-order-summary {
  max-width: 500px;
  margin-left: auto;
  border-top: 1px solid #f1f5f9;
  padding-top: 20px;
}

@media (max-width: 640px) {
  .rm-order-summary {
    max-width: none;
    padding-right: 0;
  }
}

.rm-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: #475569;
}

.rm-summary-input-wrapper {
  width: 100px;
}

.rm-summary-input-wrapper input {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  text-align: right;
}

.rm-summary-payable {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px dashed #f1f5f9;
  font-weight: 700;
  color: #1e293b;
  font-size: 1.1rem;
}

.rm-summary-profit {
  color: #0d9488;
  font-weight: 700;
}

.rm-order-actions {
  margin-top: 30px;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

@media (max-width: 640px) {
  .rm-order-actions {
    align-items: stretch;
  }

  .rm-button-submit {
    width: 100%;
  }
}

.rm-button-submit {
  background: #0d9488;
  color: white;
  padding: 12px 36px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.rm-button-submit:hover {
  background: #0f766e;
}

.rm-button-submit:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

.rm-btn-action-teal:hover,
.rm-btn-view-teal:hover {
  background: #19918a;
  box-shadow: 0 2px 4px rgba(32, 178, 170, 0.3);
}

.rm-status-badge-new {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: capitalize;
  color: #fff;
}

.rm-status-badge-new.status-shipment {
  background: #166534;
}

/* Shipment - green */
.rm-status-badge-new.status-cancel {
  background: #ef4444;
}

/* Cancel - red */

.rm-note-link {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
}

.rm-note-link:hover {
  text-decoration: underline;
}

.rm-product-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 200px;
}

.rm-product-preview img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--rm-border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.rm-product-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: #334155;
}

.rm-invoice-id {
  font-weight: 700;
  color: #475569;
  font-size: 14px;
}

.rm-details-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
}

.rm-detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.rm-detail-row span {
  color: #64748b;
  font-weight: 600;
}

.rm-detail-row strong {
  color: #1e293b;
  font-weight: 800;
}

.rm-detail-profit {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 2px solid #f1f5f9;
  color: #1e293b;
}

.rm-order-date {
  font-size: 13px;
  color: #475569;
  font-weight: 500;
  line-height: 1.4;
}

.rm-courier-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rm-courier-name {
  font-weight: 700;
  font-size: 13px;
  color: #475569;
}

.rm-courier-link {
  font-size: 11px;
  color: #fff;
  background: #475569;
  padding: 4px 10px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  width: fit-content;
}

.rm-empty-state {
  text-align: center;
  padding: 60px !important;
  color: #94a3b8;
  font-size: 16px;
}

/* Order Confirmation Screen */
.rm-order-confirmation {
  padding: 40px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  animation: rm-fade-in 0.5s ease-out;
}

@keyframes rm-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rm-confirmation-card {
  background: #fff;
  border-radius: 24px;
  padding: 48px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--rm-border);
}

.rm-confirmation-icon {
  width: 80px;
  height: 80px;
  background: var(--rm-success-bg);
  color: var(--rm-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.rm-confirmation-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--rm-text);
  margin: 0 0 12px;
}

.rm-confirmation-subtitle {
  color: var(--rm-muted);
  font-size: 15px;
  margin-bottom: 32px;
}

.rm-confirmation-details {
  background: var(--rm-bg);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
  text-align: left;
}

.rm-conf-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--rm-border);
}

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

.rm-conf-label {
  color: var(--rm-muted);
  font-size: 14px;
  font-weight: 500;
}

.rm-conf-value {
  color: var(--rm-text);
  font-size: 14px;
  font-weight: 700;
}

.rm-confirmation-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rm-button-outline {
  background: transparent;
  border: 2px solid var(--rm-primary);
  color: var(--rm-primary);
}

.rm-button-outline:hover {
  background: var(--rm-primary);
  color: #fff;
}

/* Action Dropdown */
.rm-action-dropdown-container {
  position: relative;
  display: inline-block;
}

.rm-btn-action-trigger {
  background: #10b981;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.rm-btn-action-trigger:hover {
  background: #059669;
}

.rm-action-dropdown-menu {
  position: absolute;
  top: 110%;
  right: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  padding: 8px;
  z-index: 1000;
  display: none;
  flex-direction: column;
  gap: 6px;
  min-width: 140px;
  border: 1px solid var(--rm-border);
}

.rm-action-dropdown-menu.is-active {
  display: flex;
}

.rm-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 0px;
  border-radius: 6px;
  border: none;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  width: 100%;
  transition: all 0.2s ease;
}

.rm-dropdown-item.item-edit {
  background: #1e1b4b;
}

.rm-dropdown-item.item-pending {
  background: #0ea5e9;
}

.rm-dropdown-item.item-confirmed {
  background: #10b981;
}

.rm-dropdown-item.item-cancel {
  background: #ef4444;
}

.rm-dropdown-item:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.rm-dropdown-icon {
  font-size: 14px;
}

/* Registration Redesign */
.rm-registration-wrapper {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.rm-registration-card {
  display: flex;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  border: 1px solid var(--rm-border);
}

.rm-reg-left {
  flex: 0 0 400px;
  background: linear-gradient(135deg, var(--rm-primary) 0%, var(--rm-sidebar-bg) 100%);
  color: #fff;
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.rm-reg-left-content h3 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 16px;
  color: #fff;
}

.rm-reg-left-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 40px;
}

.rm-reg-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: auto;
}

.rm-reg-feature {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rm-reg-feature .dashicons {
  font-size: 24px;
  width: 24px;
  height: 24px;
  color: var(--rm-accent);
}

.rm-reg-feature span:last-child {
  font-weight: 600;
  font-size: 15px;
}

.rm-reg-right {
  flex: 1;
  padding: 40px;
  background: #ffffff;
}

.rm-auth-header-modern {
  margin-bottom: 30px;
}

.rm-auth-header-modern h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--rm-text);
  margin: 0 0 8px;
}

.rm-auth-header-modern p {
  color: var(--rm-muted);
  font-size: 14px;
  margin: 0;
}

.rm-form-modern .rm-grid {
  gap: 20px;
}

.rm-field-modern {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rm-field-modern label {
  font-size: 13px;
  font-weight: 600;
  color: var(--rm-text);
  display: flex;
  justify-content: space-between;
}

.rm-optional {
  color: var(--rm-muted);
  font-weight: 400;
  font-size: 12px;
}

.rm-field-modern input[type="text"],
.rm-field-modern input[type="email"],
.rm-field-modern input[type="password"],
.rm-field-modern input[type="url"] {
  padding: 12px 16px;
  border: 1px solid var(--rm-border);
  border-radius: 10px;
  font-size: 14px;
  background: #f8fafc;
  transition: all 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.rm-field-modern input:focus {
  outline: none;
  border-color: var(--rm-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 91, 78, 0.1);
}

.rm-modern-file {
  width: 100%;
  padding: 8px;
  background: #f8fafc;
  border: 1px dashed var(--rm-border);
  border-radius: 10px;
  font-size: 13px;
  color: var(--rm-muted);
  cursor: pointer;
  box-sizing: border-box;
}

.rm-modern-file::file-selector-button {
  background: #e2e8f0;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  color: var(--rm-text);
  font-weight: 600;
  cursor: pointer;
  margin-right: 12px;
  transition: background 0.2s;
}

.rm-modern-file::file-selector-button:hover {
  background: #cbd5e1;
}

.rm-form-actions-modern {
  margin-top: 32px;
}

.rm-button-modern {
  width: 100%;
  background: var(--rm-primary);
  color: #fff;
  padding: 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
}

.rm-button-modern:hover {
  background: var(--rm-primary-dark);
  transform: translateY(-1px);
}

.rm-auth-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--rm-muted);
}

.rm-auth-footer a {
  color: var(--rm-primary);
  font-weight: 700;
  text-decoration: none;
}

.rm-auth-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .rm-registration-wrapper {
    margin: 20px auto;
  }

  .rm-reg-left {
    flex: 0 0 350px;
  }
}

@media (max-width: 768px) {
  .rm-registration-card {
    flex-direction: column;
  }

  .rm-reg-left {
    flex: none;
    padding: 40px 30px;
  }

  .rm-reg-left-content p {
    margin-bottom: 20px;
  }

  .rm-reg-features {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
  }

  .rm-reg-right {
    padding: 40px 30px;
  }

  .rm-form-modern .rm-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .rm-registration-wrapper {
    padding: 0 15px;
    margin: 15px auto;
  }

  .rm-reg-left,
  .rm-reg-right {
    padding: 30px 20px;
  }

  .rm-reg-left-content h3 {
    font-size: 24px;
  }

  .rm-auth-header-modern h2 {
    font-size: 20px;
  }

  .rm-reg-features {
    grid-template-columns: 1fr;
  }

  .rm-button-modern {
    padding: 12px;
    font-size: 14px;
  }
}

/* Pagination Styles */
.rm-pagination {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.rm-pagination ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 8px;
  background: #fff;
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--rm-border);
}

.rm-pagination li {
  margin: 0;
}

.rm-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 6px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.rm-pagination a.page-numbers:hover {
  background: #f1f5f9;
  color: var(--rm-primary);
  border-color: var(--rm-border);
}

.rm-pagination .page-numbers.current {
  background: var(--rm-primary);
  color: #fff;
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.2);
}

.rm-pagination .page-numbers.prev,
.rm-pagination .page-numbers.next {
  padding: 0 16px;
}

.rm-pagination .dots {
  color: #94a3b8;
  border: none;
  background: transparent;
}

/* ═══════════════════════════════════════════════════════
   RESELLER HOMEPAGE (rmhp-*)
   Colour palette reuses the plugin's CSS custom properties
   ═══════════════════════════════════════════════════════ */

/* ── Reset / base ── */
.rmhp-body {
  margin: 0;
  background: #f8fafc;
  color: var(--rm-text, #0f172a);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
}

.rmhp-body * {
  box-sizing: border-box;
}

.rmhp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Shared section wrapper ── */
.rmhp-section {
  padding: 80px 0;
}

/* ── Section header ── */
.rmhp-section-header {
  text-align: center;
  margin-bottom: 52px;
}

.rmhp-section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rm-primary, #005b4e);
  background: rgba(0, 91, 78, .08);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.rmhp-section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--rm-text, #0f172a);
  margin: 0 0 12px;
  line-height: 1.2;
}

.rmhp-section-sub {
  color: var(--rm-muted, #64748b);
  font-size: 15px;
  max-width: 520px;
  margin: 0 auto;
}

.rmhp-title-left {
  text-align: left;
}

.rmhp-section-sub-left {
  margin: 0 0 28px;
}

.rmhp-text-accent {
  color: var(--rm-accent, #f59e0b);
}

/* ── Buttons ── */
.rmhp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
  white-space: nowrap;
}

.rmhp-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.rmhp-btn-primary {
  background: var(--rm-primary, #005b4e);
  color: #fff;
  border-color: var(--rm-primary, #005b4e);
}

.rmhp-btn-primary:hover {
  background: var(--rm-primary-dark, #004d40);
  border-color: var(--rm-primary-dark, #004d40);
  color: #fff;
  text-decoration: none;
}

.rmhp-btn-outline {
  background: transparent;
  color: var(--rm-primary, #005b4e);
  border-color: var(--rm-primary, #005b4e);
}

.rmhp-btn-outline:hover {
  background: var(--rm-primary, #005b4e);
  color: #fff;
  text-decoration: none;
}

.rmhp-btn-ghost {
  background: transparent;
  color: var(--rm-text, #0f172a);
  border-color: var(--rm-border, #e2e8f0);
}

.rmhp-btn-ghost:hover {
  background: #f1f5f9;
  text-decoration: none;
  color: var(--rm-text, #0f172a);
}

/* ── Colour helpers (icon backgrounds) ── */
.rmhp-icon-bg-teal {
  background: rgba(0, 91, 78, .1);
  color: var(--rm-primary, #005b4e);
}

.rmhp-icon-bg-amber {
  background: rgba(245, 158, 11, .12);
  color: #d97706;
}

.rmhp-icon-bg-purple {
  background: rgba(139, 92, 246, .12);
  color: #7c3aed;
}

.rmhp-icon-bg-green {
  background: rgba(16, 185, 129, .12);
  color: #059669;
}

.rmhp-icon-bg-blue {
  background: rgba(59, 130, 246, .12);
  color: #2563eb;
}

.rmhp-icon-bg-pink {
  background: rgba(236, 72, 153, .12);
  color: #db2777;
}

.rmhp-icon-bg-orange {
  background: rgba(249, 115, 22, .12);
  color: #ea580c;
}

.rmhp-icon-bg-indigo {
  background: rgba(99, 102, 241, .12);
  color: #4f46e5;
}

/* ── Header ── */
.rmhp-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rm-border, #e2e8f0);
  box-shadow: 0 1px 8px rgba(15, 23, 42, .05);
}

.rmhp-header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.rmhp-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.rmhp-logo-img {
  height: 40px;
  width: auto;
}

.rmhp-logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--rm-primary, #005b4e);
  letter-spacing: -.02em;
}

.rmhp-nav {
  margin: 0 auto;
}

.rmhp-nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rmhp-nav-cta-item {
  display: none;
}

.rmhp-nav-link {
  display: block;
  padding: 7px 13px;
  font-size: 14px;
  font-weight: 600;
  color: var(--rm-muted, #64748b);
  text-decoration: none;
  border-radius: 8px;
  transition: color .2s, background .2s;
}

.rmhp-nav-link:hover,
.rmhp-nav-link.rmhp-nav-active {
  color: var(--rm-primary, #005b4e);
  background: rgba(0, 91, 78, .07);
  text-decoration: none;
}

.rmhp-header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.rmhp-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.rmhp-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--rm-text, #0f172a);
  border-radius: 2px;
  transition: all .3s;
}

/* ── Hero ── */
.rmhp-hero {
  position: relative;
  background: linear-gradient(135deg, var(--rm-primary, #005b4e) 0%, #007a68 50%, #004d40 100%);
  padding: 80px 0 40px;
  overflow: hidden;
}

.rmhp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

.rmhp-hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
}

.rmhp-hero-content {
  flex: 1;
  color: #fff;
}

.rmhp-badge {
  display: inline-block;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, .2);
}

.rmhp-hero-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 20px;
  color: #fff;
}

.rmhp-hero-title .rmhp-text-accent {
  color: var(--rm-accent, #f59e0b);
}

.rmhp-hero-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, .85);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.rmhp-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.rmhp-hero .rmhp-btn-outline {
  border-color: #fff;
  color: #fff;
}

.rmhp-hero .rmhp-btn-outline:hover {
  background: #fff;
  color: var(--rm-primary, #005b4e);
}

.rmhp-hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
}

.rmhp-hero-stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, .25);
}

.rmhp-stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.rmhp-stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, .7);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.rmhp-hero-visual {
  flex: 0 0 340px;
  position: relative;
}

.rmhp-hero-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  padding: 16px 20px;
  color: #fff;
  margin-bottom: 14px;
}

.rmhp-hcard-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rmhp-hcard-icon svg {
  width: 22px;
  height: 22px;
}

.rmhp-icon-green {
  background: rgba(16, 185, 129, .25);
  color: #6ee7b7;
}

.rmhp-icon-amber {
  background: rgba(245, 158, 11, .25);
  color: #fcd34d;
}

.rmhp-icon-teal {
  background: rgba(255, 255, 255, .2);
  color: #fff;
}

.rmhp-hcard-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 2px;
}

.rmhp-hcard-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, .7);
  margin: 0;
}

.rmhp-hero-wave {
  line-height: 0;
  margin-top: 40px;
}

.rmhp-hero-wave svg {
  display: block;
  width: 100%;
}

/* ── About ── */
.rmhp-about {
  background: #f8fafc;
}

.rmhp-about-inner {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.rmhp-about-content {
  flex: 1;
}

.rmhp-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.rmhp-about-card {
  display: flex;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--rm-border, #e2e8f0);
  border-radius: 14px;
  padding: 16px 18px;
  transition: box-shadow .2s, transform .2s;
}

.rmhp-about-card:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, .07);
  transform: translateY(-2px);
}

.rmhp-about-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rmhp-about-card-icon svg {
  width: 22px;
  height: 22px;
}

.rmhp-about-card h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--rm-text, #0f172a);
}

.rmhp-about-card p {
  font-size: 13px;
  color: var(--rm-muted, #64748b);
  margin: 0;
  line-height: 1.5;
}

.rmhp-about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.rmhp-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--rm-muted, #64748b);
  background: #fff;
  border: 1px solid var(--rm-border, #e2e8f0);
  border-radius: 20px;
  padding: 5px 14px;
}

.rmhp-trust-badge svg {
  width: 14px;
  height: 14px;
  color: var(--rm-primary, #005b4e);
}

.rmhp-about-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.rmhp-about-count {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--rm-muted, #64748b);
}

.rmhp-about-count svg {
  width: 16px;
  height: 16px;
  color: var(--rm-primary, #005b4e);
}

.rmhp-about-visual {
  flex: 0 0 380px;
}

.rmhp-about-img-wrap {
  position: relative;
}

.rmhp-about-img-placeholder {
  background: linear-gradient(135deg, #e8f5f3 0%, #d4eee9 100%);
  border: 2px dashed rgba(0, 91, 78, .2);
  border-radius: 20px;
  height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--rm-muted, #64748b);
  font-size: 13px;
  font-weight: 600;
}

.rmhp-about-img-placeholder svg {
  width: 48px;
  height: 48px;
  color: var(--rm-primary, #005b4e);
  opacity: .5;
}

.rmhp-about-floating {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.rmhp-about-floating svg {
  width: 18px;
  height: 18px;
}

.rmhp-floating-1 {
  bottom: -16px;
  left: -20px;
  flex-direction: column;
  gap: 2px;
}

.rmhp-floating-num {
  font-size: 22px;
  font-weight: 900;
  color: var(--rm-primary, #005b4e);
  line-height: 1;
}

.rmhp-floating-txt {
  font-size: 11px;
  color: var(--rm-muted, #64748b);
  font-weight: 600;
}

.rmhp-floating-2 {
  top: 20px;
  right: -16px;
  color: var(--rm-text, #0f172a);
}

/* ── Advantages ── */
.rmhp-advantages {
  background: #fff;
}

.rmhp-adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.rmhp-adv-card {
  background: #fff;
  border: 1px solid var(--rm-border, #e2e8f0);
  border-radius: 18px;
  padding: 28px 24px;
  transition: box-shadow .25s, transform .25s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rmhp-adv-card:hover {
  box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
  transform: translateY(-4px);
}

.rmhp-adv-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rmhp-adv-icon svg {
  width: 24px;
  height: 24px;
}

.rmhp-adv-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--rm-text, #0f172a);
  margin: 0;
}

.rmhp-adv-desc {
  font-size: 13px;
  color: var(--rm-muted, #64748b);
  margin: 0;
  line-height: 1.6;
  flex: 1;
}

.rmhp-adv-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  align-self: flex-start;
}

.rmhp-badge-teal {
  background: rgba(0, 91, 78, .1);
  color: var(--rm-primary, #005b4e);
}

.rmhp-badge-amber {
  background: rgba(245, 158, 11, .12);
  color: #d97706;
}

.rmhp-badge-purple {
  background: rgba(139, 92, 246, .12);
  color: #7c3aed;
}

.rmhp-badge-green {
  background: rgba(16, 185, 129, .12);
  color: #059669;
}

.rmhp-badge-blue {
  background: rgba(59, 130, 246, .12);
  color: #2563eb;
}

.rmhp-badge-pink {
  background: rgba(236, 72, 153, .12);
  color: #db2777;
}

/* ── Categories ── */
.rmhp-categories {
  background: #f8fafc;
}

.rmhp-cat-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
}

.rmhp-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--rm-border, #e2e8f0);
  border-radius: 14px;
  padding: 20px 12px 16px;
  text-align: center;
  cursor: pointer;
  transition: box-shadow .2s, transform .2s, border-color .2s;
  text-decoration: none;
}

.rmhp-cat-item:hover {
  box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
  transform: translateY(-3px);
  border-color: var(--rm-primary, #005b4e);
}

.rmhp-cat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rmhp-cat-icon svg {
  width: 26px;
  height: 26px;
}

.rmhp-cat-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--rm-text, #0f172a);
  line-height: 1.3;
}

/* ── Company Info ── */
.rmhp-company-info {
  background: #fff;
}

.rmhp-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.rmhp-stat-card {
  background: #f8fafc;
  border: 1px solid var(--rm-border, #e2e8f0);
  border-radius: 18px;
  padding: 36px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: box-shadow .2s, transform .2s;
}

.rmhp-stat-card:hover {
  box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
  transform: translateY(-4px);
}

.rmhp-stat-icon {
  width: 52px;
  height: 52px;
  background: rgba(0, 91, 78, .1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rm-primary, #005b4e);
}

.rmhp-stat-icon svg {
  width: 26px;
  height: 26px;
}

.rmhp-stat-value {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--rm-accent, #f59e0b);
  line-height: 1;
}

.rmhp-stat-lbl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--rm-muted, #64748b);
}

/* ── Services ── */
.rmhp-services {
  background: #f8fafc;
}

.rmhp-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.rmhp-svc-card {
  background: #fff;
  border: 1px solid var(--rm-border, #e2e8f0);
  border-radius: 18px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .25s, transform .25s;
}

.rmhp-svc-card:hover {
  box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
  transform: translateY(-4px);
}

.rmhp-svc-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rmhp-svc-icon svg {
  width: 24px;
  height: 24px;
}

.rmhp-svc-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--rm-text, #0f172a);
  margin: 0;
}

.rmhp-svc-desc {
  font-size: 13px;
  color: var(--rm-muted, #64748b);
  margin: 0;
  line-height: 1.6;
  flex: 1;
}

.rmhp-svc-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--rm-primary, #005b4e);
  text-decoration: none;
  align-self: flex-start;
}

.rmhp-svc-link:hover {
  text-decoration: underline;
}

/* ── FAQ ── */
.rmhp-faq {
  background: #fff;
}

.rmhp-faq-list {
  max-width: 780px;
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rmhp-faq-item {
  background: #f8fafc;
  border: 1px solid var(--rm-border, #e2e8f0);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow .2s;
}

.rmhp-faq-item.rmhp-faq-open {
  box-shadow: 0 4px 16px rgba(15, 23, 42, .06);
  border-color: var(--rm-primary, #005b4e);
}

.rmhp-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  padding: 18px 20px;
  cursor: pointer;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  color: var(--rm-text, #0f172a);
}

.rmhp-faq-chevron {
  flex-shrink: 0;
  transition: transform .25s;
}

.rmhp-faq-chevron svg {
  width: 18px;
  height: 18px;
  display: block;
}

.rmhp-faq-open .rmhp-faq-chevron {
  transform: rotate(180deg);
}

.rmhp-faq-answer {
  padding: 0 20px 18px;
}

.rmhp-faq-answer[hidden] {
  display: none;
}

.rmhp-faq-answer p {
  margin: 0;
  font-size: 14px;
  color: var(--rm-muted, #64748b);
  line-height: 1.7;
}

.rmhp-faq-cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.rmhp-faq-cta p {
  margin: 0;
  color: var(--rm-muted, #64748b);
  font-size: 15px;
}

/* ── Footer ── */
.rmhp-footer {
  background: #0f172a;
  color: #cbd5e1;
}

.rmhp-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr 1fr;
  gap: 40px;
  padding: 60px 0 40px;
}

.rmhp-footer .rmhp-logo-text {
  color: #fff;
}

.rmhp-footer .rmhp-logo-img {
  filter: brightness(0) invert(1);
}

.rmhp-footer-tagline {
  font-size: 13px;
  color: #94a3b8;
  margin: 14px 0 20px;
  line-height: 1.6;
}

.rmhp-footer-social {
  display: flex;
  gap: 10px;
}

.rmhp-social-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.rmhp-social-link svg {
  width: 16px;
  height: 16px;
}

.rmhp-social-link:hover {
  background: var(--rm-primary, #005b4e);
  color: #fff;
  text-decoration: none;
}

.rmhp-footer-col-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #fff;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--rm-accent, #f59e0b);
  display: inline-block;
}

.rmhp-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rmhp-footer-links a {
  font-size: 13px;
  color: #94a3b8;
  text-decoration: none;
  transition: color .2s;
}

.rmhp-footer-links a:hover {
  color: #fff;
  text-decoration: none;
}

.rmhp-footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rmhp-footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #94a3b8;
}

.rmhp-footer-contact svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 1px;
}

.rmhp-footer-follow {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rmhp-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .2s;
}

.rmhp-follow-btn svg {
  width: 16px;
  height: 16px;
}

.rmhp-follow-fb {
  background: #1877f2;
  color: #fff;
}

.rmhp-follow-fb:hover {
  opacity: .85;
  text-decoration: none;
  color: #fff;
}

.rmhp-footer-bar {
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding: 16px 0;
}

.rmhp-footer-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #64748b;
}

.rmhp-footer-dev a {
  color: var(--rm-accent, #f59e0b);
  text-decoration: none;
  font-weight: 700;
}

.rmhp-footer-dev a:hover {
  text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 1100px) {

  .rmhp-adv-grid,
  .rmhp-stats-grid,
  .rmhp-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rmhp-cat-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .rmhp-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .rmhp-about-visual {
    flex: 0 0 300px;
  }
}

@media (max-width: 820px) {
  .rmhp-hero-inner {
    flex-direction: column;
    gap: 40px;
  }

  .rmhp-hero-visual {
    flex: none;
    width: 100%;
  }

  .rmhp-hero-title {
    font-size: 2.2rem;
  }

  .rmhp-about-inner {
    flex-direction: column;
  }

  .rmhp-about-visual {
    flex: none;
    width: 100%;
  }

  .rmhp-about-grid {
    grid-template-columns: 1fr;
  }

  .rmhp-nav {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--rm-border, #e2e8f0);
    padding: 16px 24px;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
  }

  .rmhp-nav.rmhp-nav-open {
    display: block;
  }

  .rmhp-nav-list {
    flex-direction: column;
    gap: 4px;
  }

  .rmhp-nav-cta-item {
    display: block;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--rm-border, #e2e8f0);
  }

  .rmhp-nav-cta-item:first-of-type {
    margin-top: 12px;
  }

  .rmhp-nav-link-primary {
    background: var(--rm-primary, #005b4e);
    color: #fff !important;
    border-radius: 8px;
    text-align: center;
    margin-top: 4px;
  }

  .rmhp-header-cta {
    display: none;
  }

  .rmhp-hamburger {
    display: flex;
  }
}

@media (max-width: 640px) {
  .rmhp-section {
    padding: 52px 0;
  }

  .rmhp-adv-grid,
  .rmhp-stats-grid,
  .rmhp-services-grid {
    grid-template-columns: 1fr;
  }

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

  .rmhp-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 28px;
  }

  .rmhp-footer-bar-inner {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .rmhp-hero-stats {
    flex-direction: column;
    align-items: flex-start;
  }

  .rmhp-hero-stat-divider {
    width: 40px;
    height: 1px;
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   404 PAGE STYLES
   ────────────────────────────────────────────────────────────────────────── */

.rm-404-body {
  background: var(--rm-bg);
}

.rm-404-main {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  overflow: hidden;
}

.rm-404-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.rm-404-visual {
  position: relative;
  margin-bottom: -40px;
  z-index: 1;
}

.rm-404-title {
  font-size: clamp(8rem, 20vw, 15rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--rm-primary) 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin: 0;
  filter: drop-shadow(0 20px 30px rgba(0, 91, 78, 0.2));
  animation: rm-float 6s ease-in-out infinite;
}

.rm-404-blob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 91, 78, 0.1) 0%, rgba(16, 185, 129, 0) 70%);
  border-radius: 50%;
  z-index: -1;
  animation: rm-pulse 4s ease-in-out infinite;
}

.rm-404-blob-alt {
  position: absolute;
  top: 40%;
  left: 60%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.05) 0%, rgba(245, 158, 11, 0) 70%);
  border-radius: 50%;
  z-index: -1;
  animation: rm-pulse 5s ease-in-out infinite reverse;
}

.rm-404-text-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  padding: 60px 40px 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 2;
}

.rm-404-text-card h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--rm-text);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.rm-404-text-card p {
  font-size: 1.125rem;
  color: var(--rm-muted);
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.rm-404-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.rm-404-actions .rmhp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-weight: 600;
}

@keyframes rm-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes rm-pulse {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.8;
  }
}

@media (max-width: 768px) {
  .rm-404-text-card {
    padding: 40px 24px 32px;
    margin: 0 20px;
  }

  .rm-404-text-card h2 {
    font-size: 1.75rem;
  }

  .rm-404-text-card p {
    font-size: 1rem;
  }
}

/* Responsive Tables Refactor for Mobile/Tablet */
@media (max-width: 768px) {

  .rm-table,
  .rm-enriched-table:not(.rm-orders-table) {
    display: block;
    width: 100%;
  }

  .rm-table thead,
  .rm-enriched-table:not(.rm-orders-table) thead {
    display: none;
  }

  .rm-table tbody,
  .rm-enriched-table:not(.rm-orders-table) tbody {
    display: block;
    width: 100%;
  }

  .rm-table tr,
  .rm-enriched-table:not(.rm-orders-table) tr {
    display: block;
    margin-bottom: 16px;
    background: #fff;
    border: 1px solid var(--rm-border) !important;
    border-radius: 8px;
    padding: 12px;
  }

  .rm-table td,
  .rm-enriched-table:not(.rm-orders-table) td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0 !important;
    border-bottom: 1px solid var(--rm-bg);
    text-align: right;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .rm-table td:last-child,
  .rm-enriched-table:not(.rm-orders-table) td:last-child {
    border-bottom: none;
  }

  .rm-table td::before,
  .rm-enriched-table:not(.rm-orders-table) td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--rm-muted);
    text-align: left;
    margin-right: 16px;
  }

  .rm-enriched-table:not(.rm-orders-table) td .rm-customer-name,
  .rm-enriched-table:not(.rm-orders-table) td .rm-customer-phone-badge,
  .rm-enriched-table:not(.rm-orders-table) td .rm-customer-address,
  .rm-enriched-table:not(.rm-orders-table) td .rm-customer-order-id,
  .rm-enriched-table:not(.rm-orders-table) td .rm-details-grid {
    text-align: right;
    justify-content: flex-end;
    align-items: flex-end;
  }

  .rm-orders-controls .rm-filter-group {
    flex-direction: column;
    align-items: stretch;
  }

  .rm-orders-controls .rm-filter-group>* {
    width: 100%;
    margin-bottom: 8px;
  }

  .rm-orders-controls .rm-filter-group .rm-search-wrapper {
    width: 100%;
  }

  .rm-orders-controls .rm-input-search {
    width: 100%;
    box-sizing: border-box;
  }
}

.rm-order-summary {
  background: var(--rm-bg);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.rm-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

@media (max-width: 640px) {
  .rm-summary-row {
    flex-wrap: wrap;
    gap: 8px;
  }
}