/* ==========================================================================
   myDigiBill — Refer & Earn Dedicated Marketing Page Stylesheet
   Luxury SaaS Theme: Navy #082b63 · Emerald #0d6b3e · Accent #1467d2 · Slate #64748b
   ========================================================================== */

:root {
  --ref-navy: #082b63;
  --ref-navy-dark: #051630;
  --ref-primary: #1467d2;
  --ref-primary-hover: #0f52aa;
  --ref-green: #0d6b3e;
  --ref-green-light: #10b981;
  --ref-green-soft: #ecfdf5;
  --ref-gold: #f59e0b;
  --ref-surface: #ffffff;
  --ref-soft-bg: #f8fafc;
  --ref-border: #e2e8f0;
  --ref-border-soft: #edf2f7;
  --ref-text: #0f172a;
  --ref-muted: #64748b;
  --ref-font-display: 'Fraunces', serif;
  --ref-font-body: 'Manrope', sans-serif;
}

/* Forcefully remove any ref-subheading as explicitly requested */
.ref-subheading {
  display: none !important;
}

/* ================= HERO SECTION (Centered, Compact Height, No Image) ================= */
.ref-hero-compact {
  min-height: auto !important;
  padding: 46px 20px 42px !important;
}

.ref-hero-center-wrap {
  position: relative;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ref-title-center {
  text-align: center !important;
  line-height: 1.12 !important;
  letter-spacing: -0.025em !important;
}

.ref-sub-center {
  text-align: center !important;
  margin: 0 auto 24px !important;
  max-width: 600px !important;
  font-size: 15.5px !important;
  line-height: 1.65 !important;
  color: #94a3b8 !important;
}

.ref-cta-center {
  justify-content: center !important;
  margin: 0 auto !important;
  gap: 14px !important;
}

/* ================= SECTION COMMON STYLES ================= */
.ref-section {
  padding: 60px 0;
  position: relative;
}

.ref-section--alt {
  background: #f8fafc;
  border-top: 1px solid #edf2f7;
  border-bottom: 1px solid #edf2f7;
}

.ref-section-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.ref-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 46px;
}

.ref-title {
  font-family: var(--ref-font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  color: var(--ref-navy);
  line-height: 1.25;
   letter-spacing: -0.015em;
}

.ref-sub {
  font-family: var(--ref-font-body);
  font-size: 15px;
  color: #475569;
  line-height: 1.65;
  margin: 0 auto;
  max-width: 620px;
}

/* ================= SECTION 2: HOW IT WORKS (3 STEPS - SCREENSHOT 1) ================= */
.ref-steps-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

@media (max-width: 960px) {
  .ref-steps-container {
    flex-direction: column;
    gap: 20px;
  }
}

.ref-step-card-box {
  flex: 1 1 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 26px 24px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  min-width: 0;
}

.ref-step-card-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.08);
  border-color: #cbd5e1;
}

.ref-step-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ref-step-pill-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 5px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.ref-step-pill-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.ref-step-pill-indicator--blue {
  background: #eff6ff;
  color: #2563eb;
}

.ref-step-pill-indicator--blue .ref-step-pill-num {
  background: #2563eb;
}

.ref-step-pill-indicator--green {
  background: #ecfdf5;
  color: #059669;
}

.ref-step-pill-indicator--green .ref-step-pill-num {
  background: #059669;
}

.ref-step-pill-indicator--purple {
  background: #f5f3ff;
  color: #7c3aed;
}

.ref-step-pill-indicator--purple .ref-step-pill-num {
  background: #7c3aed;
}

.ref-step-thumb-box {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  overflow: hidden;
  background: transparent;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ref-step-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ref-step-card-h3 {
  font-family: var(--ref-font-display);
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px;
  line-height: 1.25;
}

.ref-step-card-desc {
  font-family: var(--ref-font-body);
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 20px;
  flex-grow: 1;
}

.ref-step-bottom-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  width: 100%;
  box-sizing: border-box;
}

.ref-step-bottom-tag--blue {
  background: #eff6ff;
  color: #1d4ed8;
}

.ref-step-bottom-tag--green {
  background: #ecfdf5;
  color: #047857;
}

.ref-step-bottom-tag--purple {
  background: #f5f3ff;
  color: #6d28d9;
}

.ref-step-arrow-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  width: 28px;
  flex-shrink: 0;
}

.ref-step-arrow-divider svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 960px) {
  .ref-step-arrow-divider {
    transform: rotate(90deg);
    margin: -4px 0;
  }
}


