/* ==========================================================
   Refer a friend  —  templates/partials/refer.html
   Sits in the offers section, under the offers carousel.
   Uses .btn-hero (hero.css) and .btn-ghost-sm (offers.css).
   ========================================================== */

.refer-tile {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--line-gold);
  border-radius: 18px;
  background:
    radial-gradient(60% 120% at 0% 50%, rgba(255, 176, 0, 0.14), transparent 70%),
    radial-gradient(50% 100% at 100% 50%, rgba(255, 23, 68, 0.12), transparent 70%),
    var(--surface);
}

.refer-intro {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.refer-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold);
  box-shadow: 0 0 18px rgba(255, 176, 0, 0.2);
}

.refer-icon .ico {
  width: 26px;
  height: 26px;
}

.refer-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.refer-title {
  margin: 6px 0 0;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  color: var(--text);
}

.refer-text {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 21px;
  color: var(--text-soft);
}

/* Link box with copy button */
.refer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 14px;
  border: 1px dashed var(--line-gold);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.4);
}

.refer-link-url {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 20px;
  color: var(--gold-light);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.refer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.refer-actions .btn-hero {
  flex: 1 1 auto;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.refer-actions .btn-ghost-sm {
  height: 44px;
}

@media (max-width: 860px) {
  .refer-tile {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .refer-tile {
    gap: 20px;
    padding: 20px;
  }

  .refer-intro {
    flex-direction: column;
    gap: 14px;
  }

  .refer-actions > * {
    justify-content: center;
    width: 100%;
  }
}
