/* BalkanBox Referral Dashboard – Moje Preporuke */

.bbx-referral-wrap {
  margin-top: 0;
  max-width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.bbx-referral-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Hero */
.bbx-referral-hero {
  border: none;
  border-radius: 14px;
  padding: 24px 26px;
  background: linear-gradient(135deg, #e6004a 0%, #202427 100%);
  color: #fff;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.15);
}

.bbx-referral-hero-inner {
  max-width: none;
}

.bbx-referral-hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.bbx-referral-hero-pill {
  display: inline-block;
  padding: 5px 12px;
  margin-bottom: 0;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}

.bbx-referral-wrap .bbx-referral-hero-title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
}

.bbx-referral-wrap .bbx-referral-hero-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

/* Share card */
.bbx-referral-share-card {
  background: #fff;
  border: 1px solid var(--bbx-g, #e5e7eb);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.bbx-referral-share-head h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bbx-tx, #111827);
}

.bbx-referral-share-actions {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--bbx-g, #e5e7eb);
}

.bbx-referral-share-actions-label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bbx-muted, #6b7280);
  line-height: 1.35;
}

.bbx-referral-share-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.bbx-referral-share-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  justify-content: space-between;
  min-width: 0;
}

.bbx-referral-wrap a.bbx-referral-share-chip,
.bbx-referral-wrap a.bbx-referral-share-chip:hover,
.bbx-referral-wrap a.bbx-referral-share-chip:focus {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 0;
  min-width: 58px;
  max-width: 76px;
  gap: 4px;
  padding: 9px 2px 11px;
  border-radius: 10px;
  border: 1px solid var(--bbx-g, #e5e7eb);
  background: #fff;
  text-decoration: none !important;
  color: #6b7280 !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.bbx-referral-wrap a.bbx-referral-share-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  border-color: #d1d5db;
  color: #374151 !important;
}

.bbx-referral-share-chip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.bbx-referral-share-chip-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.bbx-referral-share-chip-label {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  color: inherit;
}

.bbx-referral-share-chip--whatsapp .bbx-referral-share-chip-icon {
  background: #25d366;
}

.bbx-referral-share-chip--viber .bbx-referral-share-chip-icon {
  background: #7360f2;
}

.bbx-referral-share-chip--telegram .bbx-referral-share-chip-icon {
  background: #229ed9;
}

.bbx-referral-share-chip--messenger .bbx-referral-share-chip-icon {
  background: linear-gradient(135deg, #00b2ff 0%, #006aff 100%);
}

.bbx-referral-share-chip--facebook .bbx-referral-share-chip-icon {
  background: #1877f2;
}

.bbx-referral-share-chip--x .bbx-referral-share-chip-icon {
  background: #000000;
}

.bbx-referral-share-chip--email .bbx-referral-share-chip-icon {
  background: #ea4335;
}

.bbx-referral-share-chip--sms .bbx-referral-share-chip-icon {
  background: #64748b;
}

.bbx-referral-share-head p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--bbx-muted, #6b7280);
}

.bbx-referral-primary-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: stretch;
}

.bbx-referral-primary-input {
  flex: 1 1 260px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--bbx-g, #e5e7eb);
  border-radius: 10px;
  background: #f8fafc;
  font-family: ui-monospace, 'SF Mono', Monaco, Consolas, monospace;
  font-size: 13px;
  color: var(--bbx-tx, #111827);
}

.bbx-referral-primary-input:focus {
  outline: none;
  border-color: #e6004a;
  box-shadow: 0 0 0 3px rgba(230, 0, 74, 0.12);
}

.bbx-referral-copy-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: stretch;
}

.bbx-referral-btn-primary {
  appearance: none;
  border: none;
  background: #e6004a;
  color: #fff;
  border-radius: 10px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 2px 10px rgba(230, 0, 74, 0.28);
}

.bbx-referral-btn-primary:hover {
  background: #c4003f;
  transform: translateY(-1px);
}

.bbx-referral-btn-primary.is-copied {
  background: #059669;
  box-shadow: 0 2px 10px rgba(5, 150, 105, 0.3);
}