.ref-calc-note-badge {
  position: absolute;
  top: -63px;
  left: -57px;
  font-family: 'Caveat', 'Comic Sans MS', cursive, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #2563eb;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 6px;
  transform: rotate(-5deg);
  z-index: 10;
  pointer-events: none;
}

.ref-calc-arrow-svg {
  width: 30px;
  height: 30px;
  margin-top: 4px;
}

.ref-calc-floating-wallet {
  position: absolute;
  top: -55px;
  right: 20px;
  width: 85px;
  height: 98px;
  z-index: 10;
  pointer-events: none;
  filter: drop-shadow(0 12px 22px rgba(37, 99, 235, 0.16));
}

.ref-calc-wallet-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

@media (max-width: 768px) {
  .ref-calc-note-badge {
    display: none;
  }

  .ref-calc-floating-wallet {
    width: 65px;
    height: 75px;
    top: -40px;
    right: 12px;
  }

  .ref-calc-shell-card {
    padding: 20px 14px;
    margin-top: 36px;
  }
}

.ref-calc-grid-inner {
  display: grid;
  grid-template-columns: 1.32fr 0.9fr;
  gap: 14px;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .ref-calc-grid-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Left Configuration Card */
.ref-calc-card-white {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px 22px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.02);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ref-calc-block {
  display: flex;
  flex-direction: column;
}

.ref-calc-block--border-top {
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
}

.ref-calc-block-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.ref-step-num-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.ref-calc-block-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
}

.ref-calc-block-sub {
  font-size: 12px;
  color: #64748b;
  margin: 2px 0 0;
}

.ref-calc-edit-btn {
  background: transparent;
  border: none;
  color: #2563eb;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: background 0.15s;
}

.ref-calc-edit-btn:hover {
  background: #eff6ff;
}

.ref-calc-edit-btn svg {
  width: 14px;
  height: 14px;
}

/* 4 Plan Radio Cards */
.ref-calc-radio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 1260px) {
  .ref-calc-radio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 520px) {
  .ref-calc-radio-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.calc-plan-radio-card {
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 74px;
  box-sizing: border-box;
}

.calc-plan-radio-card:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.calc-plan-radio-card.active {
  border-color: #2563eb;
  background: #f0f7ff;
  box-shadow: 0 0 0 1px #2563eb;
}

.ref-radio-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 6px;
}

.ref-radio-left-info {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.ref-radio-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ref-radio-icon--green {
  color: #059669;
}

.ref-radio-icon--blue {
  color: #2563eb;
}

.ref-radio-icon--purple {
  color: #7c3aed;
}

.ref-radio-icon--amber {
  color: #d97706;
}

.ref-radio-name {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
}

.ref-radio-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 8px;
  gap: 6px;
}

.ref-radio-price {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  margin-top: 0;
  line-height: 1.2;
}

.ref-radio-best-badge {
  font-size: 9px;
  font-weight: 800;
  background: #10b981;
  color: #ffffff;
  padding: 2.5px 7px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.25);
}

.ref-radio-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  display: inline-block;
  transition: all 0.15s;
  flex-shrink: 0;
}

.ref-radio-dot.checked {
  border-color: #2563eb;
  background: #2563eb;
  box-shadow: inset 0 0 0 2.5px #ffffff;
}

/* Amount Input Box */
.ref-calc-amount-input-box {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 6px 14px;
  margin-bottom: 14px;
  transition: border-color 0.2s, background 0.2s;
}

.ref-calc-amount-input-box:focus-within {
  border-color: #2563eb;
  background: #ffffff;
}

.ref-calc-amount-symbol {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin-right: 8px;
}

.ref-calc-amount-field {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  outline: none;
  font-family: inherit;
}

/* Styled Slider */
.ref-calc-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ref-calc-styled-slider {
  width: 100%;
  height: 6px;
  border-radius: 5px;
  background: #e2e8f0;
  outline: none;
  accent-color: #2563eb;
  cursor: pointer;
}

.ref-calc-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
}

/* Meta Bar */
.ref-calc-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  font-size: 12.5px;
  color: #475569;
  flex-wrap: wrap;
  gap: 10px;
}

.ref-calc-meta-rate {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ref-calc-meta-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ref-calc-status-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  padding: 2px 8px;
  border-radius: 12px;
}

/* Right Estimated Earnings Card */
.ref-calc-card-result {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.ref-calc-money-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #dcfce7;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ref-calc-res-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #475569;
}

.ref-calc-res-big-amount {
  font-family: 'Fraunces', serif, system-ui;
  font-size: 38px;
  font-weight: 800;
  color: #059669;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.ref-calc-tags-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ref-calc-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 4px 10px;
  color: #334155;
}

.ref-calc-checks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  width: 100%;
  font-size: 12.5px;
  color: #334155;
  padding-top: 4px;
}

