/* RushPay public pages — shared shell (header, glass cards, auth). Theme-aware via brand CSS vars. */

:root {
  --rp-public-header-height: 66px;
  --rp-public-header-height-mobile: 62px;
}

/* Fixed mount + header (body isolation elsewhere can break fixed-only on inner header) */
[data-rp-public-header] {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  width: 100%;
}

.rp-public-header {
  position: relative;
  width: 100%;
}

body:not([data-rp-shell]) .rp-public-header .admin-navbar,
body:not([data-rp-shell]) .rp-public-nav.admin-navbar {
  position: static;
  top: auto;
  min-height: var(--rp-public-header-height, 72px);
}

.rp-public-nav {
  background: var(--rp-glass-bg) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--rp-glass-border);
  padding: 0.65rem 0;
  box-shadow: var(--rp-shadow-card, 0 8px 32px rgba(0, 0, 0, 0.12));
}

.rp-public-nav .container-fluid {
  min-height: 54px;
}

html[data-theme="light"] .rp-public-nav {
  background: var(--rp-surface) !important;
  box-shadow: var(--rp-shadow-card);
}

.rp-public-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.rp-public-logo {
  height: 36px;
  width: auto;
  filter: drop-shadow(0 0 12px rgba(var(--rp-brand-rgb), 0.35));
}

@media (min-width: 992px) {
  body[data-rp-shell] .sidebar-header .brand-copy {
    display: none !important;
  }

  .rp-public-nav .brand-copy {
    display: none !important;
  }
}

.rp-public-nav .brand-title {
  font-weight: 700;
  color: var(--rp-text);
  font-size: 1.05rem;
}

.rp-public-nav .nav-link {
  color: var(--rp-text-muted) !important;
  font-weight: 500;
  border-radius: 8px;
  padding: 0.45rem 0.85rem !important;
  transition: color 0.15s ease, background 0.15s ease;
}

.rp-public-nav .nav-link:hover,
.rp-public-nav .nav-link:focus {
  background: rgba(var(--rp-brand-rgb), 0.12);
  color: var(--rp-text) !important;
}

.rp-public-nav .nav-link.rp-nav-cta {
  --bs-nav-link-color: #fff;
  --bs-nav-link-hover-color: #fff;
  --bs-link-color-rgb: 255, 255, 255;
  --bs-link-hover-color-rgb: 255, 255, 255;
  --bs-link-opacity: 1;
  color: #fff !important;
  background: linear-gradient(135deg, var(--rp-brand), var(--rp-brand-soft)) !important;
  margin-left: 0.25rem;
  transition: none !important;
}

.rp-public-nav .nav-link.rp-nav-cta,
.rp-public-nav .nav-link.rp-nav-cta:hover,
.rp-public-nav .nav-link.rp-nav-cta:focus,
.rp-public-nav .nav-link.rp-nav-cta:active,
.rp-public-nav .nav-link.rp-nav-cta i {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

.rp-public-nav .nav-link.rp-nav-cta:hover,
.rp-public-nav .nav-link.rp-nav-cta:focus,
.rp-public-nav .nav-link.rp-nav-cta:active {
  background: linear-gradient(135deg, var(--rp-brand), var(--rp-brand-soft)) !important;
  transform: none !important;
  box-shadow: none !important;
  filter: none !important;
}

.rp-public-nav .navbar-toggler,
.rp-public-nav .rp-public-nav-toggler {
  border: 1px solid var(--rp-glass-border);
  padding: 0.35rem 0.55rem;
  color: var(--rp-text);
  background: rgba(var(--rp-brand-rgb), 0.08);
}

.rp-public-nav .navbar-toggler:focus,
.rp-public-nav .rp-public-nav-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(var(--rp-brand-rgb), 0.25);
}

.rp-public-nav .rp-public-nav-toggler {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  font-size: 1.45rem;
  line-height: 1;
}

.rp-public-nav .rp-public-nav-toggler .bi {
  color: var(--rp-text);
}

.rp-public-nav-mobile-actions {
  flex-shrink: 0;
  margin-left: auto;
}

.rp-public-nav-mobile-actions .rp-public-login-btn,
.rp-public-nav-mobile-actions .rp-public-signup-btn {
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  white-space: nowrap;
  text-decoration: none;
}

