/* Shared referral component styles — loaded by both dashboard and public referral layouts */

/* ── Story card ── */
.ref-story-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(10px);
}

.ref-story-author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ref-story-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 171, 29, 0.15);
  border: 2px solid rgba(255, 171, 29, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #ffab1d;
  flex-shrink: 0;
}

.ref-story-author-name {
  font-size: 15px;
  font-weight: 600;
  color: white;
}

.ref-story-author-role {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

.ref-story-body p {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
}

.ref-story-body p:last-child { margin-bottom: 0; }
.ref-story-body strong { color: white; }

.ref-story-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ref-story-actions span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  line-height: 1.5;
}

.ref-story-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  background: rgba(10, 102, 194, 0.18);
  border: 1px solid rgba(10, 102, 194, 0.42);
  color: #8ec5ff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ref-story-linkedin:hover {
  background: rgba(10, 102, 194, 0.28);
  border-color: rgba(142, 197, 255, 0.62);
  color: white;
}

.ref-code {
  font-family: monospace;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
  color: #ffab1d;
}

.ref-highlight {
  color: #ffab1d;
  font-weight: 700;
}

/* ── Points grid ── */
.ref-points-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.ref-point-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.ref-point-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.ref-point-card-hl {
  border-color: rgba(255, 171, 29, 0.3);
  background: rgba(255, 171, 29, 0.05);
}

.ref-point-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.ref-icon-gold { background: rgba(255, 171, 29, 0.15); color: #ffab1d; }
.ref-icon-blue { background: rgba(99, 179, 237, 0.15); color: #63b3ed; }
.ref-icon-green { background: rgba(76, 175, 80, 0.15); color: #4caf50; }

.ref-point-value {
  font-size: 36px;
  font-weight: 800;
  color: white;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.ref-point-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

.ref-point-note {
  font-size: 12px;
  color: #ffab1d;
  margin-top: 8px;
}

.ref-example {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px 24px;
}

.ref-example-header {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.ref-example-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.ref-example-row:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ref-example-row strong { color: #ffab1d; }

/* ── Steps ── */
.ref-steps {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.ref-step {
  flex: 1;
  min-width: 180px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(10px);
}

.ref-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 171, 29, 0.2);
  border: 1px solid rgba(255, 171, 29, 0.4);
  color: #ffab1d;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.ref-step-body h3 {
  font-size: 15px;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
}

.ref-step-body p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.ref-step-arrow {
  font-size: 28px;
  color: rgba(255, 255, 255, 0.2);
  align-self: center;
  flex-shrink: 0;
  margin-top: -8px;
}

/* ── Participation card ── */
.ref-part-card {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.ref-part-left { flex: 1; }

.ref-auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(76, 175, 80, 0.15);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

.ref-part-title {
  font-size: 28px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.ref-part-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 28px;
}

.ref-uuid-block {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
}

.ref-uuid-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.ref-uuid-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.ref-uuid-value {
  font-family: monospace;
  font-size: 14px;
  color: #ffab1d;
  background: rgba(255, 171, 29, 0.08);
  padding: 8px 12px;
  border-radius: 6px;
  flex: 1;
  word-break: break-all;
}

.ref-uuid-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
}

.ref-part-right {
  flex-shrink: 0;
  text-align: center;
}

.ref-big-number {
  font-size: 64px;
  font-weight: 800;
  color: #ffab1d;
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -2px;
}

.ref-big-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
}

.ref-mini-stats {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.ref-mini-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.ref-mini-num {
  font-size: 24px;
  font-weight: 700;
  color: white;
}

.ref-num-gold { color: #ffab1d; }

.ref-mini-lbl {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ── Copy button (shared by UUID and link) ── */
.ref-copy-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ref-copy-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.ref-copy-btn--copied {
  background: rgba(76, 175, 80, 0.2);
  border-color: rgba(76, 175, 80, 0.4);
  color: #4caf50;
}

/* ── Referral link ── */
.ref-link-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.ref-link-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.ref-link-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-family: monospace;
  min-width: 0;
}

.ref-link-input:focus { outline: none; }

/* ── Share buttons ── */
.ref-share-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ref-share-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.ref-share-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
  transform: translateY(-1px);
}

/* ── Referrals table ── */
.ref-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ref-table {
  width: 100%;
  border-collapse: collapse;
}

.ref-table thead tr {
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ref-table th {
  padding: 14px 20px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.ref-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease;
}

.ref-table tbody tr:last-child { border-bottom: none; }
.ref-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }

.ref-table td {
  padding: 14px 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  vertical-align: middle;
}

.ref-td-name { font-weight: 600; color: white; }
.ref-email-code { font-family: monospace; font-size: 13px; }
.ref-td-country { color: rgba(255, 255, 255, 0.6); }
.ref-td-pts { text-align: center; }

.ref-pts-badge {
  display: inline-block;
  background: rgba(255, 171, 29, 0.15);
  color: #ffab1d;
  border: 1px solid rgba(255, 171, 29, 0.3);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.ref-pts-none { color: rgba(255, 255, 255, 0.2); }

.ref-status-paid,
.ref-status-pending {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.ref-status-paid {
  background: rgba(76, 175, 80, 0.15);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.ref-status-pending {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── Empty state ── */
.ref-empty {
  text-align: center;
  padding: 60px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

.ref-empty-icon {
  display: block;
  margin: 0 auto 20px;
}

.ref-empty-title {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
}

.ref-empty-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Transfer scope ── */
.ref-transfer-scope {
  margin-top: 40px;
}

.ref-transfer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.ref-transfer-col {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 28px 24px;
  backdrop-filter: blur(10px);
}

.ref-transfer-included {
  border-color: rgba(76, 175, 80, 0.2);
  background: rgba(76, 175, 80, 0.04);
}

.ref-transfer-excluded {
  border-color: rgba(255, 255, 255, 0.1);
}

.ref-transfer-col-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.ref-transfer-col-header h3 {
  font-size: 15px;
  font-weight: 600;
  color: white;
  margin: 0;
}

.ref-transfer-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.ref-transfer-check--yes {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.4);
}

.ref-transfer-check--no {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.ref-transfer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ref-transfer-list li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}

.ref-transfer-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.25);
}

.ref-nontechnical-note {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(255, 171, 29, 0.06);
  border: 1px solid rgba(255, 171, 29, 0.2);
  border-radius: 16px;
  padding: 24px;
}

.ref-nontechnical-icon {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.ref-nontechnical-body strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
}

.ref-nontechnical-body p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.65;
  margin: 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .ref-transfer-cols { grid-template-columns: 1fr; }

  .ref-part-card {
    flex-direction: column-reverse;
    gap: 32px;
  }

  .ref-part-right {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 24px;
  }

  .ref-big-label { margin-bottom: 0; }

  .ref-points-grid { grid-template-columns: 1fr; }

  .ref-steps { flex-direction: column; }

  .ref-step-arrow {
    transform: rotate(90deg);
    align-self: center;
    margin-top: 0;
  }

  .ref-share-btn { flex: none; }
}

@media (max-width: 640px) {
  .ref-story-card { padding: 24px; }

  .ref-link-row { flex-direction: column; }

  .ref-share-row { flex-direction: column; gap: 8px; }
}