.ref-calc-checks-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ref-calc-info-box {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 11.5px;
  color: #1e40af;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.ref-calc-btn-start {
  width: 100%;
  background: #2563eb;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.ref-calc-btn-start:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.calc-btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #2563eb;
  color: #ffffff !important;
  font-size: 14.5px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.calc-btn-action:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

/* ================= SECTION 4: WHAT YOU CAN EARN ================= */
.ref-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 860px) {
  .ref-plans-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.ref-plan-card {
  background: #ffffff;
  border: 1px solid var(--ref-border);
  border-radius: 18px;
  padding: 30px 24px;
  box-shadow: 0 4px 16px rgba(8, 43, 99, 0.03);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ref-plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(20, 103, 210, 0.08);
}

.ref-plan-card--featured {
  border-color: #93c5fd;
  box-shadow: 0 8px 24px rgba(20, 103, 210, 0.1);
}

.ref-plan-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #1467d2;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ref-plan-name {
  font-family: var(--ref-font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ref-navy);
  margin: 0 0 6px;
}

.ref-plan-desc {
  font-size: 13.5px;
  color: var(--ref-muted);
  margin: 0 0 20px;
}

.ref-plan-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 22px;
}

.ref-plan-table tr {
  border-bottom: 1px solid #f1f5f9;
}

.ref-plan-table td {
  padding: 10px 0;
  font-size: 13.5px;
}

.ref-plan-table td:first-child {
  color: #64748b;
  font-weight: 500;
}

.ref-plan-table td:last-child {
  color: var(--ref-navy);
  font-weight: 700;
  text-align: right;
}

.ref-plan-earn-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  margin-top: auto;
}

