/* Rate Comparison hub — black + yellow, professional */
:root {
  --rp-bg: #f5f5f3;
  --rp-cyan: #f5c400;
  --rp-mint: #f5c400;
  --rp-violet: #f5c400;
  --rp-border: #e5e5e0;
}

body.rate-portal-theme {
  font-family: "DM Sans", "Inter", system-ui, sans-serif !important;
  background: #f5f5f3 !important;
  background-image: none !important;
  color: #171717 !important;
  position: relative;
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
}

body.rate-portal-theme::before,
body.rate-portal-theme::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body.rate-portal-theme::before {
  display: none !important;
  background: none !important;
}

body.rate-portal-theme::after {
  display: none !important;
  background: none !important;
}

body.rate-portal-theme .sidebar-wrapper {
  position: relative;
  z-index: 1000;
}

body.rate-portal-theme .rc-flash-strip {
  position: relative;
  z-index: 2;
}

@media (min-width: 992px) {
  body.rate-portal-theme .rc-flash-strip {
    margin-left: 260px;
    width: calc(100% - 260px);
    max-width: calc(100% - 260px);
  }
}

body.rate-portal-theme .main-content {
  flex: 1 0 auto;
  min-width: 0;
  position: relative;
  z-index: 2;
}

/* Sidebar */
body.rate-portal-theme .sidebar {
  background: rgba(6, 10, 14, 0.92) !important;
  backdrop-filter: blur(18px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
  border-right: 1px solid var(--rp-border) !important;
  box-shadow: 8px 0 40px rgba(0, 0, 0, 0.45) !important;
}

body.rate-portal-theme .sidebar-header {
  border-bottom: 1px solid var(--rp-border) !important;
  align-items: center !important;
  gap: 0.75rem;
}

body.rate-portal-theme .rc-brand-stack {
  min-width: 0;
  flex: 1;
}

body.rate-portal-theme .rc-eyebrow {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(34, 211, 238, 0.95);
  margin-bottom: 0.25rem;
}

body.rate-portal-theme .sidebar-brand {
  color: #f5f5f5 !important;
  font-family: Inter, "DM Sans", system-ui, sans-serif !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  line-height: 1.25;
  gap: 0.5rem !important;
}

body.rate-portal-theme .sidebar-brand .sidebar-brand-text {
  background: none;
  color: #f5f5f5 !important;
  -webkit-text-fill-color: #f5f5f5;
  font-family: Inter, "DM Sans", system-ui, sans-serif !important;
}

body.rate-portal-theme .sidebar-brand i {
  color: var(--rp-cyan) !important;
  filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.45));
  -webkit-text-fill-color: var(--rp-cyan);
}

body.rate-portal-theme .sidebar-toggle {
  color: #f5f5f5 !important;
  border-radius: 0.5rem;
  padding: 0.35rem 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--rp-border);
}

body.rate-portal-theme .sidebar-divider {
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.25), transparent) !important;
  height: 1px;
  border: none;
}

body.rate-portal-theme .sidebar-link {
  margin: 0.15rem 0.65rem !important;
  padding: 0.55rem 1rem !important;
  border-radius: 999px !important;
  border-left: none !important;
  color: #d4d4d8 !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid transparent !important;
}

body.rate-portal-theme .sidebar-link:hover {
  background: rgba(34, 211, 238, 0.12) !important;
  color: #fff !important;
  border-color: rgba(34, 211, 238, 0.25) !important;
}

body.rate-portal-theme .sidebar-link.active {
  background: rgba(34, 211, 238, 0.18) !important;
  color: #fff !important;
  border-color: rgba(52, 211, 153, 0.45) !important;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.12);
}

body.rate-portal-theme .sidebar-footer {
  border-top: 1px solid var(--rp-border) !important;
  background: rgba(0, 0, 0, 0.2);
}

body.rate-portal-theme .sidebar-user {
  color: #a1a1aa !important;
}