.bbx-referral-btn-secondary {
  appearance: none;
  border: 1px solid var(--bbx-g, #e5e7eb);
  background: #fff;
  color: var(--bbx-tx, #111827);
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.bbx-referral-btn-secondary:hover {
  border-color: #d1d5db;
  background: #f9fafb;
  transform: translateY(-1px);
}

.bbx-referral-btn-secondary.is-copied {
  border-color: #059669;
  background: #ecfdf5;
  color: #047857;
}

/* Summary row */
.bbx-referral-summary-grid {
  display: grid;
  grid-template-columns: 1fr minmax(190px, 220px);
  gap: 12px;
}

.bbx-referral-level-card,
.bbx-referral-next-card {
  background: #fff;
  border: 1px solid var(--bbx-g, #e5e7eb);
  border-radius: 14px;
  padding: 18px 20px;
}

.bbx-referral-level-top {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: flex-start;
}

.bbx-referral-level-kicker {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--bbx-muted, #6b7280);
  margin-bottom: 2px;
}

.bbx-referral-level-name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--bbx-tx, #111827);
  line-height: 1.2;
}

.bbx-referral-mini-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bbx-referral-mini-stat {
  text-align: center;
  min-width: 68px;
  padding: 8px 8px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid var(--bbx-g, #e5e7eb);
}

.bbx-referral-mini-stat strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: #e6004a;
  line-height: 1.15;
}

.bbx-referral-mini-stat span {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 500;
  color: var(--bbx-muted, #6b7280);
  line-height: 1.25;
}

.bbx-referral-progress-wrap {
  margin-top: 14px;
}

.bbx-referral-progress-label {
  font-size: 13px;
  color: var(--bbx-muted, #6b7280);
  margin-bottom: 6px;
  line-height: 1.4;
}

.bbx-referral-progress-bar {
  height: 6px;
  background: #f3f4f6;
  border-radius: 999px;
  overflow: hidden;
}

.bbx-referral-progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #e6004a, #ff4d8a);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.bbx-referral-max-level {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--bbx-muted, #6b7280);
  line-height: 1.45;
}

.bbx-referral-next-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #fdf2f6 100%);
  border-color: #fbcfe8;
}

.bbx-referral-next-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--bbx-muted, #6b7280);
}

.bbx-referral-next-value {
  display: block;
  margin-top: 4px;
  font-size: 1.75rem;
  font-weight: 800;
  color: #e6004a;
  line-height: 1.15;
}

.bbx-referral-next-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--bbx-muted, #6b7280);
  line-height: 1.35;
  max-width: 16rem;
}

/* Program card */
.bbx-referral-program-card {
  background: #fff;
  border: 1px solid var(--bbx-g, #e5e7eb);
  border-radius: 14px;
  padding: 20px 22px;
}

.bbx-referral-program-title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bbx-tx, #111827);
}

.bbx-referral-program-lead {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--bbx-tx, #111827);
}

.bbx-referral-reward-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.bbx-referral-referrer-rules {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px solid var(--bbx-g, #e5e7eb);
}

.bbx-referral-referrer-rules-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--bbx-tx, #111827);
}

/* Levels card (above program) */
.bbx-referral-levels-card {
  background: #fff;
  border: 1px solid var(--bbx-g, #e5e7eb);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.bbx-referral-levels-card-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bbx-tx, #111827);
}

.bbx-referral-levels-intro {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--bbx-muted, #6b7280);
}

.bbx-referral-reward-col {
  padding: 14px 16px;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px solid var(--bbx-g, #e5e7eb);
}

.bbx-referral-reward-col--friend {
  background: linear-gradient(180deg, #fdf2f6 0%, #fff 100%);
  border-color: #fbcfe8;
}

.bbx-referral-reward-col-title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bbx-muted, #6b7280);
}

.bbx-referral-reward-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bbx-referral-reward-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--bbx-tx, #111827);
}

.bbx-referral-reward-list li:last-child {
  margin-bottom: 0;
}

.bbx-referral-reward-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e6004a;
}

.bbx-referral-example {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.bbx-referral-example strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #92400e;
  margin-bottom: 4px;
}

.bbx-referral-example p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #78350f;
}

.bbx-referral-quick-box {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fdf2f6 0%, #fff 100%);
  border: 1px solid #fbcfe8;
}

