/* In-house refer-a-friend: /share/ (referrer) and /refer/ (friend landing) */
.ref-page { background: var(--cream, #F0F1E9); padding: 48px 16px 64px; color: var(--green, #1B3B13); }
.ref-wrap { max-width: 1100px; margin: 0 auto; }

.ref-hero { display: flex; flex-wrap: wrap; background: #fff; border-radius: 24px; overflow: hidden; }
.ref-hero-main { flex: 1 1 520px; padding: 40px; }
.ref-wallet { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }
.ref-wallet-btn img { display: block; height: 44px; width: auto; }
.ref-hero-side { flex: 1 1 320px; background: var(--lime, #D5FA99); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; text-align: center; }

.ref-badge { display: inline-block; padding: 6px 18px; border-radius: 999px; background: var(--lime, #D5FA99); font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 18px; }
.ref-title { font-size: 44px; line-height: 1.1; margin: 0 0 16px; }
.ref-copy { font-size: 17px; line-height: 1.6; opacity: .85; margin-bottom: 24px; }

.ref-stats { display: flex; flex-wrap: wrap; border: 1px solid rgba(27,59,19,.12); border-radius: 16px; }
.ref-stat { flex: 1 1 120px; padding: 18px 12px; text-align: center; border-right: 1px solid rgba(27,59,19,.12); }
.ref-stat:last-child { border-right: none; }
.ref-stat-num { font-size: 28px; }
.ref-stat-label { font-size: 13px; opacity: .7; margin-top: 4px; }

.ref-qr { background: #fff; padding: 14px; border-radius: 16px; display: inline-block; margin: 14px 0; }
.ref-qr img, .ref-qr canvas { display: block; width: 180px; height: 180px; }
.ref-code { font-size: 22px; letter-spacing: 3px; margin-top: 4px; }

.ref-grid { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 24px; }
.ref-panel { flex: 1 1 420px; background: #fff; border-radius: 24px; padding: 32px; min-width: 0; }
.ref-panel h2 { font-size: 22px; margin: 0 0 16px; }

.ref-label { display: block; font-size: 14px; margin: 16px 0 6px; }
.ref-input, .ref-textarea { width: 100%; padding: 12px 14px; border: 1px solid rgba(27,59,19,.25); border-radius: 12px; font-size: 15px; color: inherit; background: #fff; }
.ref-textarea { min-height: 80px; resize: vertical; }
.ref-linkbox { display: flex; gap: 8px; }
.ref-linkbox .ref-input { flex: 1; min-width: 0; background: var(--cream, #F0F1E9); }

.ref-btn { display: inline-block; border: none; border-radius: 999px; padding: 13px 28px; font-size: 15px; cursor: pointer; text-decoration: none; background: var(--green, #1B3B13); color: var(--cream, #F0F1E9); transition: opacity .2s ease; }
.ref-btn:hover { opacity: .85; color: var(--cream, #F0F1E9); }
.ref-btn:disabled { opacity: .5; cursor: not-allowed; }
.ref-btn-outline { background: transparent; color: var(--green, #1B3B13); border: 1px solid var(--green, #1B3B13); }
.ref-btn-outline:hover { color: var(--green, #1B3B13); }
.ref-btn-block { display: block; width: 100%; margin-top: 20px; }

.ref-msg { margin-top: 12px; font-size: 14px; min-height: 20px; }
.ref-msg.is-error { color: #b42318; }
.ref-msg.is-success { color: #1c7c33; }

.ref-table-wrap { overflow-x: auto; }
.ref-table { width: 100%; border-collapse: collapse; }
.ref-table th, .ref-table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid rgba(27,59,19,.1); font-size: 14px; }
.ref-table th { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; opacity: .7; }
.ref-status { padding: 3px 12px; border-radius: 999px; font-size: 12px; background: var(--cream, #F0F1E9); }
.ref-status-issued { background: var(--lime, #D5FA99); }
.ref-muted { font-size: 14px; opacity: .7; }
.ref-fine { font-size: 12px; opacity: .65; margin-top: 18px; line-height: 1.5; }

.ref-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--green, #1B3B13); color: var(--cream, #F0F1E9); padding: 12px 22px; border-radius: 999px; font-size: 14px; z-index: 1000; display: none; }
.ref-toast.show { display: block; }

@media screen and (max-width: 767px) {
    .ref-page { padding-top: 24px; }
    .ref-hero-main, .ref-panel { padding: 24px; }
    .ref-title { font-size: 32px; }
    .ref-stat { flex-basis: 50%; border-right: none; border-bottom: 1px solid rgba(27,59,19,.12); }
}