.rp-public-nav-mobile-actions .rp-public-login-btn {
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.rp-public-nav-mobile-actions .rp-public-signup-btn {
  color: #fff !important;
  background: linear-gradient(135deg, var(--rp-brand), var(--rp-brand-soft));
  border: none;
}

html[data-theme="light"] .rp-public-nav-mobile-actions .rp-public-login-btn {
  color: var(--rp-text) !important;
  border-color: var(--rp-glass-border);
  background: var(--rp-surface);
}

.rp-public-nav .navbar-nav {
  flex-wrap: wrap;
  gap: 0.15rem;
}

.rp-public-nav .container-fluid {
  flex-wrap: wrap;
  align-items: center;
  row-gap: 0.35rem;
}

/* Keep logged-in portal mobile headers on one compact row. */
body[data-rp-shell] .rp-portal-topnav .rp-public-nav .container-fluid {
  flex-wrap: nowrap;
  min-width: 0;
}

body[data-rp-shell] .rp-portal-topnav .rp-public-brand {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
  margin-right: 0.35rem;
}

body[data-rp-shell] .rp-portal-topnav .rp-public-logo {
  width: auto;
  max-width: min(132px, 34vw);
  height: 32px;
}

body[data-rp-shell] .rp-portal-topnav .navbar-actions {
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

@media (max-width: 575.98px) {
  body[data-rp-shell] .rp-portal-topnav .rp-public-nav {
    padding: 0.45rem 0;
  }

  body[data-rp-shell] .rp-portal-topnav .rp-public-nav .container-fluid {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  body[data-rp-shell] .rp-portal-topnav .sidebar-toggle {
    width: 38px !important;
    height: 38px !important;
    margin-right: 0.35rem !important;
    padding: 8px !important;
  }

  body[data-rp-shell] .rp-portal-topnav .icon-button,
  body[data-rp-shell] .rp-portal-topnav .profile-button {
    width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    border-radius: 8px;
  }

  body[data-rp-shell] .rp-portal-topnav .profile-button {
    justify-content: center;
    padding: 0 !important;
  }

  body[data-rp-shell] .rp-portal-topnav .profile-button::after {
    display: none;
  }

  body[data-rp-shell] .rp-portal-topnav .profile-button .profile-avatar {
    width: 30px !important;
    height: 30px !important;
    border-radius: 8px;
  }

  body[data-rp-shell] .rp-portal-topnav .navbar-actions {
    gap: 0.35rem !important;
  }

  body[data-rp-shell] .rp-portal-topnav .rp-public-logo {
    max-width: min(122px, 32vw);
    height: 30px;
  }
}

@media (max-width: 374.98px) {
  body[data-rp-shell] .rp-portal-topnav .rp-public-nav .container-fluid {
    padding-left: 0.4rem !important;
    padding-right: 0.4rem !important;
  }

  body[data-rp-shell] .rp-portal-topnav .sidebar-toggle {
    width: 36px !important;
    height: 36px !important;
    margin-right: 0.25rem !important;
  }

  body[data-rp-shell] .rp-portal-topnav .icon-button,
  body[data-rp-shell] .rp-portal-topnav .profile-button {
    width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
  }

  body[data-rp-shell] .rp-portal-topnav .navbar-actions {
    gap: 0.25rem !important;
  }

  body[data-rp-shell] .rp-portal-topnav .rp-public-logo {
    max-width: min(108px, 30vw);
    height: 28px;
  }

  body[data-rp-shell] .rp-portal-topnav .rp-notification-badge {
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    font-size: 0.62rem;
    line-height: 16px;
  }
}

@media (min-width: 992px) {
  .rp-public-nav .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }
}

body:not([data-rp-shell]) .rp-public-nav .navbar-collapse.show,
body:not([data-rp-shell]) .rp-public-nav .navbar-collapse.collapsing {
  width: 100%;
  flex-basis: 100%;
  max-height: min(70vh, 420px);
  overflow-y: auto;
  margin-top: 0.5rem;
  padding: 0.5rem 0 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

html[data-theme="light"] body:not([data-rp-shell]) .rp-public-nav .navbar-collapse.show,
html[data-theme="light"] body:not([data-rp-shell]) .rp-public-nav .navbar-collapse.collapsing {
  border-top-color: var(--rp-glass-border);
}

.rp-public-nav-mobile-actions .rp-public-theme-toggle {
  margin-top: 0;
  background: rgba(var(--rp-brand-rgb), 0.1) !important;
  border-color: var(--rp-glass-border) !important;
  color: var(--rp-text) !important;
}

.rp-public-nav-mobile-actions .rp-public-nav-toggler {
  margin-top: 0;
  background: rgba(var(--rp-brand-rgb), 0.1) !important;
  border-color: var(--rp-glass-border) !important;
  color: var(--rp-text) !important;
}

html[data-theme="light"] .rp-public-nav-mobile-actions .rp-public-nav-toggler,
html[data-theme="light"] .rp-public-nav-mobile-actions .rp-public-nav-toggler .bi {
  color: var(--rp-text) !important;
}

.rp-public-nav .navbar-nav .rp-public-theme-toggle {
  margin-top: 0.35rem;
}

@media (min-width: 992px) {
  .rp-public-nav .navbar-nav .rp-public-theme-toggle {
    margin-top: 0;
  }
}

.rp-marquee-container {
  overflow: hidden;
  background: var(--rp-glass-bg);
  border: 1px solid var(--rp-glass-border);
  border-radius: 12px;
  padding: 0.75rem 0;
  margin: 1.5rem auto;
  max-width: 1200px;
  box-shadow: var(--rp-shadow-card);
}

html[data-theme="light"] .rp-marquee-container {
  background: var(--rp-surface);
}

.rp-marquee-inner {
  display: flex;
  width: max-content;
  animation: rp-public-marquee 30s linear infinite;
}

.rp-marquee-item {
  display: inline-flex;
  align-items: center;
  padding: 0 2.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--rp-text);
  flex-shrink: 0;
  white-space: nowrap;
}

.rp-marquee-item i {
  margin-right: 0.5rem;
  color: var(--rp-brand);
}

@keyframes rp-public-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.rp-glass-card {
  background: var(--rp-glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: var(--rp-radius-lg, 18px);
  border: 1px solid var(--rp-glass-border);
  box-shadow: var(--rp-shadow-elevated, 0 28px 65px rgba(0, 0, 0, 0.35));
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 920px;
  margin: 2rem auto;
  color: var(--rp-text);
}

html[data-theme="light"] .rp-glass-card {
  background: var(--rp-surface);
}

.rp-glass-card .headline {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--rp-text);
}

.rp-glass-card .description {
  color: var(--rp-text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.rp-brand-gradient-text {
  background: linear-gradient(135deg, var(--rp-brand), var(--rp-brand-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-rp-orange {
  background: linear-gradient(135deg, var(--rp-brand), var(--rp-brand-soft));
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 12px;
  padding: 0.75rem 1.75rem;
  box-shadow: 0 8px 20px rgba(var(--rp-brand-rgb), 0.25);
}

.btn-rp-orange:hover,
.btn-rp-orange:focus {
  color: #fff;
  transform: translateY(-1px);
}

.btn-rp-glass {
  background: rgba(var(--rp-brand-rgb), 0.08);
  border: 1px solid var(--rp-glass-border);
  color: var(--rp-text);
  font-weight: 600;
  border-radius: 12px;
  padding: 0.75rem 1.75rem;
}

.btn-rp-glass:hover,
.btn-rp-glass:focus {
  background: rgba(var(--rp-brand-rgb), 0.14);
  color: var(--rp-text);
}

.rp-feature-grid .feature-card {
  background: var(--rp-glass-bg);
  border: 1px solid var(--rp-glass-border);
  border-radius: var(--rp-radius-lg, 18px);
  padding: 1.5rem;
  height: 100%;
  box-shadow: var(--rp-shadow-card);
  color: var(--rp-text);
}

html[data-theme="light"] .rp-feature-grid .feature-card {
  background: var(--rp-surface);
  box-shadow: var(--rp-shadow-elevated);
}

.rp-feature-grid .feature-card .text-muted {
  color: var(--rp-text-muted) !important;
}

.rp-auth-glass {
  background: var(--rp-glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--rp-glass-border);
  border-radius: var(--rp-radius-lg, 18px);
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  box-shadow: var(--rp-shadow-elevated, 0 24px 48px rgba(0, 0, 0, 0.2));
  color: var(--rp-text);
}

/* Registration has more fields than the sign-in flows, so give it a wider
   desktop canvas without changing the compact phone layout. */
@media (min-width: 992px) {
  .auth-body.public-auth[data-rp-public="register"] .rp-auth-glass.rp-register-card {
    width: min(760px, calc(100vw - 3rem));
    max-width: 760px;
  }
}

html[data-theme="light"] .rp-auth-glass {
  background: var(--rp-surface);
}

.rp-auth-glass .form-control,
.rp-glass-card .form-control,
.public-page-wrap .form-control {
  background: var(--rp-surface);
  border-color: var(--rp-glass-border);
  color: var(--rp-text);
}

html[data-theme="light"] .rp-auth-glass .form-control,
html[data-theme="light"] .rp-glass-card .form-control,
html[data-theme="light"] .public-page-wrap .form-control {
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.rp-auth-glass .text-muted,
.rp-glass-card .text-muted,
.public-page-wrap .text-muted {
  color: var(--rp-text-muted) !important;
}

.rp-auth-glass .form-control:focus,
.rp-glass-card .form-control:focus {
  border-color: rgba(var(--rp-brand-rgb), 0.45);
  box-shadow: 0 0 0 0.2rem rgba(var(--rp-brand-rgb), 0.15);
  color: var(--rp-text);
}

html[data-theme="dark"] body.auth-body.public-auth,
html[data-theme="dark"] body.rp-public-body.auth-body {
  background: transparent;
}

html[data-theme="dark"] .rp-auth-glass,
html[data-theme="dark"] .public-hosted-card {
  background: var(--rp-bg-elevated);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: var(--rp-shadow-elevated);
}

html[data-theme="dark"] .rp-auth-glass .form-control,
html[data-theme="dark"] .rp-auth-glass .form-select,
html[data-theme="dark"] .public-hosted-card .form-control,
html[data-theme="dark"] .public-hosted-card .form-select,
html[data-theme="dark"] .public-page-wrap .form-control,
html[data-theme="dark"] .public-page-wrap .form-select,
html[data-theme="dark"] body.rp-public-body .panel .form-control,
html[data-theme="dark"] body.rp-public-body .panel .form-select {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--rp-text);
}

html[data-theme="dark"] .rp-auth-glass .form-control::placeholder,
html[data-theme="dark"] .public-hosted-card .form-control::placeholder,
html[data-theme="dark"] .public-page-wrap .form-control::placeholder,
html[data-theme="dark"] body.rp-public-body .panel .form-control::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

html[data-theme="dark"] .rp-auth-glass .form-control:focus,
html[data-theme="dark"] .public-hosted-card .form-control:focus,
html[data-theme="dark"] .public-page-wrap .form-control:focus,
html[data-theme="dark"] body.rp-public-body .panel .form-control:focus,
html[data-theme="dark"] body.rp-public-body .panel .form-select:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(var(--rp-brand-rgb), 0.55);
  color: var(--rp-text);
}

html[data-theme="dark"] body.rp-public-body .panel .form-select option,
html[data-theme="dark"] .public-page-wrap .form-select option {
  background-color: var(--rp-bg-elevated, #2a2626);
  color: var(--rp-text, #fff);
}

html[data-theme="dark"] body.rp-public-body .panel {
  background: var(--rp-bg-elevated);
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .rp-auth-glass .form-check-input {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.rp-register-step-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rp-brand);
  margin-bottom: 0.35rem;
}

.rp-email-status {
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.rp-email-status.ok { color: var(--rp-success); }
.rp-email-status.err { color: var(--rp-danger); }

.rp-gift-result {
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
}

.rp-gift-result.valid {
  background: rgba(var(--rp-success-rgb), 0.12);
  border: 1px solid rgba(var(--rp-success-rgb), 0.35);
}

.rp-gift-result.invalid {
  background: rgba(var(--rp-danger-rgb), 0.12);
  border: 1px solid rgba(var(--rp-danger-rgb), 0.35);
}

.tut-acc .accordion-item {
  background: rgba(var(--rp-brand-rgb), 0.04);
  border: 1px solid var(--rp-glass-border);
  margin-bottom: 0.5rem;
  border-radius: 12px !important;
  overflow: hidden;
}

.tut-acc .accordion-button {
  background: rgba(var(--rp-brand-rgb), 0.06);
  color: var(--rp-text);
  font-weight: 600;
}

.tut-acc .accordion-button:not(.collapsed) {
  background: rgba(var(--rp-brand-rgb), 0.15);
  color: var(--rp-text);
  box-shadow: none;
}

.tut-acc .accordion-body {
  background: rgba(var(--rp-brand-rgb), 0.03);
  color: var(--rp-text-muted);
}

.bank-table-wrap {
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--rp-glass-border);
  border-radius: 12px;
}

.bank-table-wrap .table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--rp-text);
  --bs-table-border-color: var(--rp-glass-border);
}

.bank-code-pill {
  display: inline-block;
  background: rgba(var(--rp-brand-rgb), 0.22);
  border: 1px solid rgba(var(--rp-brand-rgb), 0.5);
  color: var(--rp-text);
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: 600;
}

.bank-directory-table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--rp-text);
  --bs-table-border-color: var(--rp-glass-border);
}

.bank-directory-table thead th {
  color: var(--rp-text);
  background: rgba(var(--rp-brand-rgb), 0.08);
  position: sticky;
  top: 0;
  z-index: 1;
}

.public-page-wrap {
  min-height: calc(100vh - 72px);
  padding-bottom: 3rem;
}

/* Public marketing + auth only — portal shell uses its own top bar (no body padding) */
body.rp-public-body:not([data-rp-shell]),
.auth-body.public-auth {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--rp-public-header-height, 72px);
}

body.rp-public-body:not([data-rp-shell]) {
  isolation: auto;
}

/* Public marketing + auth — shared fixed header (login, register, home, etc.) */
body.rp-public-body.auth-body .rp-public-header,
body.rp-home-page .rp-public-header {
  z-index: 1040;
}

body.rp-public-body.auth-body .rp-public-nav,
body.rp-home-page .rp-public-nav {
  background: var(--rp-glass-bg) !important;
  border-bottom: 1px solid var(--rp-glass-border);
  box-shadow: var(--rp-shadow-card);
}

html[data-theme="light"] body.rp-public-body.auth-body .rp-public-nav,
html[data-theme="light"] body.rp-home-page .rp-public-nav {
  background: var(--rp-surface) !important;
}

.auth-body.public-auth .auth-page {
  flex: 1;
  display: grid;
  place-items: center;
  align-content: center;
  width: 100%;
  min-height: calc(100vh - var(--rp-public-header-height, 72px));
  min-height: calc(100dvh - var(--rp-public-header-height, 72px));
  padding: 2rem 1rem;
  box-sizing: border-box;
}

.auth-body.public-auth .auth-page .rp-auth-glass {
  margin: 0 auto;
  width: 100%;
  max-width: 480px;
}

/* Home / marketing index */
.rp-home {
  overflow-x: clip;
  background: var(--rp-bg-deep);
}

.rp-home-hero {
  position: relative;
  color: #fff;
  min-height: min(860px, 92vh);
  min-height: min(860px, 92dvh);
  display: flex;
  align-items: center;
  padding: calc(var(--rp-public-header-height, 72px) + 1.25rem) 0 3rem;
  background: linear-gradient(160deg, #0c0e14 0%, #15120f 42%, #0f1f19 100%);
}

.rp-home-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.rp-home-hero__bg-grid {
  position: absolute;
  inset: var(--rp-public-header-height, 72px) 0 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 75%);
}

.rp-home-hero__bg-glow {
  position: absolute;
  top: -10%;
  right: -5%;
  width: min(520px, 55vw);
  height: min(520px, 55vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--rp-brand-rgb), 0.22) 0%, transparent 68%);
}

.rp-home-hero__container {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.rp-home-hero__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1100px) {
  .rp-home-hero__grid {
    grid-template-columns: minmax(0, 0.68fr) minmax(320px, 0.32fr);
    gap: 2.5rem;
  }
}

.rp-home-hero__main {
  min-width: 0;
}

.rp-home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fed7aa;
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 1rem;
}

.rp-home-title {
  max-width: 13ch;
  font-size: clamp(2.35rem, 5.2vw, 4.85rem);
  line-height: 1.05;
  letter-spacing: 0;
  font-weight: 800;
  margin: 0;
  overflow-wrap: normal;
}

.rp-home-title span {
  color: #fdba74;
}

.rp-home-copy {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 2vw, 1.22rem);
  margin: 1.25rem 0 1.5rem;
}

.rp-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.rp-home-actions .btn {
  border-radius: 10px;
  padding: 0.82rem 1.1rem;
  font-weight: 700;
}

.rp-home-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 960px;
}

.rp-home-metric {
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  border-radius: 8px;
  padding: 0.85rem;
}

.rp-home-metric strong {
  display: block;
  font-size: 1.2rem;
  color: #fff;
}

.rp-home-metric span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8rem;
}