body.rate-portal-theme .sidebar-mobile-toggle {
  background: rgba(6, 10, 14, 0.9) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(34, 211, 238, 0.35) !important;
  color: var(--rp-cyan) !important;
  border-radius: 0.65rem !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

body.rate-portal-theme .sidebar-overlay {
  background: rgba(0, 0, 0, 0.72) !important;
  backdrop-filter: blur(6px) !important;
}

body.rate-portal-theme .sidebar.show {
  box-shadow: 4px 0 32px rgba(0, 0, 0, 0.55);
}

/* Page titles */
body.rate-portal-theme .responsive-heading {
  font-family: Inter, "DM Sans", system-ui, sans-serif !important;
  font-weight: 700 !important;
  background: none !important;
  -webkit-text-fill-color: #f5f5f5 !important;
  color: #f5f5f5 !important;
}

body.rate-portal-theme .responsive-heading i {
  -webkit-text-fill-color: #f5c400;
  color: #f5c400 !important;
  filter: none;
}

body.rate-portal-theme .text-muted {
  color: #a1a1aa !important;
}

/* Cards (layer on existing style.css) */
body.rate-portal-theme .card {
  background: rgba(10, 14, 22, 0.55) !important;
  backdrop-filter: blur(16px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(140%) !important;
  border: 1px solid var(--rp-border) !important;
  border-radius: 1.1rem !important;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

body.rate-portal-theme .card:hover {
  border-color: rgba(34, 211, 238, 0.28) !important;
}

body.rate-portal-theme .card-header {
  background: rgba(0, 0, 0, 0.35) !important;
  border-bottom: 1px solid var(--rp-border) !important;
  color: #f4f4f5 !important;
}

/* Forms */
body.rate-portal-theme .form-control,
body.rate-portal-theme .form-select {
  background: rgba(0, 0, 0, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #f4f4f5 !important;
  border-radius: 0.65rem !important;
}

body.rate-portal-theme .form-control:focus,
body.rate-portal-theme .form-select:focus {
  border-color: rgba(34, 211, 238, 0.5) !important;
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.12) !important;
}

body.rate-portal-theme .form-label {
  color: #f5f5f5 !important;
}

/* Primary actions */
body.rate-portal-theme .btn-primary {
  background: #f5c400 !important;
  border: none !important;
  font-weight: 600 !important;
  border-radius: 0.65rem !important;
  box-shadow: none;
  color: #ffffff !important;
}

body.rate-portal-theme .btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

body.rate-portal-theme .btn-outline-danger {
  border-color: rgba(251, 113, 133, 0.5) !important;
  color: #fda4af !important;
}

body.rate-portal-theme .btn-outline-danger:hover {
  background: rgba(251, 113, 133, 0.15) !important;
  color: #fff !important;
}

/* Dashboard clear: stay above decorative card layers so clicks always register */
body.rate-portal-theme .js-dashboard-clear-btn {
  position: relative;
  z-index: 6;
  pointer-events: auto;
}

/* Tables / list groups */
body.rate-portal-theme .table {
  --bs-table-color: #e4e4e7;
  color: #f5f5f5 !important;
}

body.rate-portal-theme .list-group-item {
  background: rgba(0, 0, 0, 0.2) !important;
  border-color: var(--rp-border) !important;
  color: #f5f5f5 !important;
}

/* Footer */
body.rate-portal-theme .footer {
  position: relative;
  z-index: 2;
  background: #ffffff !important;
  backdrop-filter: none !important;
  border-top: 1px solid var(--rp-border) !important;
  box-shadow: none !important;
}

body.rate-portal-theme .footer .text-muted {
  color: #171717 !important;
}

/* Alerts */
body.rate-portal-theme .alert {
  border-radius: 0.75rem !important;
  border: 1px solid var(--rp-border) !important;
}

/* ---------- Page chrome (dashboard + hub content) ---------- */
body.rate-portal-theme .rp-eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(52, 211, 153, 0.95);
}

body.rate-portal-theme .rp-section-title {
  font-family: "Syne", "DM Sans", sans-serif;
  font-weight: 700;
  color: #f8fafc !important;
  letter-spacing: -0.02em;
}

body.rate-portal-theme .rp-section-title i {
  color: var(--rp-cyan);
  opacity: 0.95;
}

body.rate-portal-theme .rp-section-title--sm {
  font-size: 1.05rem;
}

/* Stat tiles (replaces flat bg-primary / success / info) */
body.rate-portal-theme .rp-stat-card,
body.rate-portal-theme .rp-stat-tile {
  position: relative;
  overflow: hidden;
  color: #f8fafc !important;
  border-radius: 1.05rem !important;
}

body.rate-portal-theme .rp-stat-card::after {
  display: none !important;
  content: none !important;
  height: 0 !important;
  background: none !important;
}

body.rate-portal-theme .rp-stat-card--cyan,
body.rate-portal-theme .rp-stat-card--mint,
body.rate-portal-theme .rp-stat-card--violet {
  --rp-stat-accent: #f5c400;
  background: linear-gradient(165deg, rgba(245, 196, 0, 0.16), rgba(6, 10, 16, 0.92)) !important;
  border: 1px solid rgba(245, 196, 0, 0.28) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 48px rgba(245, 196, 0, 0.06);
}

body.rate-portal-theme .rp-stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.55) !important;
}

