.page-reseller-program {
  --rp-primary: #59c7ff;
  --rp-primary-strong: #229fdf;
  --rp-violet: #6e73ff;
  --rp-card: rgba(21, 27, 36, 0.86);
  --rp-card-strong: #171d26;
  --rp-border: rgba(255, 255, 255, 0.09);
  --rp-muted: #98a5b5;
  background: #090d12 !important;
  direction: rtl;
}

.page-reseller-program main { overflow: hidden; }

/* Keep the shared desktop header identical to the main site. The reseller
   content is RTL, but inheriting that direction on Bootstrap's flex navbar
   reverses the brand, navigation and customer-area button. */
@media (min-width: 992px) {
  .page-reseller-program .header .navbar,
  .page-reseller-program .header .navbar-nav {
    direction: ltr;
  }

  .page-reseller-program .header .navbar-nav .nav-item > a {
    direction: rtl;
  }
}

.rp-wrap {
  margin-inline: auto;
  max-width: 1180px;
  padding-inline: 22px;
  position: relative;
  width: 100%;
}

.rp-section { padding: 100px 0; position: relative; }
.rp-section-soft {
  background:
    radial-gradient(540px 340px at 100% 50%, rgba(89, 199, 255, .07), transparent 75%),
    rgba(255, 255, 255, .014);
  border-block: 1px solid rgba(255, 255, 255, .055);
}

.rp-eyebrow {
  align-items: center;
  background: rgba(89, 199, 255, .08);
  border: 1px solid rgba(89, 199, 255, .25);
  border-radius: 999px;
  color: var(--rp-primary);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 9px;
  letter-spacing: .12em;
  padding: 8px 13px;
}

.rp-eyebrow::before {
  background: var(--rp-primary);
  border-radius: 50%;
  box-shadow: 0 0 13px rgba(89, 199, 255, .7);
  content: "";
  height: 6px;
  width: 6px;
}

.rp-hero {
  min-height: 770px;
  padding: 190px 0 105px;
  position: relative;
}