.rp-home-hero__aside {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  width: min(100%, 360px);
  justify-self: end;
}

@media (min-width: 1100px) {
  .rp-home-hero__aside {
    display: flex;
  }
}

.rp-home-rail-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(16, 16, 20, 0.74);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.25);
}

.rp-home-rail-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  background: rgba(var(--rp-brand-rgb), 0.18);
  color: #fdba74;
  line-height: 1;
}

.rp-home-rail-icon .bi {
  font-size: 1.2rem;
  line-height: 1;
  display: block;
}

.rp-home-rail-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
}

.rp-home-rail-label {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.3;
}

.rp-home-rail-detail {
  display: block;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.rp-home-rail-value {
  flex: 0 0 auto;
  align-self: center;
  margin: 0;
  padding-left: 0.35rem;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

.rp-home-band {
  padding: 4.5rem 1rem;
}

.rp-home-band-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.rp-home-section-head {
  max-width: 760px;
  margin-bottom: 2rem;
}

.rp-home-section-head h2 {
  color: var(--rp-text);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: 0;
}

.rp-home-section-head p {
  color: var(--rp-text-muted);
  font-size: 1.05rem;
}

.rp-home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.rp-home-tile {
  min-height: 220px;
  border: 1px solid var(--rp-glass-border);
  border-radius: 8px;
  padding: 1.25rem;
  background: var(--rp-surface);
  color: var(--rp-text);
}

.rp-home-tile i {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--rp-brand-rgb), 0.12);
  color: var(--rp-brand);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.rp-home-tile h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--rp-text);
}

.rp-home-tile p {
  color: var(--rp-text-muted);
  margin-bottom: 0;
}

.rp-home-workflow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

.rp-home-console {
  border-radius: 8px;
  background: #0f172a;
  color: #e2e8f0;
  padding: 1.2rem;
  min-height: 330px;
  overflow: hidden;
}

.rp-home-console pre {
  margin: 0;
  color: inherit;
  white-space: pre-wrap;
  font-size: 0.84rem;
}

.rp-home-legal {
  background: var(--rp-surface);
  border-top: 1px solid var(--rp-glass-border);
  scroll-margin-top: 84px;
}

.rp-home-legal-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.rp-home-legal-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  min-height: 140px;
  padding: 1.25rem;
  border: 1px solid var(--rp-glass-border);
  border-radius: 8px;
  background: var(--rp-bg);
  color: var(--rp-text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.rp-home-legal-link:hover,
.rp-home-legal-link:focus-visible {
  border-color: rgba(var(--rp-brand-rgb), 0.45);
  box-shadow: 0 8px 24px rgba(var(--rp-brand-rgb), 0.12);
  transform: translateY(-2px);
  outline: none;
}

.rp-home-legal-link > i {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--rp-brand-rgb), 0.12);
  color: var(--rp-brand);
  font-size: 1.25rem;
}

.rp-home-legal-link-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--rp-text);
}

.rp-home-legal-link-hint {
  font-size: 0.9rem;
  color: var(--rp-text-muted);
  line-height: 1.45;
}

.rp-legal-modal {
  display: none;
  position: fixed;
  z-index: 12000;
  inset: 0;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  animation: rpLegalFadeIn 0.3s ease;
}

.rp-legal-modal.show {
  display: flex;
}

.rp-legal-modal-content {
  width: min(800px, 100%);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(var(--rp-brand-rgb), 0.35);
  border-radius: 12px;
  background: var(--rp-surface);
  color: var(--rp-text);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  animation: rpLegalSlideUp 0.35s ease;
}

.rp-legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--rp-glass-border);
  background: rgba(var(--rp-brand-rgb), 0.08);
}

.rp-legal-modal-header h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--rp-text);
}

.rp-legal-modal-header h2 i {
  margin-right: 0.5rem;
  color: var(--rp-brand);
}

.rp-legal-modal-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(var(--rp-brand-rgb), 0.12);
  color: var(--rp-text-muted);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.rp-legal-modal-close:hover {
  background: rgba(var(--rp-brand-rgb), 0.22);
  color: var(--rp-text);
  transform: rotate(90deg);
}

.rp-legal-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  color: var(--rp-text-muted);
  line-height: 1.7;
}

.rp-legal-modal-body h3 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--rp-brand);
}

.rp-legal-modal-body h4 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--rp-text);
}

.rp-legal-modal-body p,
.rp-legal-modal-body li {
  color: var(--rp-text-muted);
}

.rp-legal-modal-body ul {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

.rp-legal-modal-body strong {
  color: var(--rp-text);
}

.rp-legal-modal-body a {
  color: var(--rp-brand);
}

@keyframes rpLegalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes rpLegalSlideUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .rp-home-legal-links {
    grid-template-columns: 1fr;
  }

  .rp-legal-modal-content {
    max-height: 90vh;
  }

  .rp-legal-modal-header {
    padding: 1rem 1.25rem;
  }

  .rp-legal-modal-header h2 {
    font-size: 1.15rem;
  }

  .rp-legal-modal-body {
    padding: 1.25rem;
  }
}

.rp-error-body {
  min-height: 100vh;
  background: var(--rp-bg);
}

.rp-error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.rp-error-card {
  width: min(100%, 480px);
  padding: 2rem 1.75rem;
  border: 1px solid var(--rp-glass-border);
  border-radius: 12px;
  background: var(--rp-surface);
  box-shadow: var(--rp-shadow-card);
  text-align: center;
  color: var(--rp-text);
}

.rp-error-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  text-decoration: none;
}

.rp-error-brand img {
  width: auto;
  height: 72px;
  max-width: min(240px, 80vw);
  object-fit: contain;
}

.rp-error-brand:hover {
  color: var(--rp-brand);
}

.rp-error-illustration {
  width: min(260px, 100%);
  max-height: 132px;
  object-fit: contain;
  margin: 0 auto 0.75rem;
}

.rp-error-icon {
  font-size: 3rem;
  color: var(--rp-brand);
  margin-bottom: 0.5rem;
}

.rp-error-code {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--rp-brand);
  margin-bottom: 0.5rem;
}

.rp-error-message {
  color: var(--rp-text-muted);
  margin-bottom: 1.5rem;
}

.rp-home-footer {
  padding: 2rem 1rem;
  border-top: 1px solid var(--rp-glass-border);
  color: var(--rp-text-muted);
}

.rp-home-footer-copy {
  color: var(--rp-text-muted);
  font-size: 0.9rem;
}

.rp-version-tag {
  display: inline-block;
  margin-left: 0.15rem;
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rp-brand);
  background: rgba(var(--rp-brand-rgb), 0.12);
  border: 1px solid rgba(var(--rp-brand-rgb), 0.28);
  vertical-align: middle;
}

body[data-rp-shell] .sidebar-footer-text .rp-version-tag {
  margin-left: 0.35rem;
  font-size: 0.62rem;
  padding: 0.08rem 0.35rem;
}

body[data-rp-shell] .profile-button .profile-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(var(--rp-brand-rgb), 0.14);
  color: var(--rp-brand);
}

body[data-rp-shell] .profile-button .profile-avatar .bi {
  font-size: 1.12rem;
  line-height: 1;
}

body[data-rp-shell] .rp-notification-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

body[data-rp-shell] .rp-notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--rp-danger, #ef4444);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--rp-bg-elevated, #fff);
}

body[data-rp-shell="user"].rp-portal-public-page {
  padding-top: 0;
}

body[data-rp-shell="user"].rp-portal-public-page .dashboard-content.auth-page,
body[data-rp-shell="user"].rp-portal-public-page .dashboard-content.public-page-wrap,
body[data-rp-shell="user"].rp-portal-public-page .dashboard-content.container {
  min-height: calc(100vh - 64px);
  padding: 1rem 0 calc(5.5rem + env(safe-area-inset-bottom));
}

body[data-rp-shell="user"].rp-portal-public-page .dashboard-content .rp-hosted-layout {
  max-width: 720px;
  margin: 0 auto;
}

body[data-rp-shell="user"].rp-portal-public-page .dashboard-content.rp-portal-hosted-main {
  display: block;
  width: 100%;
  min-height: calc(100vh - 64px);
  padding: clamp(1rem, 2vw, 1.5rem) clamp(0.85rem, 2vw, 1.5rem) calc(5.5rem + env(safe-area-inset-bottom));
}

body[data-rp-shell="user"].rp-portal-public-page .dashboard-content.rp-portal-hosted-main .rp-hosted-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
  width: min(1180px, 100%);
  max-width: none;
  margin: 0 auto;
}

body[data-rp-shell="user"].rp-portal-public-page .dashboard-content.rp-portal-hosted-main .rp-page-loader,
body[data-rp-shell="user"].rp-portal-public-page .dashboard-content.rp-portal-hosted-main .rp-hosted-alert {
  grid-column: 1 / -1;
}

body[data-rp-shell="user"].rp-portal-public-page .dashboard-content.rp-portal-hosted-main .public-hosted-card,
body[data-rp-shell="user"].rp-portal-public-page .dashboard-content.rp-portal-hosted-main .rp-hosted-summary,
body[data-rp-shell="user"].rp-portal-public-page .dashboard-content.rp-portal-hosted-main .rp-hosted-pay {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
}

body[data-rp-shell="user"].rp-portal-public-page .dashboard-content.rp-portal-hosted-main .rp-hosted-pay > [id^="rushpay-"] {
  width: 100%;
}

@media (min-width: 992px) {
  body[data-rp-shell="user"].rp-portal-public-page .dashboard-content.auth-page,
  body[data-rp-shell="user"].rp-portal-public-page .dashboard-content.public-page-wrap,
  body[data-rp-shell="user"].rp-portal-public-page .dashboard-content.container {
    padding-bottom: 2rem;
  }
}

@media (max-width: 991.98px) {
  body[data-rp-shell="user"].rp-portal-public-page .dashboard-content.rp-portal-hosted-main .rp-hosted-layout {
    grid-template-columns: 1fr;
    width: min(640px, 100%);
  }

  .rp-home-metrics,
  .rp-home-grid,
  .rp-home-workflow {
    grid-template-columns: 1fr 1fr;
  }
}

/* Dedicated public product pages use palette variables for every surface.
   This avoids mixed light/dark cards when the account brand theme loads. */