body.rate-portal-theme .rp-stat-value {
  font-family: "Syne", "DM Sans", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff !important;
  line-height: 1.1;
}

/* Quick action tiles */
body.rate-portal-theme .rp-tile-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 1.2rem 0.65rem;
  min-height: 108px;
  border-radius: 1rem;
  font-weight: 600;
  font-size: 0.82rem;
  line-height: 1.25;
  text-align: center;
  color: #f8fafc !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

body.rate-portal-theme .rp-tile-btn:hover {
  transform: translateY(-4px);
  color: #fff !important;
  background: rgba(255, 255, 255, 0.07) !important;
}

body.rate-portal-theme .rp-tile-btn__icon {
  font-size: 1.45rem;
  line-height: 1;
}

body.rate-portal-theme .rp-tile-btn--cyan {
  border-color: rgba(34, 211, 238, 0.35) !important;
}

body.rate-portal-theme .rp-tile-btn--cyan:hover {
  border-color: rgba(34, 211, 238, 0.55) !important;
  box-shadow: 0 16px 40px rgba(34, 211, 238, 0.12);
}

body.rate-portal-theme .rp-tile-btn--cyan .rp-tile-btn__icon {
  color: #22d3ee;
}

body.rate-portal-theme .rp-tile-btn--mint {
  border-color: rgba(52, 211, 153, 0.35) !important;
}

body.rate-portal-theme .rp-tile-btn--mint:hover {
  border-color: rgba(52, 211, 153, 0.55) !important;
  box-shadow: 0 16px 40px rgba(52, 211, 153, 0.12);
}

body.rate-portal-theme .rp-tile-btn--mint .rp-tile-btn__icon {
  color: #34d399;
}

body.rate-portal-theme .rp-tile-btn--sky {
  border-color: rgba(56, 189, 248, 0.35) !important;
}

body.rate-portal-theme .rp-tile-btn--sky:hover {
  border-color: rgba(56, 189, 248, 0.55) !important;
  box-shadow: 0 16px 40px rgba(56, 189, 248, 0.12);
}

body.rate-portal-theme .rp-tile-btn--sky .rp-tile-btn__icon {
  color: #38bdf8;
}

body.rate-portal-theme .rp-tile-btn--amber {
  border-color: rgba(251, 191, 36, 0.38) !important;
}

body.rate-portal-theme .rp-tile-btn--amber:hover {
  border-color: rgba(251, 191, 36, 0.6) !important;
  box-shadow: 0 16px 40px rgba(251, 191, 36, 0.1);
}

body.rate-portal-theme .rp-tile-btn--amber .rp-tile-btn__icon {
  color: #fbbf24;
}