.bbx-referral-quick-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bbx-referral-quick-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--bbx-tx, #111827);
}

.bbx-referral-quick-list li:last-child {
  margin-bottom: 0;
}

.bbx-referral-quick-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e6004a;
}

.bbx-referral-trial-note {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.bbx-referral-trial-note strong {
  font-size: 13px;
  font-weight: 700;
  color: #1e40af;
}

.bbx-referral-trial-note span {
  font-size: 13px;
  line-height: 1.5;
  color: #1e3a8a;
}

.bbx-referral-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.bbx-referral-steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 14px 14px 12px;
  background: #f9fafb;
  border: 1px solid var(--bbx-g, #e5e7eb);
  border-radius: 12px;
}

.bbx-referral-wrap .bbx-referral-step-num {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e6004a;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  font-family: inherit;
  line-height: 1;
  text-align: center;
  box-sizing: border-box;
  margin-top: 1px;
}

.bbx-referral-step-body {
  flex: 1;
  min-width: 0;
}

.bbx-referral-steps li strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--bbx-tx, #111827);
  margin-bottom: 4px;
  line-height: 1.3;
}

.bbx-referral-steps li span {
  display: block;
  font-size: 13px;
  color: var(--bbx-muted, #6b7280);
  line-height: 1.5;
}

.bbx-referral-program-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--bbx-g, #e5e7eb);
}

.bbx-referral-program-section h4 {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bbx-muted, #6b7280);
}