.rp-public-product-page {
  color: var(--rp-text);
  background:
    radial-gradient(circle at 8% 6%, rgba(var(--rp-brand-rgb), .10), transparent 28rem),
    radial-gradient(circle at 92% 12%, rgba(var(--rp-success-rgb), .08), transparent 26rem),
    var(--rp-bg-deep);
}
.rp-public-product-page .rp-info-hero__copy,
.rp-public-product-page .rp-tutorial-index,
.rp-public-product-page .rp-guide-grid > article,
.rp-public-product-page .rp-roadmap-priority-grid > div {
  color: var(--rp-text);
  background: var(--rp-surface);
  border: 1px solid var(--rp-border);
  box-shadow: var(--rp-shadow-card);
}
.rp-public-product-page .rp-info-hero h1,
.rp-public-product-page .rp-section-head h2,
.rp-public-product-page .rp-guide-grid h3,
.rp-public-product-page .rp-roadmap-priority-grid strong,
.rp-public-product-page .rp-tutorial-index a {
  color: var(--rp-text);
}
.rp-public-product-page .rp-info-lede,
.rp-public-product-page .rp-guide-grid p {
  color: var(--rp-text-muted);
}
.rp-public-product-page .rp-guide-grid > article {
  min-height: 190px;
  padding: 1.2rem;
  border-radius: 12px;
}
.rp-public-product-page .rp-guide-grid > article > i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--rp-brand);
  background: rgba(var(--rp-brand-rgb), .11);
}
.rp-public-product-page .rp-guide-grid h3 {
  margin: .9rem 0 .45rem;
  font-size: 1.08rem;
}
.rp-public-product-page .rp-guide-grid p { margin: 0; }
.rp-public-product-page .rp-roadmap-priority-grid > div {
  border-radius: 12px;
}

@media (max-width: 575.98px) {
  body.rp-public-body:not([data-rp-shell]),
  .auth-body.public-auth {
    padding-top: var(--rp-public-header-height-mobile, 66px);
  }

  .rp-public-nav {
    padding: 0.5rem 0;
  }

  .rp-home-hero {
    min-height: auto;
    padding: calc(var(--rp-public-header-height-mobile, 66px) + 1rem) 0 2.5rem;
  }

  .rp-home-hero__container {
    width: calc(100% - 1.25rem);
  }

  .rp-home-title {
    max-width: none;
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .rp-home-actions .btn {
    width: 100%;
  }

  .rp-home-metrics,
  .rp-home-grid,
  .rp-home-workflow {
    grid-template-columns: 1fr;
  }

  .rp-home-band {
    padding: 3rem 0.9rem;
  }
}

.auth-body.public-auth .auth-page .rp-auth-glass h1,
.auth-body.public-auth .auth-page .rp-auth-glass h3 {
  color: var(--rp-text);
}

@media (max-width: 575.98px) {
  .auth-body.public-auth .auth-page {
    place-items: center;
    padding: 1.25rem 0.85rem 2rem;
    min-height: calc(100vh - var(--rp-public-header-height-mobile, 66px));
    min-height: calc(100dvh - var(--rp-public-header-height-mobile, 66px));
  }

  .auth-body.public-auth .rp-auth-glass {
    padding: 1.5rem 1.25rem;
  }
}

.public-hosted-card {
  background: var(--rp-glass-bg);
  border: 1px solid var(--rp-glass-border);
  border-radius: var(--rp-radius-lg, 18px);
  padding: 2rem;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 24px 48px rgba(0, 0, 0, calc(var(--rp-shadow-opacity, 0.2)));
}

.auth-body.public-auth .public-hosted-card .auth-brand {
  margin-bottom: 1.5rem;
}

/* Hosted payment pages (escrow / invoice): details summary beside a standalone widget */
.rp-hosted-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.rp-hosted-summary {
  flex: 1 1 340px;
  max-width: 420px;
  margin: 0;
  align-self: stretch;
}

.rp-hosted-pay {
  flex: 1 1 420px;
  max-width: 520px;
  width: 100%;
  min-width: 0;
}

.rp-hosted-alert {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.rp-hosted-details {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.rp-hosted-details-row {
  display: contents;
}

.rp-hosted-details dt {
  margin-top: 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rp-text-muted, #6b7280);
}

.rp-hosted-details dt:first-child {
  margin-top: 0;
}

.rp-hosted-details dd {
  margin: 0.2rem 0 0;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--rp-text, #111827);
  word-break: break-word;
}

@media (max-width: 767.98px) {
  .rp-hosted-layout {
    gap: 1.1rem;
  }

  .rp-hosted-summary,
  .rp-hosted-pay {
    flex-basis: 100%;
    max-width: 520px;
  }
}

.rp-device-card {
  border: 1px solid var(--rp-border, rgba(0, 0, 0, 0.08));
  border-radius: var(--rp-radius-md, 12px);
  padding: 1rem 1.1rem;
  background: var(--rp-surface, #fff);
}

.rp-device-card.rp-device-current {
  border-color: rgba(var(--rp-success-rgb, 25, 135, 84), 0.35);
  background: rgba(var(--rp-success-rgb, 25, 135, 84), 0.06);
}

.rp-device-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rp-primary-soft, rgba(255, 107, 0, 0.12));
  color: var(--rp-primary, #ff6b00);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.rp-contact-toolbar .input-group-text {
  background: var(--rp-surface, #fff);
}

.rp-contact-card {
  border: 1px solid var(--rp-border, rgba(0, 0, 0, 0.08));
  border-radius: var(--rp-radius-md, 12px);
  padding: 1rem;
  background: var(--rp-surface, #fff);
}

.rp-contact-autocomplete {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 1050;
  border: 1px solid var(--rp-border, rgba(0, 0, 0, 0.08));
  border-radius: var(--rp-radius-md, 12px);
  background: var(--rp-surface, #fff);
  box-shadow: var(--rp-shadow-card, 0 8px 24px rgba(0, 0, 0, 0.08));
  max-height: 240px;
  overflow-y: auto;
}

.rp-contact-autocomplete-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.65rem 0.85rem;
}

.rp-contact-autocomplete-item + .rp-contact-autocomplete-item {
  border-top: 1px solid var(--rp-border, rgba(0, 0, 0, 0.06));
}

.rp-contact-autocomplete-item:hover,
.rp-contact-autocomplete-item:focus {
  background: var(--rp-primary-soft, rgba(255, 107, 0, 0.08));
}

.rp-contact-autocomplete-item small {
  display: block;
  color: var(--rp-text-muted, #6c757d);
}

.rp-wallet-card .panel-header {
  border-bottom: 1px solid var(--rp-border, rgba(0, 0, 0, 0.06));
}

.rp-wallet-rename-input {
  min-width: 8rem;
  max-width: 20rem;
  flex: 1 1 12rem;
}

/* RushPay modern home refresh */
.rp-home-modern {
  background:
    linear-gradient(180deg, rgba(var(--rp-brand-rgb), 0.08), transparent 22%),
    var(--rp-bg);
  color: var(--rp-text);
}

.rp-home-modern .rp-home-hero {
  min-height: auto;
  padding: 4rem 0 3rem;
  background:
    linear-gradient(135deg, rgba(var(--rp-brand-rgb), 0.13), rgba(var(--rp-success-rgb), 0.08)),
    var(--rp-bg);
  color: var(--rp-text);
  border-bottom: 1px solid var(--rp-glass-border);
}

.rp-home-modern .rp-home-hero__bg-grid {
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(var(--rp-brand-rgb), 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--rp-brand-rgb), 0.08) 1px, transparent 1px);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 82%);
}

.rp-home-modern .rp-home-title {
  max-width: 820px;
  color: var(--rp-text);
  font-size: clamp(1.55rem, 2.6vw, 2.65rem);
  line-height: 1.16;
}

.rp-home-modern .rp-home-copy {
  color: var(--rp-text-muted);
  max-width: 720px;
}

.rp-home-modern .rp-home-kicker,
.rp-home-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  border: 1px solid rgba(var(--rp-brand-rgb), 0.25);
  border-radius: 999px;
  background: rgba(var(--rp-brand-rgb), 0.09);
  color: var(--rp-brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.75rem;
  margin-bottom: 1rem;
}

.rp-home-modern .rp-home-actions .btn {
  border-radius: 8px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rp-home-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.rp-home-trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 38px;
  border: 1px solid var(--rp-glass-border);
  border-radius: 8px;
  background: var(--rp-surface);
  color: var(--rp-text);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.45rem 0.7rem;
}

.rp-home-trust-strip i {
  color: var(--rp-success);
}

.rp-home-command-card {
  border: 1px solid var(--rp-glass-border);
  border-radius: 8px;
  background: var(--rp-surface);
  box-shadow: var(--rp-shadow-elevated);
  padding: 1rem;
  color: var(--rp-text);
}

.rp-home-command-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rp-glass-border);
}

.rp-home-command-head > span,
.rp-home-security-list i {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--rp-brand-rgb), 0.12);
  color: var(--rp-brand);
  font-size: 1.25rem;
}

.rp-home-command-head strong {
  display: block;
  color: var(--rp-text);
}

.rp-home-command-head small {
  color: var(--rp-text-muted);
}

.rp-home-flow-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.rp-home-flow-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--rp-glass-border);
  border-radius: 8px;
  background: rgba(var(--rp-brand-rgb), 0.04);
  padding: 0.75rem;
}

.rp-home-flow-list span {
  color: var(--rp-text-muted);
}

.rp-home-flow-list strong {
  color: var(--rp-text);
  white-space: nowrap;
}

.rp-home-modern .rp-home-metrics {
  margin-top: 2rem;
  max-width: none;
}

.rp-home-modern .rp-home-metric {
  border-color: var(--rp-glass-border);
  background: var(--rp-surface);
  color: var(--rp-text);
}

.rp-home-modern .rp-home-metric strong {
  color: var(--rp-text);
}

.rp-home-modern .rp-home-metric span {
  color: var(--rp-text-muted);
}

.rp-home-modern .rp-home-band {
  background: var(--rp-bg);
}

.rp-home-intro,
.rp-home-security {
  border-bottom: 1px solid var(--rp-glass-border);
}

.rp-home-products,
.rp-home-developer {
  background: var(--rp-surface) !important;
}

.rp-home-pricing {
  background: var(--rp-bg);
  border-bottom: 1px solid var(--rp-glass-border);
}

.rp-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.rp-pricing-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--rp-glass-border);
  border-radius: 8px;
  background: var(--rp-surface);
  box-shadow: none;
  overflow: hidden;
}

.rp-pricing-card__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 64px;
  padding: 1rem;
  border-bottom: 1px solid var(--rp-glass-border);
  font-weight: 850;
  color: var(--rp-text);
}

.rp-pricing-card__head i {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(var(--rp-brand-rgb), 0.12);
  color: var(--rp-brand);
  flex: 0 0 auto;
}

.rp-pricing-row {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--rp-glass-border);
}

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

.rp-pricing-row strong {
  color: var(--rp-text);
  font-size: 0.95rem;
}