/* Soft alerts */
body.rate-portal-theme .rp-alert-glass {
  background: rgba(34, 211, 238, 0.08) !important;
  border: 1px solid rgba(34, 211, 238, 0.28) !important;
  color: #e0f2fe !important;
  border-radius: 0.85rem !important;
}

body.rate-portal-theme .rp-alert-glass--warn {
  background: rgba(250, 204, 21, 0.08) !important;
  border-color: rgba(250, 204, 21, 0.35) !important;
  color: #fef9c3 !important;
}

/* Modal */
body.rate-portal-theme .rp-modal-glass {
  background: rgba(8, 10, 18, 0.94) !important;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(34, 211, 238, 0.22) !important;
  border-radius: 1.2rem !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

body.rate-portal-theme .rp-modal-glass__header {
  border-bottom: 1px solid var(--rp-border) !important;
}

body.rate-portal-theme .rp-modal-glass__footer {
  border-top: 1px solid var(--rp-border) !important;
}

/* Hub: soften remaining neon Bootstrap buttons on feature pages */
body.rate-portal-theme .main-content .btn-success {
  background: #f5c400 !important;
  border: none !important;
  font-weight: 600 !important;
  border-radius: 0.65rem !important;
  color: #fff !important;
}

body.rate-portal-theme .main-content .btn-info {
  background: #f5c400 !important;
  border: none !important;
  font-weight: 600 !important;
  border-radius: 0.65rem !important;
  color: #fff !important;
}

body.rate-portal-theme .main-content .btn-warning {
  background: #f5c400 !important;
  border: none !important;
  font-weight: 600 !important;
  border-radius: 0.65rem !important;
  color: #fff !important;
}

body.rate-portal-theme .main-content .btn-secondary {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid var(--rp-border) !important;
  color: #f5f5f5 !important;
}

body.rate-portal-theme .main-content .btn-danger {
  background: #f5c400 !important;
  border: none !important;
  font-weight: 600 !important;
  color: #fff !important;
}

/* Badges in activity list — less flat */
body.rate-portal-theme .main-content .badge.bg-primary {
  background: #f5c400 !important;
  color: #ffffff !important;
  border: 1px solid #f5c400;
  font-weight: 600;
}

body.rate-portal-theme .main-content .badge.bg-success {
  background: #f5c400 !important;
  color: #ffffff !important;
  border: 1px solid #f5c400;
}

body.rate-portal-theme .main-content .badge.bg-info {
  background: #f5c400 !important;
  color: #ffffff !important;
  border: 1px solid #f5c400;
}

body.rate-portal-theme .main-content .badge.bg-warning {
  background: #f5c400 !important;
  color: #ffffff !important;
  border: 1px solid #f5c400;
}

body.rate-portal-theme .main-content .badge.bg-secondary {
  background: rgba(148, 163, 184, 0.2) !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

body.rate-portal-theme .main-content .badge.bg-dark {
  background: rgba(15, 23, 42, 0.85) !important;
  color: #f1f5f9 !important;
  border: 1px solid var(--rp-border);
}

/* Outline buttons on activity rows */
body.rate-portal-theme .main-content .btn-outline-secondary {
  border-radius: 0.55rem !important;
  font-weight: 600 !important;
}

/* ---------- Compact professional tool layout ---------- */
body.rate-portal-theme .main-content .responsive-heading {
  font-size: 1.35rem;
  margin-bottom: 0.35rem !important;
}

body.rate-portal-theme .rp-page-lead {
  font-size: 0.82rem;
  color: #a1a1aa !important;
  margin-bottom: 0;
}

body.rate-portal-theme .rp-tool-card > .card-body {
  padding: 1rem 1.15rem !important;
}

body.rate-portal-theme .rp-form-panel {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--rp-border);
  border-radius: 0.65rem;
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.85rem;
}

body.rate-portal-theme .rp-form-panel__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #71717a;
  margin-bottom: 0.55rem;
}

body.rate-portal-theme .rp-form-panel .form-label {
  font-size: 0.78rem;
  margin-bottom: 0.3rem;
}