.bbx-referral-tier-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.bbx-referral-tier {
  padding: 12px 10px;
  border: 1px solid var(--bbx-g, #e5e7eb);
  border-radius: 10px;
  background: #fff;
  text-align: center;
}

.bbx-referral-tier.is-current {
  border-color: #e6004a;
  background: #fdf2f6;
  box-shadow: 0 0 0 1px rgba(230, 0, 74, 0.12);
}

.bbx-referral-tier-badge {
  display: inline-block;
  margin-bottom: 5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e6004a;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bbx-referral-tier-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--bbx-tx, #111827);
}

.bbx-referral-tier-reward {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  font-weight: 700;
  color: #e6004a;
}

.bbx-referral-tier-range {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--bbx-muted, #6b7280);
}

.bbx-referral-friend-callout {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  margin-top: 14px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #065f46;
}

.bbx-referral-friend-callout strong {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #047857;
}

.bbx-referral-milestone-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bbx-referral-milestone-chip {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f3f4f6;
  border: 1px solid var(--bbx-g, #e5e7eb);
  font-size: 12px;
  font-weight: 600;
  color: var(--bbx-tx, #111827);
}

.bbx-referral-milestone-chip.is-done {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.bbx-referral-milestone-intro {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--bbx-muted, #6b7280);
  line-height: 1.5;
}

.bbx-referral-program-section--milestones {
  margin-top: 14px;
  padding-top: 14px;
}

.bbx-referral-levels-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--bbx-g, #e5e7eb);
}

.bbx-referral-level-details {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--bbx-g, #e5e7eb);
}

.bbx-referral-level-details summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--bbx-muted, #6b7280);
}

.bbx-referral-level-details-body {
  margin-top: 12px;
}

.bbx-referral-level-details-body p {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--bbx-muted, #6b7280);
  line-height: 1.5;
}

.bbx-referral-details {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--bbx-g, #e5e7eb);
}

.bbx-referral-details summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--bbx-muted, #6b7280);
}

.bbx-referral-how-content {
  margin-top: 10px;
  font-size: 13px;
  color: var(--bbx-muted, #6b7280);
  line-height: 1.5;
}

.bbx-referral-how-content ol,
.bbx-referral-how-content ul {
  margin: 0;
  padding-left: 1.25rem;
}

.bbx-referral-rules-reward {
  font-weight: 700;
  color: #e6004a;
}

/* History table */
.bbx-referral-table-card {
  background: #fff;
  border: 1px solid var(--bbx-g, #e5e7eb);
  border-radius: 14px;
  padding: 18px 20px;
  overflow-x: auto;
}

.bbx-referral-table-card h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 700;
}

.bbx-referral-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.bbx-referral-table th,
.bbx-referral-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--bbx-g, #e5e7eb);
  text-align: left;
}

.bbx-referral-table th {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bbx-muted, #6b7280);
  background: #f9fafb;
}

.bbx-referral-table tbody tr:last-child td {
  border-bottom: none;
}

.bbx-referral-table tbody tr:hover {
  background: #fafafa;
}

.bbx-referral-empty {
  padding: 28px 16px;
  border: 1px dashed var(--bbx-g, #e5e7eb);
  border-radius: 10px;
  background: #f9fafb;
  text-align: center;
  color: var(--bbx-muted, #6b7280);
  font-size: 14px;
  line-height: 1.5;
}

.bbx-referral-empty p {
  margin: 0;
}

/* Status badges */
.bbx-referral-wrap .bbx-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bbx-referral-status-pending { background: #fef3c7; color: #92400e; }
.bbx-referral-status-rewarded,
.bbx-referral-status-completed { background: #d1fae5; color: #065f46; }
.bbx-referral-status-failed { background: #fee2e2; color: #991b1b; }
.bbx-referral-status-converted { background: #dbeafe; color: #1e40af; }
.bbx-referral-status-voided { background: #f3f4f6; color: #374151; }

/* Toast */
.bbx-referral-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #111827;
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  z-index: 99999;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.bbx-referral-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (max-width: 900px) {
  .bbx-referral-summary-grid {
    grid-template-columns: 1fr;
  }

  .bbx-referral-reward-split {
    grid-template-columns: 1fr;
  }

  .bbx-referral-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bbx-referral-tier-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .bbx-referral-hero {
    padding: 20px 18px;
  }

  .bbx-referral-hero-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .bbx-referral-wrap .bbx-referral-hero-title {
    font-size: 1.2rem;
  }

  .bbx-referral-hero-pill {
    align-self: flex-start;
  }

  .bbx-referral-share-card,
  .bbx-referral-levels-card,
  .bbx-referral-program-card,
  .bbx-referral-table-card {
    padding: 16px 16px;
  }

  .bbx-referral-level-card,
  .bbx-referral-next-card {
    padding: 16px;
  }

  .bbx-referral-primary-row {
    flex-direction: column;
  }

  .bbx-referral-copy-actions {
    width: 100%;
  }

  .bbx-referral-copy-actions .bbx-referral-copy-btn {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    text-align: center;
  }

  .bbx-referral-btn-primary,
  .bbx-referral-btn-secondary {
    width: auto;
    text-align: center;
  }

  .bbx-referral-level-top {
    flex-direction: column;
    gap: 12px;
  }

  .bbx-referral-mini-stats {
    width: 100%;
    justify-content: stretch;
  }

  .bbx-referral-mini-stat {
    flex: 1 1 0;
    min-width: 0;
  }

  .bbx-referral-mini-stat span {
    font-size: 9px;
    line-height: 1.2;
  }

  .bbx-referral-next-card {
    align-items: center;
    text-align: center;
  }

  .bbx-referral-next-hint {
    max-width: none;
  }

  .bbx-referral-tier-track {
    grid-template-columns: 1fr;
  }

  .bbx-referral-table {
    font-size: 13px;
  }

  .bbx-referral-table th,
  .bbx-referral-table td {
    padding: 8px 10px;
  }
}

@media (max-width: 480px) {
  .bbx-referral-steps {
    grid-template-columns: 1fr;
  }

  .bbx-referral-share-grid {
    gap: 4px;
  }

  .bbx-referral-wrap a.bbx-referral-share-chip {
    min-width: 52px;
    max-width: none;
    padding: 7px 1px 9px;
  }

  .bbx-referral-share-chip-icon {
    width: 28px;
    height: 28px;
  }

  .bbx-referral-share-chip-icon svg {
    width: 16px;
    height: 16px;
  }

  .bbx-referral-share-chip-label {
    font-size: 9px;
  }

  .bbx-referral-mini-stat strong {
    font-size: 1.05rem;
  }

  .bbx-referral-next-value {
    font-size: 1.5rem;
  }

  .bbx-referral-program-lead {
    font-size: 13px;
  }

  .bbx-referral-reward-list li {
    font-size: 12px;
  }
}