.rp-pricing-row span {
  color: var(--rp-text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.rp-pricing-note {
  margin: 1rem 0 0;
  color: var(--rp-text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.rp-home-pill-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}

.rp-home-pill-grid a {
  display: grid;
  gap: 0.65rem;
  min-height: 116px;
  align-content: center;
  border: 1px solid var(--rp-glass-border);
  border-radius: 8px;
  background: var(--rp-surface);
  color: var(--rp-text);
  text-decoration: none;
  padding: 1rem;
}

.rp-home-pill-grid a:hover,
.rp-home-pill-grid a:focus {
  border-color: rgba(var(--rp-brand-rgb), 0.4);
  background: rgba(var(--rp-brand-rgb), 0.08);
  color: var(--rp-text);
}

.rp-home-pill-grid i {
  color: var(--rp-brand);
  font-size: 1.35rem;
}

.rp-home-pill-grid span {
  font-weight: 800;
}

.rp-home-modern .rp-home-tile {
  background: var(--rp-bg);
  box-shadow: none;
}

.rp-home-products .rp-home-tile,
.rp-home-developer .rp-home-tile,
.rp-home-security-list div {
  background: var(--rp-surface);
}

.rp-home-security-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 1.25rem;
  align-items: center;
}

.rp-home-security-brief {
  max-width: 860px;
}

.rp-home-security-brief h2 {
  color: var(--rp-text);
  font-weight: 850;
  letter-spacing: 0;
}

.rp-home-security-brief p {
  color: var(--rp-text-muted);
  font-size: 1.05rem;
}

.rp-home-roadmap-preview {
  background:
    linear-gradient(135deg, rgba(var(--rp-brand-rgb), 0.1), rgba(17, 24, 39, 0.06)),
    var(--rp-bg);
  border-top: 1px solid var(--rp-glass-border);
  border-bottom: 1px solid var(--rp-glass-border);
}

.rp-home-roadmap-preview__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.rp-home-roadmap-preview__inner > div {
  max-width: 840px;
}

.rp-home-roadmap-preview h2 {
  color: var(--rp-text);
  font-weight: 850;
  letter-spacing: 0;
}

.rp-home-roadmap-preview p {
  color: var(--rp-text-muted);
  margin-bottom: 0;
}

.rp-home-security-grid h2,
.rp-home-cta h2,
.rp-home-developer h2 {
  color: var(--rp-text);
  font-weight: 800;
  letter-spacing: 0;
}

.rp-home-security-grid p,
.rp-home-cta p,
.rp-home-developer p {
  color: var(--rp-text-muted);
}

.rp-home-security-list {
  display: grid;
  gap: 0.85rem;
}

.rp-home-security-list div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem 0.9rem;
  border: 1px solid var(--rp-glass-border);
  border-radius: 8px;
  padding: 1rem;
}

.rp-home-security-list strong {
  color: var(--rp-text);
  display: block;
}

.rp-home-security-list span {
  color: var(--rp-text-muted);
}

.rp-home-security-list i {
  grid-row: span 2;
}

.rp-home-mini-grid {
  grid-template-columns: 1fr !important;
}

.rp-home-modern .rp-home-console {
  background: #0f172a;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--rp-shadow-card);
}

.rp-home-modern .rp-home-console pre {
  color: #e2e8f0;
}

html[data-theme="light"] .rp-home-console,
html[data-theme="light"] .rp-home-modern .rp-home-console {
  background: #0f172a;
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="light"] .rp-home-console pre,
html[data-theme="light"] .rp-home-modern .rp-home-console pre {
  color: #e2e8f0;
}

.rp-home-cta {
  padding: 3rem 1rem;
  background:
    linear-gradient(135deg, rgba(var(--rp-brand-rgb), 0.12), rgba(var(--rp-success-rgb), 0.08)),
    var(--rp-bg);
  border-top: 1px solid var(--rp-glass-border);
  border-bottom: 1px solid var(--rp-glass-border);
}

.rp-home-cta .rp-home-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.rp-home-cta .rp-home-actions {
  margin-bottom: 0;
}

@media (max-width: 1199.98px) {
  .rp-home-pill-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 991.98px) {
  .rp-home-security-grid,
  .rp-home-roadmap-preview__inner,
  .rp-home-cta .rp-home-band-inner {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .rp-home-modern .rp-home-hero {
    padding-top: 2.5rem;
  }
}

/* ===== Roadmap page ===== */

.rp-roadmap-page {
  background:
    radial-gradient(circle at top left, rgba(var(--rp-brand-rgb), 0.14), transparent 34rem),
    radial-gradient(circle at 90% 12%, rgba(var(--rp-success-rgb), 0.08), transparent 32rem),
    var(--rp-bg);
}

.rp-roadmap-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: calc(var(--rp-public-header-height, 72px) + 3rem) 0 4rem;
}

.rp-roadmap-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 2rem;
}

.rp-roadmap-hero h1 {
  max-width: 900px;
  color: var(--rp-text);
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 900;
}

.rp-roadmap-signal,
.rp-roadmap-section,
.rp-roadmap-vision {
  border: 1px solid var(--rp-glass-border);
  border-radius: 8px;
  background: var(--rp-surface);
  box-shadow: var(--rp-shadow-card);
}

.rp-roadmap-signal {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.rp-roadmap-signal div {
  padding: 1rem;
  border-radius: 8px;
  background: rgba(var(--rp-brand-rgb), 0.08);
  border: 1px solid rgba(var(--rp-brand-rgb), 0.16);
}

.rp-roadmap-signal strong {
  display: block;
  color: var(--rp-brand);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.rp-roadmap-signal span {
  display: block;
  color: var(--rp-text);
  font-weight: 750;
  margin-top: 0.35rem;
}

.rp-roadmap-section {
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-top: 1.25rem;
}

.rp-roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

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

.rp-roadmap-grid article,
.rp-roadmap-priority-grid div {
  border: 1px solid var(--rp-glass-border);
  border-radius: 8px;
  background: var(--rp-bg);
  padding: 1.1rem;
}

.rp-roadmap-grid i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(var(--rp-brand-rgb), 0.12);
  color: var(--rp-brand);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.rp-roadmap-grid h3,
.rp-roadmap-priority-grid strong,
.rp-roadmap-vision h2 {
  color: var(--rp-text);
  font-weight: 850;
  letter-spacing: 0;
}

.rp-roadmap-grid p,
.rp-roadmap-priority-grid p,
.rp-roadmap-vision p {
  color: var(--rp-text-muted);
  margin-bottom: 0;
}

.rp-roadmap-priority-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.rp-roadmap-priority-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 28px;
  border-radius: 999px;
  background: rgba(var(--rp-brand-rgb), 0.12);
  color: var(--rp-brand);
  font-size: 0.75rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
}

.rp-roadmap-priority-grid strong {
  display: block;
  margin-bottom: 0.35rem;
}

.rp-roadmap-vision {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-top: 1.25rem;
  background:
    linear-gradient(135deg, rgba(var(--rp-brand-rgb), 0.14), rgba(var(--rp-success-rgb), 0.08)),
    var(--rp-surface);
}

.rp-roadmap-vision > div {
  max-width: 820px;
}

@media (max-width: 1199.98px) {
  .rp-roadmap-grid,
  .rp-roadmap-grid--compact,
  .rp-roadmap-priority-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .rp-roadmap-hero,
  .rp-roadmap-grid,
  .rp-roadmap-grid--compact,
  .rp-roadmap-priority-grid {
    grid-template-columns: 1fr;
  }

  .rp-roadmap-vision {
    flex-direction: column;
    align-items: flex-start;
  }

  .rp-roadmap-shell {
    width: min(100% - 1rem, 1180px);
    padding-top: calc(var(--rp-public-header-height-mobile, 62px) + 2rem);
  }
}

@media (max-width: 575.98px) {
  .rp-home-modern .rp-home-title {
    font-size: clamp(1.35rem, 5.6vw, 1.95rem);
    line-height: 1.18;
  }

  .rp-home-pill-grid {
    grid-template-columns: 1fr 1fr;
  }

  .rp-pricing-grid {
    grid-template-columns: 1fr;
  }

  .rp-home-trust-strip span,
  .rp-home-flow-list div {
    width: 100%;
  }
}

/* ===== Homepage media slots + motion ===== */

/* Hero stage: a single legible device (built-in RushPay app) with a brand glow
   and floating payment chips. Fully contained; no off-screen bleed. */
.rp-home-stage {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: clamp(420px, 34vw, 520px);
}

.rp-home-stage__glow {
  position: absolute;
  inset: 4% 0 8% 0;
  background:
    radial-gradient(46% 40% at 50% 30%, rgba(var(--rp-brand-rgb), 0.40), transparent 70%),
    radial-gradient(40% 34% at 72% 70%, rgba(var(--rp-brand-rgb), 0.18), transparent 72%);
  filter: blur(8px);
  z-index: -1;
  pointer-events: none;
}

.rp-home-stage__bg {
  position: absolute;
  inset: 6% 4% 10% 4%;
  width: auto;
  height: auto;
  object-fit: cover;
  border-radius: 22px;
  opacity: 0.5;
  z-index: -1;
  box-shadow: 0 30px 70px -34px rgba(15, 23, 42, 0.6);
}

/* Floating payment chips */
.rp-home-float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: var(--rp-surface);
  border: 1px solid var(--rp-glass-border);
  box-shadow: var(--rp-shadow-elevated);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--rp-text);
  z-index: 4;
}

.rp-home-float i {
  color: var(--rp-brand);
}

.rp-home-float--a { top: 8%; left: -2%; }
.rp-home-float--b { top: 26%; right: -3%; }
.rp-home-float--c { bottom: 12%; left: 0; }

/* Device frame */
.rp-home-device {
  position: relative;
  width: clamp(232px, 24vw, 268px);
  aspect-ratio: 9 / 18.5;
  border-radius: 34px;
  padding: 10px;
  background: linear-gradient(165deg, #111827, #1f2937);
  box-shadow: 0 40px 80px -34px rgba(15, 23, 42, 0.72), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  z-index: 2;
}

.rp-home-device__notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 16px;
  border-radius: 0 0 12px 12px;
  background: #111827;
  z-index: 3;
}

.rp-home-device__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 26px;
  display: block;
}

/* Built-in RushPay app screen */
.rp-home-app {
  width: 100%;
  height: 100%;
  border-radius: 26px;
  background: var(--rp-bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--rp-text);
}

.rp-home-app__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0.95rem 0.6rem;
  font-weight: 800;
}

.rp-home-app__bar > span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.rp-home-app__bar i.bi-lightning-charge-fill {
  color: var(--rp-brand);
}

.rp-home-app__balance {
  margin: 0.2rem 0.7rem 0.5rem;
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(140deg, var(--rp-brand), var(--rp-brand-hover));
  box-shadow: 0 14px 30px -16px rgba(var(--rp-brand-rgb), 0.8);
}

.rp-home-app__balance small {
  opacity: 0.9;
  font-size: 0.72rem;
}

.rp-home-app__balance strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.2;
  margin-top: 0.15rem;
}