body.rate-portal-theme .rp-form-panel .form-control,
body.rate-portal-theme .rp-form-panel .form-select {
  font-size: 0.82rem;
  padding: 0.38rem 0.65rem;
}

body.rate-portal-theme .rp-form-hint {
  font-size: 0.72rem;
  color: #71717a !important;
  margin-top: 0.35rem;
}

body.rate-portal-theme .rp-form-divider {
  border-color: rgba(255, 255, 255, 0.06) !important;
  margin: 0.75rem 0;
}

body.rate-portal-theme .rp-section-heading {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e4e4e7;
  margin-bottom: 0.65rem;
}

body.rate-portal-theme .rp-section-heading i {
  color: var(--rp-cyan);
  font-size: 0.8rem;
}

body.rate-portal-theme .main-content .btn-primary.btn-lg,
body.rate-portal-theme .main-content .btn-primary.rp-submit-btn {
  font-size: 0.82rem;
  padding: 0.45rem 1.1rem;
  border-radius: 0.55rem;
}

/* Dashboard inline stat row */
body.rate-portal-theme .rp-summary-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

body.rate-portal-theme .rp-stat-card--inline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left !important;
  padding: 0 !important;
  background: rgba(0, 0, 0, 0.28) !important;
  border: 1px solid var(--rp-border) !important;
}

body.rate-portal-theme .rp-stat-card--inline .card-body {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem !important;
  width: 100%;
}

body.rate-portal-theme .rp-stat-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.6rem;
  font-size: 0.95rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.rate-portal-theme .rp-stat-card--cyan .rp-stat-card__icon,
body.rate-portal-theme .rp-stat-card--mint .rp-stat-card__icon,
body.rate-portal-theme .rp-stat-card--violet .rp-stat-card__icon,
body.rate-portal-theme .rp-stat-tile .rp-stat-card__icon {
  color: #0a0a0a;
  border-color: #f5c400;
  background: #f5c400;
}

body.rate-portal-theme .rp-stat-card--inline .rp-stat-value {
  font-size: 1.45rem;
  line-height: 1.1;
}

body.rate-portal-theme .rp-stat-card--inline .rp-stat-label {
  font-size: 0.65rem;
  margin-bottom: 0;
  margin-top: 0.1rem;
}

body.rate-portal-theme .rp-dashboard-card > .card-body {
  padding: 1rem 1.15rem !important;
}

body.rate-portal-theme .rp-activity-scroll {
  max-height: 18rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.15rem;
}

body.rate-portal-theme .rp-activity-scroll::-webkit-scrollbar {
  width: 3px;
}

body.rate-portal-theme .rp-activity-scroll::-webkit-scrollbar-thumb {
  background: #f5c400;
  border-radius: 999px;
}

body.rate-portal-theme .rp-activity-item {
  background: rgba(0, 0, 0, 0.22) !important;
  border: 1px solid var(--rp-border) !important;
  border-left: 3px solid var(--rp-activity-accent, var(--rp-cyan)) !important;
  border-radius: 0.6rem !important;
  margin-bottom: 0.5rem !important;
  padding: 0.65rem 0.85rem !important;
}

body.rate-portal-theme .rp-activity-item h6 {
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
}

body.rate-portal-theme .rp-activity-item p {
  font-size: 0.76rem;
  margin-bottom: 0.2rem !important;
}

body.rate-portal-theme .rp-activity-item small {
  font-size: 0.68rem;
}

body.rate-portal-theme .rp-activity-item .badge {
  font-size: 0.62rem !important;
  padding: 0.2rem 0.45rem !important;
}

/* Comparison results */
body.rate-portal-theme .rp-results-card {
  border: 1px solid rgba(34, 211, 238, 0.22) !important;
  border-radius: 0.75rem !important;
  overflow: hidden;
}

body.rate-portal-theme .rp-results-card__header {
  background: rgba(0, 0, 0, 0.35) !important;
  border-bottom: 1px solid var(--rp-border) !important;
  padding: 0.55rem 1rem !important;
}

