/* Refer a friend pop-up. Daylight brand: aubergine, coral, lilac, warm paper, apricot. */
.refer-container { max-width: 560px; width: calc(100% - 32px); max-height: calc(100vh - 48px); display: flex; flex-direction: column; overflow: hidden; background: #FFFAF6; }
.refer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 24px 24px 0; }
.refer-title { margin: 0; font-size: 1.45rem; font-weight: 600; color: #392338; letter-spacing: -0.01em; }
.refer-banner { margin: 16px 24px 0; padding: 14px 16px; border-radius: 12px; background: #FFF0E6; color: #392338; font-size: 0.98rem; }
.refer-tabs { display: flex; gap: 24px; margin: 16px 24px 0; border-bottom: 1px solid #E6D3CA; overflow-x: auto; }
.refer-tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 0; margin-bottom: -1px; font: inherit; font-size: 1rem; color: #7A6A75; cursor: pointer; white-space: nowrap; }
.refer-tab[aria-selected="true"] { color: #392338; border-bottom-color: #392338; font-weight: 600; }
.refer-tab:focus-visible, .refer-icon-btn:focus-visible, .refer-copy:focus-visible, .refer-link-field input:focus-visible, .refer-apply-input:focus-visible { outline: 3px solid #FA634B; outline-offset: 2px; }
.refer-body { overflow-y: auto; padding: 16px 24px 24px; }
.refer-panel { background: #F7EEE8; border-radius: 16px; padding: 20px; }
.refer-card { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 340px; margin: 0 auto 20px; padding: 56px 20px 26px; border-radius: 20px; background: #392338; color: #FFFAF6; box-shadow: 0 12px 28px rgba(57, 35, 56, 0.25); }
.refer-arch { position: absolute; top: 0; left: 0; width: 100%; height: 70px; }
.refer-card-logo { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.refer-card-offer { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; }
.refer-card-pill { padding: 4px 12px; border-radius: 999px; background: #DDD0FC; color: #392338; font-size: 0.82rem; font-weight: 600; }
.refer-sr, .refer-overlay .mp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.refer-h3 { display: block; margin: 0 0 8px; font-size: 0.98rem; font-weight: 600; color: #392338; }
.refer-steps { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; color: #392338; }
.refer-steps li { display: flex; align-items: center; gap: 12px; }
.refer-steps i { width: 18px; color: #FA634B; text-align: center; }
.refer-note { margin: 0 0 16px; color: #7A6A75; font-size: 0.9rem; }
.refer-link-head { display: flex; align-items: center; gap: 6px; }
.refer-link-head .refer-h3 { margin: 0; }
.refer-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: #7A6A75; cursor: pointer; }
.refer-icon-btn:hover { background: #EFE2DA; color: #392338; }
.refer-link-row { display: flex; gap: 10px; margin-top: 8px; }
.refer-link-field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 1px solid #E6D3CA; border-radius: 12px; background: #FFFFFF; }
.refer-link-field i { color: #392338; }
.refer-link-field input, .refer-apply-input { flex: 1; min-width: 0; border: 0; background: none; padding: 12px 0; font: inherit; color: #392338; text-overflow: ellipsis; }
.refer-apply-input { padding: 12px; border: 1px solid #E6D3CA; border-radius: 12px; background: #FFFFFF; text-transform: uppercase; }
.refer-copy { flex: none; min-height: 44px; padding: 0 20px; border: 0; border-radius: 12px; background: #EFE2DA; color: #392338; font: inherit; font-weight: 600; cursor: pointer; }
.refer-copy:hover { background: #E6D3CA; }
.refer-apply-btn, .refer-share { background: #392338; color: #FFFAF6; }
.refer-apply-btn:hover, .refer-share:hover { background: #2A1A29; }
.refer-copy:disabled { opacity: 0.6; cursor: default; }
.refer-confirm { margin-top: 8px; padding: 12px 14px; border-radius: 12px; background: #FFF0E6; color: #392338; font-size: 0.92rem; }
.refer-confirm p { margin: 0 0 10px; }
.refer-confirm-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.refer-error, .refer-result.error { color: #A3321F; margin: 10px 0 0; font-size: 0.92rem; }
.refer-result { margin: 10px 0 0; font-size: 0.92rem; min-height: 1.2em; }
.refer-result.ok { color: #2E6B3F; }
.refer-past { list-style: none; margin: 0; padding: 0; }
.refer-past-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #E6D3CA; color: #392338; }
.refer-past-row:last-child { border-bottom: 0; }
.refer-past-name { font-weight: 600; overflow-wrap: anywhere; }
.refer-past-date { color: #7A6A75; font-size: 0.88rem; }
.refer-status { padding: 3px 10px; border-radius: 999px; font-size: 0.84rem; background: #EFE2DA; }
.refer-status-signed_up { background: #DDD0FC; }
.refer-status-complete { background: #392338; color: #FFFAF6; }
.refer-empty { margin: 0; color: #7A6A75; }
.refer-past + .refer-empty { margin-top: 0; }

@media (max-width: 640px) {
    .refer-overlay.active { align-items: stretch; padding: 0; }
    .refer-container { max-width: none; width: 100%; max-height: none; height: 100%; border-radius: 0; }
    .refer-head { padding: 16px 16px 0; }
    .refer-banner, .refer-tabs { margin-left: 16px; margin-right: 16px; }
    .refer-tabs { gap: 18px; }
    .refer-body { padding: 12px 16px 24px; }
    .refer-panel { padding: 16px; }
    .refer-link-row { flex-wrap: wrap; }
    .refer-link-field { flex-basis: 100%; }
    .refer-link-row .refer-copy { flex: 1; }
    .refer-past-row { grid-template-columns: 1fr auto; }
    .refer-past-date { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .refer-overlay, .refer-container { transition: none !important; } }
.refer-head, .refer-banner, .refer-tabs { flex: none; }
@media (max-width: 640px) { .refer-apply .refer-apply-input { flex: 2 1 0; } .refer-apply .refer-copy { flex: 1 1 0; } }