.rp-home-app__trend {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.rp-home-app__quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  padding: 0.2rem 0.7rem 0.6rem;
}

.rp-home-app__quick span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.5rem 0.2rem;
  border-radius: 12px;
  background: var(--rp-surface);
  border: 1px solid var(--rp-glass-border);
  font-size: 0.66rem;
  font-weight: 700;
}

.rp-home-app__quick i {
  color: var(--rp-brand);
  font-size: 0.95rem;
}

.rp-home-app__tx {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0.7rem 0.8rem;
  display: grid;
  gap: 0.4rem;
}

.rp-home-app__tx li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
}

.rp-home-app__ic {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--rp-brand-rgb), 0.12);
  color: var(--rp-brand);
  font-size: 0.8rem;
}

.rp-home-app__ic.is-pos {
  background: rgba(34, 197, 94, 0.14);
  color: #16a34a;
}

.rp-home-app__t {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rp-home-app__t b {
  font-size: 0.74rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rp-home-app__t em {
  font-style: normal;
  font-size: 0.64rem;
  color: var(--rp-text-muted);
}

.rp-home-app__tx > li > b {
  font-size: 0.74rem;
  white-space: nowrap;
}

.rp-home-app__tx > li > b.is-pos {
  color: #16a34a;
}

/* Social proof: trust badges + testimonials */
.rp-home-trust-badges {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}

.rp-home-trust-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 14px;
  background: var(--rp-surface);
  border: 1px solid var(--rp-glass-border);
}

.rp-home-trust-badge i {
  font-size: 1.4rem;
  color: var(--rp-brand);
}

.rp-home-trust-badge strong {
  display: block;
  color: var(--rp-text);
  font-size: 0.95rem;
}

.rp-home-trust-badge span {
  color: var(--rp-text-muted);
  font-size: 0.82rem;
}

.rp-home-testimonials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.rp-home-review-cta {
  margin-top: 1.5rem;
  text-align: center;
}

.rp-home-testimonial {
  margin: 0;
  padding: 1.5rem;
  border-radius: 16px;
  background: var(--rp-surface);
  border: 1px solid var(--rp-glass-border);
  box-shadow: 0 20px 50px -34px rgba(15, 23, 42, 0.45);
}

.rp-home-stars {
  color: #f59e0b;
  font-size: 0.85rem;
  letter-spacing: 0.1rem;
  margin-bottom: 0.65rem;
}

.rp-home-testimonial blockquote {
  margin: 0 0 1rem;
  color: var(--rp-text);
  font-size: 0.98rem;
  line-height: 1.55;
}

.rp-home-testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.rp-home-testimonial__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(140deg, var(--rp-brand), var(--rp-brand-hover));
}

.rp-home-testimonial figcaption b {
  display: block;
  color: var(--rp-text);
  font-size: 0.9rem;
}

.rp-home-testimonial figcaption em {
  font-style: normal;
  color: var(--rp-text-muted);
  font-size: 0.8rem;
}

.rp-home-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.rp-home-showcase-item {
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.04);
  box-shadow: 0 22px 50px -30px rgba(15, 23, 42, 0.5);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.rp-home-showcase-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: 100%;
  object-fit: contain;
  display: block;
  background: rgba(15, 23, 42, 0.92);
  transition: transform 0.5s ease;
}

.rp-home-showcase-video {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: rgba(15, 23, 42, 0.92);
}

.rp-home-sound-toggle {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 1.05rem;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px -8px rgba(15, 23, 42, 0.7);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rp-home-sound-toggle:hover,
.rp-home-sound-toggle:focus-visible {
  background: rgba(15, 23, 42, 0.78);
  transform: scale(1.06);
  outline: none;
}

.rp-home-showcase-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(15, 23, 42, 0.92);
}

.rp-home-showcase-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.rp-home-showcase-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.78));
}

/* RushPay Tips: square 1000x1000 art shown in full (never cropped) */
.rp-home-tips-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.rp-home-tip {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--rp-surface);
  border: 1px solid var(--rp-glass-border);
  box-shadow: 0 22px 50px -32px rgba(15, 23, 42, 0.45);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.rp-home-tip__media {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--rp-bg);
}

.rp-home-tip__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #000;
}

.rp-home-tip__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.rp-home-tip figcaption {
  padding: 0.9rem 1rem 1.1rem;
  font-weight: 700;
  color: var(--rp-text);
}

/* Partner logos */
.rp-home-partner-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  align-items: center;
}

.rp-home-partner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 1.25rem;
  border-radius: 14px;
  background: var(--rp-surface);
  border: 1px solid var(--rp-glass-border);
  min-height: 84px;
}

.rp-home-partner img {
  max-width: 100%;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Auto-scrolling marquee for media, tips, partners, and reviews (pauses on hover/focus).
   Fallback (and reduced-motion): a manually scrollable horizontal row. */
.rp-home-marquee {
  position: relative;
  margin-top: 2rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.rp-home-marquee::-webkit-scrollbar {
  display: none;
}

.rp-home-marquee__track {
  display: flex;
  width: max-content;
  padding: 0.25rem 0;
}

.rp-home-marquee--tips .rp-home-tip {
  flex: 0 0 clamp(220px, 24vw, 280px);
  width: clamp(220px, 24vw, 280px);
  margin-right: 1.25rem;
}

.rp-home-marquee--showcase .rp-home-showcase-item {
  flex: 0 0 clamp(280px, 32vw, 430px);
  width: clamp(280px, 32vw, 430px);
  aspect-ratio: 16 / 9;
  margin-right: 1.25rem;
  align-self: stretch;
}

.rp-home-marquee--showcase .rp-home-showcase-media {
  height: 100%;
}

.rp-home-marquee--partners .rp-home-partner {
  flex: 0 0 180px;
  width: 180px;
  margin: 0 1rem 0 0;
}

.rp-home-marquee--reviews .rp-home-testimonial {
  flex: 0 0 clamp(280px, 30vw, 360px);
  width: clamp(280px, 30vw, 360px);
  margin-right: 1.25rem;
  align-self: stretch;
}

/* Scroll-reveal: progressively enhanced, hidden only until observed */
.rp-reveal {
  opacity: 0;
  transform: translateY(24px);
}

.rp-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes rpRevealUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
  }

  @keyframes rpFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }

  @keyframes rpGlowDrift {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.9; }
    50% { transform: translate(-6px, 8px) scale(1.05); opacity: 1; }
  }

  @keyframes rpMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }

  .rp-home-marquee {
    overflow: hidden;
  }

  .rp-home-marquee__track {
    animation: rpMarquee var(--rp-marquee-duration, 40s) linear infinite;
    will-change: transform;
  }

  .rp-home-marquee--tips .rp-home-marquee__track {
    --rp-marquee-duration: 55s;
  }

  .rp-home-marquee--showcase .rp-home-marquee__track {
    --rp-marquee-duration: 58s;
  }

  .rp-home-marquee--partners .rp-home-marquee__track {
    --rp-marquee-duration: 34s;
  }

  .rp-home-marquee--reviews .rp-home-marquee__track {
    --rp-marquee-duration: 60s;
  }

  .rp-home-marquee:hover .rp-home-marquee__track,
  .rp-home-marquee:focus-within .rp-home-marquee__track {
    animation-play-state: paused;
  }

  .rp-reveal.is-visible {
    animation: rpRevealUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: var(--rp-reveal-delay, 0s);
  }

  .rp-home-stage__glow {
    animation: rpGlowDrift 9s ease-in-out infinite;
  }

  .rp-home-device {
    animation: rpFloat 8s ease-in-out infinite;
  }

  .rp-home-float--a { animation: rpFloat 6s ease-in-out infinite; }
  .rp-home-float--b { animation: rpFloat 7s ease-in-out infinite 0.5s; }
  .rp-home-float--c { animation: rpFloat 6.5s ease-in-out infinite 0.9s; }

  .rp-home-trust-badge,
  .rp-home-testimonial {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .rp-home-trust-badge:hover,
  .rp-home-testimonial:hover,
  .rp-home-tip:hover {
    transform: translateY(-4px);
  }

  .rp-home-partner {
    transition: transform 0.3s ease, border-color 0.3s ease;
  }

  .rp-home-partner:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--rp-brand-rgb), 0.45);
  }

  .rp-home-showcase-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px -28px rgba(15, 23, 42, 0.6);
  }

  .rp-home-showcase-item:hover .rp-home-showcase-media {
    transform: scale(1.05);
  }

  .rp-home-tile,
  .rp-home-pill-grid a {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  }

  .rp-home-tile:hover {
    transform: translateY(-6px);
  }

  .rp-home-pill-grid a:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--rp-brand-rgb), 0.5);
  }

  .rp-home-security-list div {
    transition: transform 0.3s ease;
  }

  .rp-home-security-list div:hover {
    transform: translateX(4px);
  }
}

@media (max-width: 1099.98px) {
  .rp-home-stage {
    width: 100%;
    justify-self: stretch;
    min-height: 460px;
    margin-top: 0.5rem;
  }
}