body.rate-portal-theme .rp-results-card__header h6 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #f8fafc;
  margin: 0;
}

body.rate-portal-theme .rp-results-card__header i {
  color: var(--rp-cyan);
  font-size: 0.8rem;
}

body.rate-portal-theme .rp-results-card > .card-body {
  padding: 0.85rem 1rem !important;
}

body.rate-portal-theme .rp-result-banner {
  padding: 0.55rem 0.75rem;
  border-radius: 0.55rem;
  margin-bottom: 0.65rem;
  font-size: 0.8rem;
}

body.rate-portal-theme .rp-result-banner h6 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

body.rate-portal-theme .rp-result-banner p {
  margin-bottom: 0;
  font-size: 0.8rem;
}

body.rate-portal-theme .rp-chart-card {
  border: 1px solid var(--rp-border) !important;
  border-radius: 0.6rem !important;
  margin-bottom: 0.75rem !important;
  overflow: hidden;
}

body.rate-portal-theme .rp-chart-card .card-header {
  padding: 0.45rem 0.75rem !important;
  font-size: 0.78rem;
}

body.rate-portal-theme .rp-chart-card .card-body {
  padding: 0.5rem 0.65rem !important;
  max-height: 10rem;
}

body.rate-portal-theme .rp-tile-btn {
  padding: 0.65rem 0.5rem !important;
  min-height: 4.5rem;
}

body.rate-portal-theme .rp-tile-btn__icon {
  font-size: 1.15rem !important;
}

body.rate-portal-theme .rp-tile-btn__label {
  font-size: 0.72rem !important;
}

@media (max-width: 991.98px) {
  body.rate-portal-theme .rp-summary-stats {
    grid-template-columns: 1fr;
  }
}

/* Sub-pages: shared compact layout */
body.rate-portal-theme .main-content .btn-lg {
  font-size: 0.82rem !important;
  padding: 0.45rem 1.1rem !important;
  border-radius: 0.55rem !important;
}

body.rate-portal-theme .main-content .lead {
  font-size: 0.82rem;
  color: #a1a1aa !important;
}

body.rate-portal-theme .rp-form-check {
  font-size: 0.82rem;
}

body.rate-portal-theme .rp-form-check .form-check-input {
  margin-top: 0.2rem;
}

body.rate-portal-theme .rp-table-scroll {
  max-height: 220px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--rp-border);
  border-radius: 0.55rem;
  padding: 0.15rem;
}

body.rate-portal-theme .rp-table-scroll::-webkit-scrollbar {
  width: 3px;
  height: 3px;
}

body.rate-portal-theme .rp-table-scroll::-webkit-scrollbar-thumb {
  background: #f5c400;
  border-radius: 999px;
}

body.rate-portal-theme .rp-table-scroll .table {
  margin-bottom: 0;
  font-size: 0.75rem;
}

body.rate-portal-theme .rp-table-scroll .table th,
body.rate-portal-theme .rp-table-scroll .table td {
  padding: 0.35rem 0.5rem;
  vertical-align: middle;
}

body.rate-portal-theme .rp-mini-stat {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--rp-border);
  border-radius: 0.6rem;
  padding: 0.65rem 0.75rem;
  text-align: center;
}

body.rate-portal-theme .rp-mini-stat .rp-stat-value {
  font-size: 1.25rem;
  line-height: 1.1;
  margin-bottom: 0.1rem;
  color: #f4f4f5;
}

body.rate-portal-theme .rp-mini-stat .rp-stat-label {
  font-size: 0.65rem;
  margin: 0;
}

body.rate-portal-theme .rp-summary-stats--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.rate-portal-theme .rp-summary-stats--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.rate-portal-theme .rp-nav-tabs {
  border-bottom-color: var(--rp-border) !important;
}

body.rate-portal-theme .rp-nav-tabs .nav-link {
  font-size: 0.78rem;
  padding: 0.4rem 0.75rem;
  color: #a1a1aa;
  border-color: transparent !important;
}

