/* Referral program — reached from "For Partners". Sidebar (Select
   service/rank/country widget) + content column: three referral tiers
   (developers / partners / arbitrageurs) each in their own card, plus a
   closing "Withdraw Funds" CTA. Same palette/conventions as the rest of
   the logged-area pages. */
:root{
  --blue-dark:#0f3d28;
  --blue-mid:#1f7a52;
  --blue-bright:#27935f;
  --accent-orange:#f39c1f;
  --header-blue:#0d3322;
}

html,body{height:100%;}
body{background:#eef5f2;display:flex;flex-direction:column;min-height:100vh;}

.rp-layout{
  flex:1 0 auto;
  max-width:1560px;
  margin:0 auto;
  padding:32px 16px 60px;
  width:100%;
  display:flex;
  align-items:flex-start;
  gap:24px;
  flex-wrap:wrap;
}

.rp-content{flex:1 1 600px;min-width:0;}

.breadcrumb{
  font-size:13px;
  font-weight:500;
  color:#9fc7b4;
  margin:0 0 12px;
}
.breadcrumb a{color:#9fc7b4;text-decoration:none;}
.breadcrumb a:hover{color:var(--blue-mid);}

.rp-title{
  margin:0 0 24px;
  font-family:var(--font-heading);
  font-size:28px;
  font-weight:700;
  line-height:1.3;
  color:var(--blue-dark);
}

.rp-tier-card{
  background:#fff;
  border:1px solid #e6e9ec;
  border-radius:22px;
  padding:26px 28px;
  margin-bottom:16px;
  box-shadow:0 14px 32px -20px rgba(0,27,92,.32), 0 2px 10px -6px rgba(0,0,0,.05);
}
.rp-tier-title{
  margin:0 0 12px;
  font-family:var(--font-heading);
  font-size:17px;
  font-weight:700;
  color:var(--blue-dark);
}
.rp-tier-card > p{
  margin:0;
  font-size:13.5px;
  line-height:1.65;
  color:#3a7a5b;
  font-weight:400;
}
.rp-tier-card code{
  background:#eef6f2;
  color:var(--header-blue);
  padding:1px 6px;
  border-radius:6px;
  font-size:12.5px;
  font-weight:700;
}
.rp-tier-card strong{color:var(--blue-dark);}

.rp-link-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:8px;
  background:#eef6f2;
  border-radius:14px;
  padding:12px 16px;
  margin-bottom:14px;
}
.rp-link-label{font-family:var(--font-heading);font-size:12.5px;font-weight:600;color:var(--blue-dark);}
.rp-link-badge{
  font-size:11.5px;
  font-weight:400;
  color:var(--header-blue);
  background:#fff;
  border:1px solid #cfe0d8;
  border-radius:999px;
  padding:5px 12px;
}

.rp-steps{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:16px;
}
.rp-step{display:flex;gap:12px;align-items:flex-start;}
.rp-step-num{
  flex:0 0 auto;
  width:24px;height:24px;
  border-radius:50%;
  background:var(--header-blue);
  color:#fff;
  display:flex;align-items:center;justify-content:center;
  font-weight:700;
  font-size:12px;
}
.rp-step-text p{margin:0;font-size:13.5px;line-height:1.55;color:#3a7a5b;font-weight:400;}

.rp-cta-wrap{display:flex;justify-content:center;margin-top:24px;}
.rp-cta-btn{
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:15px 34px;
  border:none;
  border-radius:999px;
  background:#f39c1f;
  color:#0f3d28;
  font-family:inherit;
  font-weight:600;
  font-size:14.5px;
  cursor:pointer;
  box-shadow:0 8px 18px -8px rgba(252,135,21,.6);
  transition:background .16s ease, transform .1s ease;
}
.rp-cta-btn svg{width:18px;height:18px;flex-shrink:0;}
.rp-cta-btn:hover{background:#e97a0c;}
.rp-cta-btn:active{transform:translateY(1px);}

/* Match the header's edge-to-edge horizontal inset on mobile (see
   header.css .site-header) so the page content lines up flush with it
   instead of sitting inset relative to it — same rule every sibling
   -layout page (activations, temporary-mail, phone-history, etc.) already
   carries. */
@media (max-width:860px){
  .rp-layout{padding-left:4px;padding-right:4px;}
}

@media (max-width:560px){
  .rp-title{font-size:22px;}
  .rp-tier-card{padding:20px 18px;border-radius:18px;}
}