.ref-plan-earn-box .lbl {
  font-size: 11.5px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.ref-plan-earn-box .val {
  font-family: var(--ref-font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--ref-green);
  line-height: 1.1;
}

/* ================= SECTION 5: PARTNER DASHBOARD PREVIEW ================= */
.ref-dash-window {
  background: #ffffff;
  border: 1px solid var(--ref-border);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(8, 43, 99, 0.08);
  overflow: hidden;
}

.ref-dash-titlebar {
  background: #0f172a;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ref-dash-dots {
  display: flex;
  gap: 6px;
}

.ref-dash-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.ref-dash-dot--red {
  background: #ef4444;
}

.ref-dash-dot--yellow {
  background: #f59e0b;
}

.ref-dash-dot--green {
  background: #10b981;
}

.ref-dash-title {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

.ref-dash-badge {
  font-size: 11px;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  padding: 2px 8px;
  border-radius: 12px;
}

.ref-dash-body {
  padding: 28px 26px 30px;
  background: #f8fafc;
}

/* ═══════════════════════════════════════════
   RIGHT SHARE CARD (PIXEL-PERFECT SCREENSHOT MATCH)
   ═══════════════════════════════════════════ */
.ref-share-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 24px;
}

.ref-share-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ref-share-card__head-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ref-share-card__icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ref-share-card__title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ref-share-card__title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.ref-share-card__subtitle {
  margin: 0;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.35;
}

.ref-share-card__badge-secure {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

/* URL Input & Copy Button Row */
.ref-share-card__input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.ref-share-card__input {
  flex: 1;
  min-width: 0;
  height: 44px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 0 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.ref-share-card__input:focus,
.ref-share-card__input:hover {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.ref-share-card__copy-btn {
  height: 44px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 0 18px;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.ref-share-card__copy-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

/* Middle Row: Two Sub-Cards */
.ref-share-card__middle-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.ref-share-subcard {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.ref-share-subcard--code {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ref-share-subcard__code-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ref-share-subcard__label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: none;
}

.ref-share-subcard__code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 17px;
  font-weight: 800;
  color: #0b224e;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.ref-share-subcard__copy-btn {
  width: 36px;
  height: 36px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.ref-share-subcard__copy-btn:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  transform: scale(1.04);
}

.ref-share-subcard--qr {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.ref-share-subcard--qr:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.ref-share-subcard__qr-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 2px;
  object-fit: contain;
  flex-shrink: 0;
}

.ref-share-subcard__qr-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ref-share-subcard__qr-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.ref-share-subcard__qr-sub {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Bottom Actions Row: 3 Action Buttons */
.ref-share-card__actions-row {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1.15fr;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.ref-card-action-btn {
  height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ref-card-action-btn--whatsapp {
  background: #16a34a;
  color: #ffffff !important;
  border: none;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.25);
}

.ref-card-action-btn--whatsapp:hover {
  background: #15803d;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.35);
}

.ref-card-action-btn--email,
.ref-card-action-btn--perf {
  background: #ffffff;
  color: #1e3a8a !important;
  border: 1px solid #cbd5e1;
}

.ref-card-action-btn--email:hover,
.ref-card-action-btn--perf:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.ref-card-action-icon-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .ref-share-card__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .ref-share-card__middle-row {
    grid-template-columns: 1fr;
  }
  .ref-share-card__actions-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* 5-Card Stats Grid */
.ref-dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .ref-dash-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .ref-dash-stats-grid {
    grid-template-columns: 1fr;
  }
}

.ref-dash-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
}

.ref-dash-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.ref-dash-stat-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #eff6ff;
  color: #1467d2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ref-dash-stat-icon svg {
  width: 18px;
  height: 18px;
}

.ref-dash-stat-val {
  font-family: var(--ref-font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--ref-navy);
  margin-bottom: 2px;
  line-height: 1.2;
}

.ref-dash-stat-val--green {
  color: var(--ref-green);
}

.ref-dash-stat-lbl {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

/* Bottom Bar */
.ref-dash-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.ref-dash-payout-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #334155;
}

.ref-dash-payout-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}

.ref-dash-cta-btn {
  background: var(--ref-navy);
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.ref-dash-cta-btn:hover {
  background: var(--ref-primary);
}

/* ================= SECTION 6: WHY REFER MYDIGIBILL (4 COMPACT BENEFITS) ================= */
.ref-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .ref-benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .ref-benefits-grid {
    grid-template-columns: 1fr;
  }
}

.ref-benefit-card {
  background: #ffffff;
  border: 1px solid #E5EAF2;
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: 0 2px 8px rgba(8, 43, 99, 0.04);
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
}

.ref-benefit-card:hover {
  border-color: #b8cde8;
  box-shadow: 0 6px 20px rgba(20, 103, 210, 0.09);
}

.ref-benefit-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #EFF6FF;
  color: var(--ref-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.ref-benefit-icon-box svg {
  width: 22px;
  height: 22px;
}

.ref-benefit-card h3 {
  font-family: var(--ref-font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--ref-navy);
  margin: 0 0 8px;
  line-height: 1.35;
}

.ref-benefit-card p {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.65;
  margin: 0;
}

/* ================= SECTION 7: WHO CAN BECOME A PARTNER ================= */
.ref-audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 960px) {
  .ref-audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .ref-audience-grid {
    grid-template-columns: 1fr;
  }
}

.ref-audience-card {
  background: #ffffff;
  border: 1px solid #E5EAF2;
  border-radius: 14px;
  padding: 22px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: 0 2px 8px rgba(8, 43, 99, 0.03);
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.ref-audience-card:hover {
  border-color: #b8cde8;
  box-shadow: 0 5px 18px rgba(20, 103, 210, 0.08);
}

.ref-audience-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: #EFF6FF;
  color: var(--ref-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ref-audience-icon svg {
  width: 20px;
  height: 20px;
}

.ref-audience-content h3 {
  font-family: var(--ref-font-body);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ref-navy);
  margin: 0 0 5px;
  line-height: 1.3;
}

.ref-audience-content p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* ================= SECTION 8: REFERRAL RULES ================= */
.ref-rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 960px) {
  .ref-rules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .ref-rules-grid {
    grid-template-columns: 1fr;
  }
}

.ref-rule-card {
  background: #ffffff;
  border: 1px solid #E5EAF2;
  border-radius: 13px;
  padding: 20px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.ref-rule-card:hover {
  border-color: #b8cde8;
  box-shadow: 0 4px 14px rgba(20, 103, 210, 0.07);
}

.ref-rule-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #ECFDF5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.ref-rule-icon-box svg {
  width: 16px;
  height: 16px;
}

.ref-rule-body h3 {
  font-family: var(--ref-font-body);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ref-navy);
  margin: 0 0 5px;
  line-height: 1.3;
}

.ref-rule-body p {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* ================= FINAL CTA SECTION ================= */
.ref-final-banner {
  background: linear-gradient(135deg, #082b63 0%, #051630 100%);
  border-radius: 24px;
  padding: 56px 36px;
  text-align: center;
  color: #ffffff;
  margin-top: 10px;
  box-shadow: 0 16px 40px rgba(5, 22, 48, 0.25);
  position: relative;
  overflow: hidden;
}

.ref-final-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(20, 103, 210, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.ref-final-title {
  font-family: var(--ref-font-display);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 14px;
  line-height: 1.25;
}

.ref-final-sub {
  font-size: 15.5px;
  color: #cbd5e1;
  max-width: 580px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.ref-final-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}