body.rate-portal-theme .rp-nav-tabs .nav-link.active {
  color: #f4f4f5 !important;
  background: rgba(34, 211, 238, 0.08) !important;
  border-color: var(--rp-border) var(--rp-border) transparent !important;
}

body.rate-portal-theme .rp-preview-table-wrap .table {
  font-size: 0.75rem;
  margin-bottom: 0;
}

body.rate-portal-theme .rp-preview-table-wrap .table th,
body.rate-portal-theme .rp-preview-table-wrap .table td {
  padding: 0.35rem 0.5rem;
}

body.rate-portal-theme .rp-results-card .card-header.bg-primary,
body.rate-portal-theme .rp-results-card .card-header.bg-info {
  background: rgba(0, 0, 0, 0.35) !important;
  border-bottom: 1px solid var(--rp-border) !important;
  color: #f8fafc !important;
  padding: 0.55rem 1rem !important;
}

body.rate-portal-theme .rp-results-card .card-header h3,
body.rate-portal-theme .rp-results-card .card-header h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
}

body.rate-portal-theme .rp-result-avg-card {
  background: rgba(0, 0, 0, 0.22) !important;
  border: 1px solid var(--rp-border) !important;
  border-radius: 0.6rem !important;
}

body.rate-portal-theme .rp-result-avg-card .card-body {
  padding: 0.75rem !important;
}

body.rate-portal-theme .rp-result-avg-card h5 {
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
}

body.rate-portal-theme .rp-result-avg-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.15rem;
}

body.rate-portal-theme .rp-result-avg-card p {
  font-size: 0.72rem;
  margin: 0;
  color: #a1a1aa !important;
}

@media (max-width: 767.98px) {
  body.rate-portal-theme .rp-summary-stats--3,
  body.rate-portal-theme .rp-summary-stats--2 {
    grid-template-columns: 1fr;
  }
}

body.rate-portal-theme input[type="file"],
body.rate-portal-theme .form-control[type="file"] {
  accent-color: #f5c400;
}

body.rate-portal-theme input[type="file"]::file-selector-button,
body.rate-portal-theme input[type="file"]::-webkit-file-upload-button,
body.rate-portal-theme .form-control[type="file"]::file-selector-button,
body.rate-portal-theme .form-control[type="file"]::-webkit-file-upload-button {
  background: #f5c400 !important;
  background-color: #f5c400 !important;
  color: #0a0a0a !important;
  border: 1px solid #f5c400 !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  cursor: pointer;
}

body.rate-portal-theme input[type="file"]::file-selector-button:hover,
body.rate-portal-theme input[type="file"]::-webkit-file-upload-button:hover,
body.rate-portal-theme .form-control[type="file"]::file-selector-button:hover,
body.rate-portal-theme .form-control[type="file"]::-webkit-file-upload-button:hover {
  background: #d4a800 !important;
  background-color: #d4a800 !important;
  border-color: #d4a800 !important;
  color: #0a0a0a !important;
}

.rp-file-wrap,
body.rate-portal-theme .rp-file-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 42px;
}

.rp-file-wrap input[type="file"],
.rp-file-native,
body.rate-portal-theme .rp-file-wrap input[type="file"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  opacity: 0 !important;
}

.rp-file-choose,
body.rate-portal-theme .rp-file-choose {
  display: inline-block;
  background: #f5c400 !important;
  border: 1px solid #f5c400 !important;
  color: #0a0a0a !important;
  font-weight: 700 !important;
  font-size: 13px;
  border-radius: 6px;
  padding: 7px 14px;
  cursor: pointer;
  margin: 0;
}

.rp-file-choose:hover,
body.rate-portal-theme .rp-file-choose:hover {
  background: #d4a800 !important;
  border-color: #d4a800 !important;
}

.rp-file-name,
body.rate-portal-theme .rp-file-name {
  color: #6b6b6b;
  font-size: 13px;
}

html[data-theme="dark"] .rp-file-name,
html[data-theme="dark"] body.rate-portal-theme .rp-file-name {
  color: #c8ccd4 !important;
}