@media (max-width: 991.98px) {
  .rp-home-showcase-grid,
  .rp-home-tips-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rp-home-trust-badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .rp-home-testimonials {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
}

@media (max-width: 575.98px) {
  .rp-home-showcase-grid,
  .rp-home-tips-grid {
    grid-template-columns: 1fr;
  }

  .rp-home-trust-badges {
    grid-template-columns: 1fr;
  }

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

  .rp-home-float--a { left: 0; }
  .rp-home-float--b { right: 0; }
}

/* Public help pages: verify gift card + tutorials */
.rp-info-page {
  background:
    radial-gradient(circle at 8% 6%, rgba(var(--rp-brand-rgb), 0.12), transparent 28rem),
    radial-gradient(circle at 92% 12%, rgba(20, 184, 166, 0.11), transparent 26rem),
    var(--rp-bg, #f8fafc);
}

.rp-info-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.rp-info-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 1.25rem;
  align-items: stretch;
  min-height: 360px;
  margin-bottom: 1rem;
}

.rp-info-hero__copy,
.rp-gift-verify-card,
.rp-tool-panel,
.rp-tool-aside,
.rp-guide-card,
.rp-workflow-list > div,
.rp-dev-help,
.rp-bank-section,
.rp-info-metrics > div,
.rp-tutorial-index {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 22px 60px -38px rgba(15, 23, 42, 0.45);
}

html[data-theme="dark"] .rp-info-hero__copy,
html[data-theme="dark"] .rp-gift-verify-card,
html[data-theme="dark"] .rp-tool-panel,
html[data-theme="dark"] .rp-tool-aside,
html[data-theme="dark"] .rp-guide-card,
html[data-theme="dark"] .rp-workflow-list > div,
html[data-theme="dark"] .rp-dev-help,
html[data-theme="dark"] .rp-bank-section,
html[data-theme="dark"] .rp-info-metrics > div,
html[data-theme="dark"] .rp-tutorial-index {
  background: rgba(17, 24, 39, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
}

.rp-info-hero__copy {
  padding: clamp(1.5rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rp-info-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  margin: 0 0 0.85rem;
  color: var(--rp-brand);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rp-info-hero h1 {
  max-width: 780px;
  margin: 0;
  color: var(--rp-text, #111827);
  font-size: clamp(2.35rem, 6vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.rp-gift-verify-page .rp-info-hero h1 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.04;
}

.rp-info-lede {
  max-width: 680px;
  margin: 1.05rem 0 0;
  color: var(--rp-text-muted, #667085);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.65;
}

.rp-info-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.rp-info-actions .btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 800;
}

.rp-gift-verify-card {
  padding: 1.25rem;
  display: grid;
  align-content: center;
  gap: 1rem;
  overflow: hidden;
}

.rp-gift-verify-hero {
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.85fr);
}

.rp-gift-card-art {
  min-height: 246px;
  padding: 1.1rem;
  border-radius: 8px;
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.24), transparent 10rem),
    linear-gradient(135deg, #f97316 0%, #d99a22 46%, #78b84a 100%);
  color: #fff;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 0.8rem;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.rp-gift-card-art--modern {
  min-height: 340px;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 0.65rem;
}

.rp-gift-card-art::after {
  content: "";
  position: absolute;
  right: -3rem;
  bottom: -5rem;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  border: 1.5rem solid rgba(255, 255, 255, 0.11);
  pointer-events: none;
}

.rp-gift-card-art__top,
.rp-gift-card-art__foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.rp-gift-card-art__top img {
  width: 118px;
  height: auto;
  padding: 0.25rem 0.45rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
}

.rp-gift-card-merchant {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 70%;
  padding: 0.38rem 0.55rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
}

.rp-gift-card-merchant img {
  width: 76px;
  padding: 0;
  background: transparent;
}

.rp-gift-card-merchant strong {
  min-width: 0;
  font-size: 0.84rem;
  line-height: 1.1;
}

.rp-gift-card-art__top > span {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.18);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
}

.rp-gift-card-art__value,
.rp-gift-card-art__codes,
.rp-gift-card-art__foot {
  position: relative;
  z-index: 1;
}

.rp-gift-card-art__value {
  align-self: center;
}

.rp-gift-card-art__value span,
.rp-gift-card-art__codes span,
.rp-gift-card-art__foot span {
  display: block;
  color: var(--rp-gc-text, #fff);
  opacity: 0.84;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
}

.rp-gift-card-art__value strong {
  display: block;
  margin-top: 0.15rem;
  color: var(--rp-gc-text, #fff);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.rp-gift-card-art__codes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.rp-gift-card-art__codes--payment {
  align-items: stretch;
  margin-top: 0.35rem;
}

.rp-gift-card-art__codes div {
  min-width: 0;
  padding: 0.7rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.rp-gift-card-art__scan {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.5rem;
}

.rp-gift-card-art__scan span,
.rp-gift-card-art__scan strong {
  grid-column: 1;
}

.rp-gift-card-art__scan i {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 4.4rem;
  height: 4.4rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-size: 3.1rem;
}

.rp-gift-card-art__details {
  display: grid;
  align-content: center;
  gap: 0.28rem;
}

.rp-gift-card-art__details strong:not(:last-child) {
  padding-bottom: 0.22rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.rp-gift-card-art__codes strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--rp-gc-text, #fff);
  font-size: 0.76rem;
  line-height: 1.25;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}

.rp-gift-card-art__foot {
  padding-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.rp-gift-card-art__foot span:last-child {
  text-align: right;
}

.rp-gift-check-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.rp-gift-check-list div {
  display: grid;
  gap: 0.35rem;
  padding: 0.75rem;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.04);
  color: var(--rp-text, #111827);
  font-weight: 800;
  font-size: 0.85rem;
}

html[data-theme="dark"] .rp-gift-check-list div {
  background: rgba(255, 255, 255, 0.06);
}

.rp-gift-check-list i {
  color: #14b8a6;
}

.rp-gift-use-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.rp-gift-spec-intro,
.rp-gift-workflow,
.rp-gift-business-use,
.rp-gift-different,
.rp-gift-deep-card {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 22px 60px -42px rgba(15, 23, 42, 0.45);
}

html[data-theme="dark"] .rp-gift-spec-intro,
html[data-theme="dark"] .rp-gift-workflow,
html[data-theme="dark"] .rp-gift-business-use,
html[data-theme="dark"] .rp-gift-different,
html[data-theme="dark"] .rp-gift-deep-card {
  background: rgba(17, 24, 39, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
}

.rp-gift-spec-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.58fr);
  gap: 1rem;
  align-items: center;
  padding: clamp(1.2rem, 3vw, 1.75rem);
  margin: 1rem 0;
}

.rp-gift-spec-intro h2,
.rp-gift-workflow h2,
.rp-gift-business-use h2,
.rp-gift-different h2,
.rp-gift-deep-card h2 {
  margin: 0 0 0.55rem;
  color: var(--rp-text, #111827);
  font-size: clamp(1.35rem, 2.7vw, 2rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.rp-gift-spec-intro p,
.rp-gift-deep-card p,
.rp-gift-different p {
  margin: 0;
  color: var(--rp-text-muted, #667085);
  line-height: 1.65;
}

.rp-gift-spec-tags,
.rp-gift-use-tags,
.rp-gift-protection-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.rp-gift-spec-tags span,
.rp-gift-use-tags span,
.rp-gift-protection-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.38rem 0.62rem;
  border-radius: 999px;
  background: rgba(var(--rp-brand-rgb), 0.1);
  color: var(--rp-text, #111827);
  font-weight: 800;
  font-size: 0.82rem;
}

.rp-gift-use-grid article {
  min-width: 0;
  padding: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 22px 60px -42px rgba(15, 23, 42, 0.45);
}

html[data-theme="dark"] .rp-gift-use-grid article {
  background: rgba(17, 24, 39, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
}

.rp-gift-use-grid i {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.8rem;
  border-radius: 8px;
  background: rgba(var(--rp-brand-rgb), 0.12);
  color: var(--rp-brand);
  font-size: 1.1rem;
}

.rp-gift-use-grid h2 {
  margin: 0 0 0.45rem;
  color: var(--rp-text, #111827);
  font-size: 1.05rem;
  letter-spacing: 0;
}

.rp-gift-use-grid p {
  margin: 0;
  color: var(--rp-text-muted, #667085);
  line-height: 1.55;
}

.rp-gift-deep-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.rp-gift-deep-card,
.rp-gift-workflow,
.rp-gift-business-use,
.rp-gift-different {
  padding: clamp(1.15rem, 3vw, 1.6rem);
}

.rp-gift-code-explainer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.rp-gift-code-explainer > div,
.rp-gift-flow-steps > div {
  min-width: 0;
  padding: 0.9rem;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

html[data-theme="dark"] .rp-gift-code-explainer > div,
html[data-theme="dark"] .rp-gift-flow-steps > div {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.rp-gift-code-explainer strong,
.rp-gift-flow-steps strong {
  display: block;
  color: var(--rp-text, #111827);
  line-height: 1.25;
}

.rp-gift-code-explainer p,
.rp-gift-flow-steps p {
  margin: 0.35rem 0 0;
  color: var(--rp-text-muted, #667085);
  font-size: 0.9rem;
  line-height: 1.5;
}

.rp-gift-ussd-code {
  display: inline-flex;
  margin-top: 1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.15rem;
  font-weight: 900;
}

.rp-gift-flow-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.rp-gift-flow-steps span {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.65rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rp-brand), var(--rp-brand-soft));
  color: #fff;
  font-weight: 900;
}

.rp-gift-protection-strip {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.rp-gift-business-use {
  display: grid;
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  margin: 1rem 0;
}

.rp-gift-different {
  margin: 1rem 0;
  background:
    linear-gradient(135deg, rgba(var(--rp-brand-rgb), 0.1), rgba(20, 184, 166, 0.08)),
    rgba(255, 255, 255, 0.9);
}

html[data-theme="dark"] .rp-gift-different {
  background:
    linear-gradient(135deg, rgba(var(--rp-brand-rgb), 0.12), rgba(20, 184, 166, 0.1)),
    rgba(17, 24, 39, 0.9);
}

.rp-tool-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 1rem;
  align-items: start;
  margin-top: 1rem;
}

.rp-tool-panel,
.rp-tool-aside,
.rp-bank-section,
.rp-guide-section,
.rp-dev-help {
  padding: clamp(1.1rem, 3vw, 1.6rem);
}

.rp-tool-panel__head,
.rp-bank-head,
.rp-section-head,
.rp-dev-help {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.rp-tool-panel__head h2,
.rp-tool-aside h2,
.rp-section-head h2,
.rp-bank-head h2,
.rp-dev-help h2 {
  margin: 0;
  color: var(--rp-text, #111827);
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: 0;
}

.rp-tool-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  color: #0f766e;
  font-size: 0.82rem;
  font-weight: 800;
}

.rp-gift-form {
  margin-top: 1.25rem;
}

.rp-gift-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
}

.rp-gift-code-row .form-control,
.rp-bank-search .form-control {
  min-height: 46px;
  border-radius: 8px;
}

.rp-gift-empty {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.09);
  color: var(--rp-text-muted, #667085);
}

.rp-gift-empty i {
  color: #2563eb;
}

.rp-gift-empty p {
  margin: 0;
}

.rp-gift-result-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.15rem;
  border-radius: 8px;
}

.rp-gift-result-panel.is-valid {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.26);
}

.rp-gift-result-panel.is-invalid {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.24);
}

.rp-gift-result-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
}

.rp-gift-result-panel.is-valid .rp-gift-result-icon {
  color: #16a34a;
}

.rp-gift-result-panel.is-invalid .rp-gift-result-icon {
  color: #dc2626;
}

.rp-gift-result-panel span,
.rp-gift-result-panel strong,
.rp-gift-result-panel small {
  display: block;
}

.rp-gift-result-panel span {
  color: var(--rp-text-muted, #667085);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.rp-gift-result-panel strong {
  margin-top: 0.1rem;
  color: var(--rp-text, #111827);
  font-size: 1.75rem;
}

.rp-gift-result-panel p {
  margin: 0.25rem 0 0;
  color: var(--rp-text-muted, #667085);
}

.rp-info-list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}

.rp-info-list div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  color: var(--rp-text-muted, #667085);
}

.rp-info-list i {
  color: var(--rp-brand);
}

.rp-inline-link {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
}

.rp-info-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.rp-info-metrics > div {
  padding: 1rem;
}

.rp-info-metrics strong,
.rp-info-metrics span {
  display: block;
}

.rp-info-metrics strong {
  color: var(--rp-text, #111827);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.1;
}

.rp-info-metrics span {
  margin-top: 0.35rem;
  color: var(--rp-text-muted, #667085);
}

.rp-tutorial-index {
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
}

.rp-tutorial-index a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--rp-text, #111827);
  text-decoration: none;
  font-weight: 800;
}

.rp-tutorial-index a:hover,
.rp-tutorial-index a:focus {
  border-color: rgba(var(--rp-brand-rgb), 0.45);
  color: var(--rp-brand);
}

.rp-tutorial-index i,
.rp-guide-card > i,
.rp-workflow-list i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(var(--rp-brand-rgb), 0.1);
  color: var(--rp-brand);
  font-size: 1.15rem;
}

.rp-guide-section {
  margin-top: 1rem;
}

.rp-section-head {
  margin-bottom: 1rem;
}

.rp-tutorials-page .rp-section-head {
  display: block;
}

.rp-tutorials-page .rp-section-head .rp-info-kicker {
  margin-bottom: 0.45rem;
}

.rp-guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.rp-guide-card {
  padding: 1.1rem;
}

.rp-guide-card h3 {
  margin: 0.9rem 0 0.75rem;
  color: var(--rp-text, #111827);
  font-size: 1rem;
}

.rp-guide-card ol {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--rp-text-muted, #667085);
  font-size: 0.92rem;
  line-height: 1.55;
}

.rp-workflow-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.rp-workflow-list > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  padding: 1rem;
  min-width: 0;
}

.rp-workflow-list strong,
.rp-workflow-list span {
  display: block;
}

.rp-workflow-list strong {
  color: var(--rp-text, #111827);
  grid-column: 2;
  align-self: center;
  justify-self: start;
  min-width: 0;
  max-width: 100%;
  text-align: left;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.rp-workflow-list span {
  grid-column: 1 / -1;
  margin-top: 0.2rem;
  color: var(--rp-text-muted, #667085);
  min-width: 0;
  overflow-wrap: anywhere;
}

.rp-dev-help {
  margin-top: 1rem;
  align-items: center;
}

.rp-dev-help p {
  max-width: 680px;
  margin: 0.5rem 0 0;
  color: var(--rp-text-muted, #667085);
}

.rp-bank-section {
  margin-top: 1rem;
}

.rp-bank-head {
  margin-bottom: 1rem;
}

.rp-bank-head p {
  margin: 0.45rem 0 0;
  color: var(--rp-text-muted, #667085);
}

.rp-bank-search {
  position: relative;
  width: min(100%, 360px);
}

.rp-bank-search i {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--rp-text-muted, #667085);
  z-index: 1;
}

.rp-bank-search .form-control {
  padding-left: 2.35rem;
}

.rp-bank-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--rp-text-muted, #667085);
  font-weight: 700;
}

.rp-bank-table-wrap {
  max-height: 560px;
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
}

.rp-bank-table {
  color: var(--rp-text, #111827);
}

.rp-bank-table thead th {
  position: sticky;
  top: 0;
  background: #111827;
  color: #fff;
  z-index: 1;
}

.bank-code-pill {
  display: inline-flex;
  align-items: center;
  min-width: 54px;
  justify-content: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(var(--rp-brand-rgb), 0.12);
  color: var(--rp-brand);
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (max-width: 991.98px) {
  .rp-info-hero,
  .rp-tool-section,
  .rp-dev-help {
    grid-template-columns: 1fr;
  }

  .rp-guide-grid,
  .rp-workflow-list,
  .rp-gift-use-grid,
  .rp-gift-flow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rp-gift-spec-intro,
  .rp-gift-business-use {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .rp-info-shell {
    width: min(100% - 1rem, 1180px);
    padding-top: 1rem;
  }

  .rp-info-hero__copy,
  .rp-gift-verify-card,
  .rp-tool-panel,
  .rp-tool-aside,
  .rp-bank-section,
  .rp-guide-card,
  .rp-dev-help {
    padding: 1rem;
  }

  .rp-gift-code-row,
  .rp-gift-check-list,
  .rp-guide-grid,
  .rp-workflow-list,
  .rp-info-metrics,
  .rp-gift-use-grid,
  .rp-gift-deep-grid,
  .rp-gift-code-explainer,
  .rp-gift-flow-steps {
    grid-template-columns: 1fr;
  }

  .rp-gift-verify-page .rp-info-hero h1 {
    font-size: clamp(1.85rem, 9vw, 2.45rem);
  }

  .rp-gift-spec-intro,
  .rp-gift-workflow,
  .rp-gift-business-use,
  .rp-gift-different,
  .rp-gift-deep-card {
    padding: 1rem;
  }

  .rp-tool-panel__head,
  .rp-bank-head,
  .rp-section-head,
  .rp-dev-help {
    display: grid;
  }

  .rp-bank-search {
    width: 100%;
  }

  .rp-gift-card-art {
    min-height: 180px;
  }

  .rp-gift-card-art__codes {
    grid-template-columns: 1fr;
  }

  .rp-gift-card-art__foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.15rem;
  }

  .rp-gift-card-art__foot span:last-child {
    text-align: left;
  }

  .rp-gift-verify-page .rp-gift-verify-card {
    padding: 0.85rem;
    gap: 0.75rem;
  }

  .rp-gift-verify-page .rp-gift-card-art {
    width: 100%;
    min-height: auto;
    aspect-ratio: 1.58 / 1;
    padding: 0.8rem;
    gap: 0.42rem;
    border-radius: 16px;
  }

  .rp-gift-verify-page .rp-gift-card-art::after {
    right: -2.6rem;
    bottom: -4.1rem;
    width: 9rem;
    height: 9rem;
    border-width: 1.35rem;
  }

  .rp-gift-verify-page .rp-gift-card-art__top img {
    width: 96px;
    padding: 0.18rem 0.3rem;
    border-radius: 8px;
  }

  .rp-gift-verify-page .rp-gift-card-merchant {
    max-width: 68%;
    gap: 0.35rem;
    padding: 0.25rem 0.38rem;
  }

  .rp-gift-verify-page .rp-gift-card-merchant img {
    width: 54px;
    padding: 0;
  }

  .rp-gift-verify-page .rp-gift-card-merchant strong {
    font-size: 0.58rem;
  }

  .rp-gift-verify-page .rp-gift-card-art__top > span {
    font-size: 0.74rem;
    padding: 0.3rem 0.6rem;
  }

  .rp-gift-verify-page .rp-gift-card-art__value span,
  .rp-gift-verify-page .rp-gift-card-art__codes span,
  .rp-gift-verify-page .rp-gift-card-art__foot span {
    font-size: 0.54rem;
  }

  .rp-gift-verify-page .rp-gift-card-art__value strong {
    font-size: 1.78rem;
    line-height: 0.98;
  }

  .rp-gift-verify-page .rp-gift-card-art__codes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .rp-gift-verify-page .rp-gift-card-art__codes div {
    padding: 0.5rem;
    border-radius: 8px;
  }

  .rp-gift-verify-page .rp-gift-card-art__scan {
    grid-template-columns: 1fr auto;
    gap: 0.35rem;
  }

  .rp-gift-verify-page .rp-gift-card-art__scan i {
    width: 2.55rem;
    height: 2.55rem;
    font-size: 1.8rem;
  }

  .rp-gift-verify-page .rp-gift-card-art__details {
    gap: 0.12rem;
  }

  .rp-gift-verify-page .rp-gift-card-art__codes strong {
    font-size: 0.58rem;
    line-height: 1.12;
  }

  .rp-gift-use-grid article {
    padding: 1rem;
  }

  .rp-gift-verify-page .rp-gift-card-art__foot {
    align-items: center;
    flex-direction: row;
    gap: 0.35rem;
    padding-top: 0.15rem;
  }

  .rp-gift-verify-page .rp-gift-card-art__foot span:last-child {
    text-align: right;
  }
}
/* Public navigation groups: retain the existing header while keeping the
   expanded product platform discoverable. */
.rp-public-nav .dropdown-menu {
  min-width: 16.5rem;
  padding: .55rem;
  border: 1px solid var(--rp-border, #e6e9ef);
  border-radius: 14px;
  box-shadow: 0 18px 46px rgba(20, 28, 45, .14);
}
.rp-public-nav .dropdown-item {
  padding: .68rem .78rem;
  border-radius: 9px;
  color: var(--rp-text, #182033);
  font-weight: 700;
}
.rp-public-nav .dropdown-item small {
  display: block;
  margin-top: .12rem;
  color: var(--rp-text-muted, #718096);
  font-size: .72rem;
  font-weight: 500;
}
.rp-public-nav .dropdown-item:hover,
.rp-public-nav .dropdown-item:focus {
  color: var(--rp-primary, #ef7d18);
  background: rgba(239, 125, 24, .09);
}
html[data-theme="dark"] .rp-public-nav .dropdown-menu {
  background: #171c28;
  border-color: rgba(255,255,255,.12);
}
html[data-theme="dark"] .rp-public-nav .dropdown-item { color: #f5f7fb; }
@media (max-width: 991.98px) {
  .rp-public-nav .dropdown-menu {
    min-width: 0;
    margin: .2rem 0 .4rem;
    box-shadow: none;
  }
}

/* Product landing pages: keep every surface tied to the active palette.
   This block intentionally follows the legacy public-page rules so the
   theme switch cannot leave light cards and dark-mode text mixed together. */
.rp-public-product-page {
  background: var(--rp-bg-deep);
  color: var(--rp-text);
}

.rp-public-product-page .rp-info-hero__copy,
.rp-public-product-page .rp-info-hero__visual,
.rp-public-product-page .rp-info-index,
.rp-public-product-page .rp-guide-grid > article,
.rp-public-product-page .rp-journey-card {
  background: var(--rp-surface);
  border-color: var(--rp-border);
  color: var(--rp-text);
}

.rp-public-product-page .rp-info-hero__copy h1,
.rp-public-product-page .rp-info-hero__copy h2,
.rp-public-product-page .rp-info-index h2,
.rp-public-product-page .rp-guide-grid > article h2,
.rp-public-product-page .rp-guide-grid > article h3,
.rp-public-product-page .rp-journey-card h2,
.rp-public-product-page .rp-journey-card h3 {
  color: var(--rp-text);
}

.rp-public-product-page .rp-info-hero__copy p,
.rp-public-product-page .rp-info-index p,
.rp-public-product-page .rp-guide-grid > article p,
.rp-public-product-page .rp-journey-card p {
  color: var(--rp-text-muted);
}

html[data-theme="light"] .rp-public-product-page {
  color-scheme: light;
}

html[data-theme="dark"] .rp-public-product-page {
  color-scheme: dark;
}
