.ref-overlay{z-index:9999;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#0000008c;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.ref-modal{scrollbar-width:none;background:#fff;border-radius:20px;width:100%;max-width:460px;max-height:88vh;padding:28px 24px 32px;position:relative;overflow-y:auto;box-shadow:0 20px 60px #00000040}.ref-modal::-webkit-scrollbar{display:none}.ref-close{cursor:pointer;color:#6b7280;background:0 0;border:none;justify-content:center;align-items:center;width:36px;height:36px;font-size:20px;transition:background .15s;display:flex;position:absolute;top:14px;right:16px}.ref-close:hover{color:#111}.ref-header{text-align:center;margin-bottom:24px}.ref-header-icon{color:#148550;background:#e3f4ea;border-radius:50%;justify-content:center;align-items:center;width:72px;height:72px;margin:0 auto 10px;font-size:34px;line-height:1;display:flex}.ref-header h2{color:#111827;margin:0 0 6px;font-size:22px;font-weight:700}.ref-header p{color:#6b7280;margin:0;font-size:14px}.ref-header p strong{color:#059669;font-weight:700}.ref-loading{text-align:center;color:#9ca3af;padding:32px 0;font-size:15px}.ref-stats{gap:12px;margin-bottom:20px;display:flex}.ref-stat{text-align:center;background:#f9fafb;border:1px solid #e5e7eb;border-radius:12px;flex:1;padding:14px 10px}.ref-stat-green{background:#ecfdf5;border-color:#a7f3d0}.ref-stat-val{color:#111827;margin-bottom:4px;font-size:22px;font-weight:800;line-height:1}.ref-stat-green .ref-stat-val{color:#059669}.ref-stat-label{color:#9ca3af;text-transform:uppercase;letter-spacing:.04em;font-size:11px;font-weight:600}.ref-reward-banner{border:1.5px solid #0000;border-radius:12px;margin-bottom:18px;padding:12px 16px;font-size:13.5px;font-weight:500;line-height:1.5}.ref-reward-provider{color:#065f46;background:#ecfdf5;border-color:#6ee7b7}.ref-reward-customer{color:#1e40af;background:#eff6ff;border-color:#93c5fd}.ref-reward-banner strong{font-weight:700}.ref-code-box{text-align:center;background:linear-gradient(135deg,#f0fdf4 0%,#ecfdf5 100%);border:1.5px dashed #6ee7b7;border-radius:14px;margin-bottom:18px;padding:16px 18px}.ref-code-label{color:#6b7280;text-transform:uppercase;letter-spacing:.05em;margin-bottom:6px;font-size:11px;font-weight:600}.ref-code{color:#065f46;letter-spacing:.12em;margin-bottom:4px;font-family:Courier New,monospace;font-size:26px;font-weight:900}.ref-link{color:#9ca3af;word-break:break-all;margin-bottom:12px;font-size:11px}.ref-copy-btn{color:#fff;cursor:pointer;background:#059669;border:none;border-radius:8px;padding:8px 20px;font-size:13px;font-weight:600;transition:background .15s,transform .1s}.ref-copy-btn:hover{background:#047857}.ref-copy-btn:active{transform:scale(.97)}.ref-share-row{gap:8px;margin-bottom:20px;display:flex}.ref-share-btn{cursor:pointer;color:#fff;border:none;border-radius:10px;flex:1;padding:9px 4px;font-size:12px;font-weight:600;transition:opacity .15s,transform .1s}.ref-share-btn:hover{opacity:.88}.ref-share-btn:active{transform:scale(.96)}.ref-sms{background:#3b82f6}.ref-whatsapp{background:#25d366}.ref-twitter{background:#1da1f2}.ref-email{background:#6366f1}.ref-apply{background:#f9fafb;border:1px solid #e5e7eb;border-radius:12px;margin-bottom:20px;padding:16px}.ref-apply-label{color:#374151;margin-bottom:10px;font-size:13px;font-weight:600}.ref-apply-row{gap:8px;display:flex}.ref-apply-input{letter-spacing:.05em;color:#111827;background:#fff;border:1.5px solid #d1d5db;border-radius:8px;outline:none;flex:1;padding:9px 12px;font-size:14px;font-weight:600;transition:border-color .15s}.ref-apply-input:focus{border-color:#059669}.ref-apply-btn{color:#fff;cursor:pointer;white-space:nowrap;background:#111827;border:none;border-radius:8px;padding:9px 18px;font-size:13px;font-weight:600;transition:background .15s}.ref-apply-btn:hover:not(:disabled){background:#1f2937}.ref-apply-btn:disabled{opacity:.45;cursor:not-allowed}.ref-apply-success{color:#059669;margin:8px 0 0;font-size:13px;font-weight:500}.ref-apply-error{color:#dc2626;margin:8px 0 0;font-size:13px;font-weight:500}.ref-history{border-top:1px solid #f3f4f6;padding-top:16px}.ref-history-title{color:#374151;text-transform:uppercase;letter-spacing:.04em;margin-bottom:12px;font-size:13px;font-weight:700}.ref-history-item{border-bottom:1px solid #f3f4f6;justify-content:space-between;align-items:center;padding:10px 0;display:flex}.ref-history-item:last-child{border-bottom:none}.ref-history-name{color:#374151;font-size:14px;font-weight:500}.ref-history-right{align-items:center;gap:8px;display:flex}.ref-pill{white-space:nowrap;border-radius:999px;padding:4px 10px;font-size:11px;font-weight:700}.ref-pill-green{color:#065f46;background:#d1fae5}.ref-pill-gray{color:#6b7280;background:#f3f4f6}.ref-amount{white-space:nowrap;font-size:13px;font-weight:800}.ref-amount-pos{color:#059669}.ref-amount-neg{color:#6b7280}.ref-milestone{background:#f9fafb;border:1px solid #eef0f2;border-radius:12px;margin-bottom:16px;padding:14px 16px}.ref-milestone-text{color:#374151;margin-bottom:8px;font-size:13px}.ref-milestone-text strong{color:#059669}.ref-milestone-bar{background:#e5e7eb;border-radius:999px;height:8px;overflow:hidden}.ref-milestone-fill{background:linear-gradient(90deg,#1dbf73,#059669);border-radius:999px;height:100%;transition:width .4s}.ref-milestone-count{color:#6b7280;text-align:right;margin-top:6px;font-size:11px;font-weight:700}.ref-milestone-hint{color:#6b7280;margin-top:10px;font-size:11.5px}.ref-milestone-hint strong{color:#059669}@media (width<=480px){.ref-modal{padding:22px 16px 28px}.ref-stats{gap:8px}.ref-stat-val{font-size:18px}.ref-share-row{flex-wrap:wrap}.ref-share-btn{flex:40%}}.ref-close{z-index:6;margin:10px 10px -46px auto;position:sticky;top:10px;right:auto}