.rp-hero::before {
  background:
    linear-gradient(rgba(89, 199, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(89, 199, 255, .045) 1px, transparent 1px);
  background-size: 52px 52px;
  content: "";
  inset: 0;
  mask-image: radial-gradient(circle at 70% 45%, #000 5%, transparent 66%);
  opacity: .75;
  pointer-events: none;
  position: absolute;
}

.rp-hero::after {
  background: rgba(53, 169, 235, .16);
  border-radius: 50%;
  content: "";
  filter: blur(100px);
  height: 480px;
  left: -240px;
  position: absolute;
  top: 100px;
  width: 480px;
}

.rp-hero-grid {
  align-items: center;
  display: grid;
  gap: 72px;
  grid-template-columns: minmax(0, 1fr) minmax(480px, .98fr);
}

.rp-hero-copy { position: relative; z-index: 2; }
.rp-hero h1 {
  font-size: clamp(48px, 5.4vw, 78px);
  font-weight: 900;
  line-height: 1.12;
  margin: 24px 0 23px;
  max-width: 700px;
}
.rp-hero h1 span {
  background: linear-gradient(100deg, #fff 5%, #84d9ff 48%, #777dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rp-hero-lead {
  color: #aab4c2 !important;
  font-size: 19px;
  line-height: 2;
  margin: 0;
  max-width: 680px;
}
.rp-hero-lead strong { color: #fff; }

.rp-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.rp-btn {
  align-items: center;
  border: 1px solid var(--rp-border);
  border-radius: 11px;
  display: inline-flex;
  font-size: 15px;
  font-weight: 800;
  gap: 10px;
  justify-content: center;
  min-height: 52px;
  padding: 0 25px;
  transition: .2s ease;
}
.rp-btn-primary {
  background: linear-gradient(135deg, var(--rp-primary), var(--rp-primary-strong));
  box-shadow: 0 15px 34px rgba(34, 159, 223, .2);
  color: #06121a !important;
}
.rp-btn-secondary { background: rgba(255, 255, 255, .025); color: #f7f9fb !important; }
.rp-btn:hover { border-color: rgba(89, 199, 255, .4); transform: translateY(-2px); }

.rp-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
}
.rp-trust-row span { align-items: center; color: #8f9cac; display: inline-flex; font-size: 13px; gap: 7px; }
.rp-trust-row i { color: #46d992; }

.rp-dashboard-shell {
  background: linear-gradient(145deg, rgba(25, 33, 44, .95), rgba(11, 15, 21, .96));
  border: 1px solid rgba(89, 199, 255, .18);
  border-radius: 24px;
  box-shadow: 0 38px 100px rgba(0, 0, 0, .42);
  direction: rtl;
  padding: 13px;
  position: relative;
  transform: perspective(1300px) rotateY(-4deg) rotateX(1deg);
  z-index: 2;
}
.rp-dashboard-shell::before {
  background: linear-gradient(90deg, transparent, rgba(89, 199, 255, .85), transparent);
  content: "";
  height: 1px;
  left: 14%;
  position: absolute;
  right: 14%;
  top: -1px;
}
.rp-browser-bar {
  align-items: center;
  border-bottom: 1px solid var(--rp-border);
  display: flex;
  justify-content: space-between;
  padding: 9px 8px 14px;
}
.rp-browser-dots { display: flex; gap: 6px; }
.rp-browser-dots i { background: #303b49; border-radius: 50%; height: 7px; width: 7px; }
.rp-browser-address { background: rgba(255, 255, 255, .035); border-radius: 6px; color: #667587; font-size: 9px; padding: 6px 12px; }
.rp-dashboard {
  background:
    radial-gradient(380px 210px at 100% 0%, rgba(89, 199, 255, .1), transparent 70%),
    #0d1218;
  border-radius: 15px;
  margin-top: 12px;
  min-height: 410px;
  padding: 20px;
}
.rp-dash-top { align-items: center; display: flex; justify-content: space-between; }
.rp-brand-mini { align-items: center; color: #fff; display: flex; font-size: 12px; font-weight: 800; gap: 8px; }
.rp-brand-mini img { border-radius: 7px; height: 27px; width: 27px; }
.rp-live { color: #55dd9a; font-size: 10px; }
.rp-live::before { background: currentColor; border-radius: 50%; content: ""; display: inline-block; height: 6px; margin-left: 5px; width: 6px; }
.rp-dashboard h3 { font-size: 21px; margin: 29px 0 4px; }
.rp-dashboard > p { color: #738195 !important; font-size: 11px; }
.rp-stat-grid { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); margin-top: 20px; }
.rp-stat {
  background: rgba(255, 255, 255, .025);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 11px;
  padding: 14px;
}
.rp-stat small { color: #788596; display: block; font-size: 9px; }
.rp-stat strong { color: #f7f9fb; display: block; font-size: 20px; margin-top: 7px; }
.rp-stat strong.accent { color: var(--rp-primary); }
.rp-order-table { background: rgba(255, 255, 255, .018); border: 1px solid rgba(255, 255, 255, .06); border-radius: 11px; margin-top: 13px; overflow: hidden; }
.rp-order-row { align-items: center; border-bottom: 1px solid rgba(255, 255, 255, .055); display: grid; font-size: 9px; gap: 8px; grid-template-columns: 1.2fr .9fr .7fr .6fr; padding: 11px; }
.rp-order-row:last-child { border-bottom: 0; }
.rp-order-row.head { color: #687688; }
.rp-order-row:not(.head) { color: #c8d0d9; }
.rp-status { background: rgba(70, 217, 146, .1); border: 1px solid rgba(70, 217, 146, .2); border-radius: 99px; color: #4add99; padding: 4px 6px; text-align: center; }
.rp-powered { color: #657386; font-size: 9px; margin-top: 15px; text-align: center; }
.rp-powered strong { color: var(--rp-primary); }

.rp-strip { margin-top: -45px; position: relative; z-index: 3; }
.rp-strip-inner {
  background: rgba(20, 26, 35, .92);
  border: 1px solid var(--rp-border);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .24);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  backdrop-filter: blur(18px);
}
.rp-strip-item { padding: 26px 22px; text-align: center; }
.rp-strip-item + .rp-strip-item { border-right: 1px solid var(--rp-border); }
.rp-strip-item strong { color: #fff; display: block; font-size: 22px; }
.rp-strip-item span { color: #7e8c9d; display: block; font-size: 12px; margin-top: 7px; }

.rp-heading { margin: 0 auto 52px; max-width: 720px; text-align: center; }
.rp-heading h2 { font-size: clamp(34px, 4vw, 50px); margin: 18px 0 14px; }
.rp-heading p { font-size: 17px; line-height: 1.9; margin: 0; }

.rp-grid-3 { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.rp-feature-card {
  background: var(--rp-card);
  border: 1px solid var(--rp-border);
  border-radius: 18px;
  min-height: 255px;
  padding: 27px;
  position: relative;
  transition: .22s ease;
}
.rp-feature-card:hover { border-color: rgba(89, 199, 255, .25); transform: translateY(-5px); }
.rp-icon {
  align-items: center;
  background: rgba(89, 199, 255, .08);
  border: 1px solid rgba(89, 199, 255, .19);
  border-radius: 12px;
  color: var(--rp-primary);
  display: flex;
  font-size: 23px;
  height: 49px;
  justify-content: center;
  width: 49px;
}
.rp-feature-card h3 { font-size: 20px; margin: 22px 0 10px; }
.rp-feature-card p { font-size: 14px; line-height: 1.9; margin: 0; }

.rp-flow { counter-reset: reseller-step; display: grid; gap: 15px; grid-template-columns: repeat(4, 1fr); }
.rp-step {
  background: linear-gradient(145deg, rgba(24, 31, 41, .9), rgba(15, 20, 27, .9));
  border: 1px solid var(--rp-border);
  border-radius: 17px;
  counter-increment: reseller-step;
  min-height: 225px;
  padding: 24px;
  position: relative;
}
.rp-step::before {
  color: rgba(89, 199, 255, .16);
  content: "0" counter(reseller-step);
  font-size: 54px;
  font-weight: 900;
  left: 19px;
  line-height: 1;
  position: absolute;
  top: 18px;
}
.rp-step i { color: var(--rp-primary); font-size: 26px; }
.rp-step h3 { font-size: 18px; margin: 40px 0 10px; }
.rp-step p { font-size: 13px; line-height: 1.85; margin: 0; }

.rp-split { align-items: center; display: grid; gap: 65px; grid-template-columns: 1fr 1fr; }
.rp-split-copy h2 { font-size: clamp(34px, 4vw, 49px); margin: 17px 0; }
.rp-split-copy > p { font-size: 16px; line-height: 2; }
.rp-checks { display: grid; gap: 14px; margin-top: 28px; }
.rp-check { align-items: flex-start; display: flex; gap: 12px; }
.rp-check i { color: #4add99; font-size: 18px; margin-top: 5px; }
.rp-check strong { color: #f5f7fa; display: block; font-size: 15px; }
.rp-check span { color: #7f8c9c; display: block; font-size: 13px; margin-top: 4px; }

.rp-commission {
  background:
    radial-gradient(320px 240px at 15% 20%, rgba(110, 115, 255, .17), transparent 72%),
    linear-gradient(145deg, #1a212d, #11171f);
  border: 1px solid rgba(110, 115, 255, .25);
  border-radius: 22px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .25);
  padding: 35px;
  position: relative;
}
.rp-commission-label { color: #9aa7b7; font-size: 13px; }
.rp-commission-number { color: #fff; font-size: 76px; font-weight: 900; letter-spacing: -.06em; line-height: 1; margin: 14px 0; }
.rp-commission-number span { color: var(--rp-primary); font-size: 32px; }
.rp-commission p { font-size: 14px; line-height: 1.9; }
.rp-growth { background: rgba(255, 255, 255, .035); border: 1px solid var(--rp-border); border-radius: 12px; margin-top: 24px; padding: 16px; }
.rp-growth strong { color: #fff; display: block; font-size: 14px; }
.rp-growth span { color: #8996a6; display: block; font-size: 12px; margin-top: 5px; }

.rp-compare { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.rp-compare-card { background: var(--rp-card); border: 1px solid var(--rp-border); border-radius: 20px; padding: 30px; }
.rp-compare-card.accent { border-color: rgba(89, 199, 255, .24); box-shadow: inset 0 1px 0 rgba(89, 199, 255, .08); }
.rp-compare-card h3 { font-size: 23px; margin: 0 0 22px; }
.rp-compare-list { display: grid; gap: 15px; }
.rp-compare-list div { align-items: flex-start; border-bottom: 1px solid rgba(255, 255, 255, .055); display: flex; gap: 11px; padding-bottom: 15px; }
.rp-compare-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.rp-compare-list i { color: var(--rp-primary); margin-top: 5px; }
.rp-compare-list strong { color: #dce2e9; font-size: 14px; }

.rp-faq { display: grid; gap: 12px; margin: 0 auto; max-width: 850px; }
.rp-faq details { background: var(--rp-card); border: 1px solid var(--rp-border); border-radius: 14px; overflow: hidden; }
.rp-faq summary { color: #f4f7fa; cursor: pointer; font-size: 16px; font-weight: 800; list-style: none; padding: 20px 23px; position: relative; }
.rp-faq summary::-webkit-details-marker { display: none; }
.rp-faq summary::after { color: var(--rp-primary); content: "+"; font-size: 22px; left: 22px; position: absolute; top: 15px; }
.rp-faq details[open] summary::after { content: "−"; }
.rp-faq details p { border-top: 1px solid var(--rp-border); font-size: 14px; line-height: 1.9; margin: 0; padding: 18px 23px 22px; }

.rp-final { padding: 35px 0 110px; }
.rp-final-card {
  align-items: center;
  background:
    radial-gradient(440px 240px at 100% 0%, rgba(89, 199, 255, .18), transparent 70%),
    linear-gradient(135deg, #171e28, #10151c);
  border: 1px solid rgba(89, 199, 255, .2);
  border-radius: 25px;
  display: flex;
  gap: 35px;
  justify-content: space-between;
  overflow: hidden;
  padding: 46px;
  position: relative;
}
.rp-final-card h2 { font-size: clamp(30px, 4vw, 45px); margin: 0 0 10px; }
.rp-final-card p { line-height: 1.8; margin: 0; }
.rp-final-card .rp-actions { flex-shrink: 0; margin-top: 0; }

@media (max-width: 1199px) {
  .rp-hero-grid { gap: 42px; grid-template-columns: 1fr 1fr; }
  .rp-dashboard-shell { transform: none; }
  .rp-flow { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
  .page-reseller-program .navbar-area > .container { max-width: calc(100% - 28px); }
  .rp-hero { padding-top: 145px; }
  .rp-hero-grid, .rp-split { grid-template-columns: 1fr; }
  .rp-hero-copy { text-align: center; }
  .rp-hero-lead { margin-inline: auto; }
  .rp-actions, .rp-trust-row { justify-content: center; }
  .rp-dashboard-shell { margin: 0 auto; max-width: 650px; }
  .rp-strip { margin-top: 0; }
  .rp-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .rp-strip-item:nth-child(3) { border-top: 1px solid var(--rp-border); }
  .rp-strip-item:nth-child(4) { border-top: 1px solid var(--rp-border); }
  .rp-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .rp-commission { max-width: 620px; }
  .rp-final-card { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 767px) {
  .rp-wrap { padding-inline: 16px; }
  .rp-section { padding: 76px 0; }
  .rp-hero { min-height: auto; padding: 135px 0 75px; }
  .rp-hero h1 { font-size: 44px; }
  .rp-hero-lead { font-size: 16px; }
  .rp-dashboard { min-height: 345px; padding: 14px; }
  .rp-stat-grid { grid-template-columns: 1fr 1fr; }
  .rp-stat:last-child { grid-column: 1 / -1; }
  .rp-order-row { grid-template-columns: 1.2fr .8fr .7fr; }
  .rp-order-row span:nth-child(3) { display: none; }
  .rp-strip-inner, .rp-grid-3, .rp-flow, .rp-compare { grid-template-columns: 1fr; }
  .rp-strip-item + .rp-strip-item { border-right: 0; border-top: 1px solid var(--rp-border); }
  .rp-feature-card { min-height: auto; }
  .rp-final-card { padding: 30px 23px; }
  .rp-final-card .rp-btn { width: 100%; }
}

@media (max-width: 420px) {
  .rp-hero h1 { font-size: 38px; }
  .rp-actions .rp-btn { width: 100%; }
  .rp-dashboard-shell { padding: 8px; }
  .rp-commission { padding: 27px 22px; }
  .rp-commission-number { font-size: 62px; }
}
