.referral-banner.site-notice{width:100%;margin-bottom:1.5rem;text-align:left;cursor:pointer;font-family:inherit;background:linear-gradient(110deg,#fff1f2,#ffe4e6);border:1px solid #fda4af;position:relative;overflow:hidden;animation:referral-glow 2.8s ease-in-out infinite}.referral-banner .site-notice-copy>i,.referral-banner .site-notice-copy strong{color:#be123c}.referral-banner .site-notice-copy span{color:#9f1239}.referral-banner-cta{font-size:12px;font-weight:800;color:#be123c;white-space:nowrap}.referral-banner:hover{border-color:#e11d48}.referral-banner:focus-visible,.referral-dialog :is(button,textarea):focus-visible{outline:3px solid #fb7185;outline-offset:3px}.referral-banner:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(110deg,transparent 30%,#ffffff80 50%,transparent 70%);transform:translateX(-110%);animation:referral-shine 5s ease-in-out infinite}@keyframes referral-glow{50%{box-shadow:0 0 20px #e11d4826}}@keyframes referral-shine{0%,40%{transform:translateX(-110%)}85%,100%{transform:translateX(110%)}}
.referral-overlay[hidden],.referral-dialog [hidden]{display:none!important}.referral-overlay{position:fixed;inset:0;z-index:12000;background:#0f172a80;backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:20px}.referral-dialog{width:min(860px,100%);max-height:90vh;max-height:90dvh;overflow:auto;overscroll-behavior:contain;background:#fffaf7;border:1px solid #fecdd3;border-radius:22px;box-shadow:0 28px 100px #450a0a40;position:relative;color:#292524;font-family:Inter,"PingFang SC",sans-serif}.referral-close{position:absolute;right:16px;top:12px;z-index:1;width:38px;height:38px;border-radius:50%;border:1px solid #ffffff55;background:#ffffff22;color:white;font-size:26px;cursor:pointer}.referral-heading{padding:30px 34px 22px;background:radial-gradient(circle at 85% 0%,#fb7185,transparent 48%),linear-gradient(110deg,#9f1239,#dc2626);color:#fff}.referral-kicker{font-size:10px;letter-spacing:2px;color:#fecdd3}.referral-heading h2{margin:12px 0 8px;font-size:30px;font-weight:850;letter-spacing:-1px}.referral-heading p{font-size:13px;color:#ffe4e6;margin:0;line-height:1.7}.referral-highlight{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:22px;padding-top:16px;border-top:1px solid #ffffff33;font-size:12px}.referral-highlight strong{font-size:25px;color:#fef3c7;white-space:nowrap}.referral-highlight small{display:block;font-size:10px;font-weight:500;margin-top:4px;text-align:right}.referral-body{padding:24px 30px 30px}.referral-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));list-style:none;margin:0 0 16px;padding:0;gap:10px}.referral-steps li{padding:13px 8px;background:#fff1f2;border:1px solid #fecdd3;border-radius:10px;font-size:12px;text-align:center;color:#9f1239}.referral-steps b{color:#e11d48;font-size:11px;margin-right:5px}.referral-rules{font-size:12px;line-height:1.9;color:#78716c;margin:0 0 15px}.referral-status{font-size:12px;color:#78716c;margin:12px 0;line-height:1.7}.referral-status.is-error{color:#be123c}.referral-primary,.referral-secondary{font-family:inherit;cursor:pointer;border-radius:9px;font-size:12px;font-weight:700;padding:11px 16px}.referral-primary{border:0;background:linear-gradient(110deg,#be123c,#dc2626);color:white;box-shadow:0 5px 15px #e11d4820}.referral-secondary{border:1px solid #fecdd3;background:white;color:#9f1239}.referral-dialog button:disabled{opacity:.5;cursor:default}.referral-guest{background:white;border:1px solid #fecdd3;border-radius:12px;padding:20px;text-align:center;font-size:13px}.referral-share{border:1px solid #fecdd3;border-radius:12px;background:white;padding:16px}.referral-share label{display:block;font-size:12px;font-weight:700;margin-bottom:10px}.referral-share textarea{width:100%;box-sizing:border-box;resize:vertical;border:1px solid #e7e5e4;background:#fafaf9;color:#57534e;border-radius:8px;padding:11px;font-family:inherit;font-size:12px;line-height:1.8;margin-bottom:10px;overflow-wrap:anywhere}.referral-share [role=status]{display:block;color:#78716c;font-size:11px;margin-top:8px}.referral-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}.referral-stat{background:#fef3c7;border:1px solid #fde68a;border-radius:11px;padding:14px}.referral-stat b{display:block;font-size:24px;color:#92400e}.referral-stat span{font-size:11px;color:#92400e}.referral-section-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:24px 0 10px}.referral-section-title h3{font-size:14px;margin:0}.referral-section-title>span{font-size:10px;color:#78716c}.referral-record{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;background:white;border:1px solid #e7e5e4;border-radius:10px;margin-bottom:8px;min-width:0}.referral-record strong{font-size:12px;overflow-wrap:anywhere}.referral-record p{font-size:11px;color:#78716c;margin:6px 0 0;line-height:1.7}.referral-badge{display:inline-block;padding:4px 8px;background:#fff1f2;border-radius:6px;color:#be123c;font-size:11px;white-space:nowrap}.referral-badge.is-used,.referral-badge.is-expired{background:#f5f5f4;color:#78716c}.referral-empty{font-size:12px;line-height:1.9;color:#78716c;border:1px dashed #d6d3d1;padding:18px;border-radius:10px}.referral-pagination{display:flex;align-items:center;justify-content:center;gap:12px;margin:12px 0}.referral-pagination span{font-size:11px;color:#78716c}.referral-coupons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.referral-coupons .referral-record{margin:0;align-items:flex-start}.referral-coupons .referral-empty{grid-column:1/-1}
@media(max-width:820px){.referral-overlay{padding:12px}.referral-heading{padding:28px 22px 20px}.referral-heading h2{font-size:25px}.referral-body{padding:20px 16px}.referral-highlight{align-items:flex-start}.referral-highlight strong{font-size:22px}.referral-banner-cta{font-size:11px}}@media(max-width:480px){.referral-banner.site-notice{align-items:flex-start;gap:10px}.referral-banner-cta{font-size:10px;white-space:normal;max-width:62px;line-height:1.7}.referral-steps{gap:6px}.referral-steps li{font-size:10px;padding:12px 5px}.referral-steps b{display:block;margin:0 0 5px}.referral-summary{gap:7px}.referral-stat{padding:12px 9px}.referral-stat b{font-size:22px}.referral-section-title{align-items:flex-start}.referral-section-title>span{max-width:140px;text-align:right;line-height:1.6}.referral-coupons{grid-template-columns:1fr}.referral-share .referral-primary{width:100%}.referral-highlight>span{max-width:155px;line-height:1.8}.referral-highlight strong{font-size:21px}}
@media(prefers-reduced-motion:reduce){.referral-banner.site-notice,.referral-banner:after{animation:none}.referral-banner:after{display:none}}

/* Compact campaign: one coupon area, with native scrolling kept available. */
.referral-dialog {
  width:min(760px,100%);
  scrollbar-width:none;
}
.referral-dialog::-webkit-scrollbar { display:none;width:0;height:0; }
.referral-close { top:8px;right:10px;width:44px;height:44px; }
.referral-heading { padding:14px 62px 14px 20px; }
.referral-kicker { font-size:9px;letter-spacing:1px; }
.referral-heading h2 { margin:6px 0;font-size:22px;line-height:1.2; }
.referral-heading p { font-size:12px;line-height:1.5; }
.referral-body { padding:14px 20px 20px; }
.referral-steps { gap:8px;margin-bottom:10px; }
.referral-steps li { padding:6px 8px;line-height:1.5; }
.referral-steps b { display:inline;margin:0 5px 0 0; }
.referral-rules { line-height:1.65;margin-bottom:10px; }
.referral-status { margin:8px 0;line-height:1.5; }
.referral-primary,.referral-secondary { min-height:44px;padding:9px 14px; }
.referral-share { padding:12px; }
.referral-share label { margin-bottom:6px; }
.referral-share textarea { padding:8px;line-height:1.5;margin-bottom:6px; }
.referral-share [role=status]:empty { display:none; }
.referral-section-title { margin:14px 0 8px; }
.referral-summary { display:flex;flex-wrap:wrap;gap:6px;margin:0 0 8px; }
.referral-stat { display:flex;align-items:baseline;gap:6px;padding:4px 8px;border-radius:6px; }
.referral-stat b { display:inline;font-size:15px; }
.referral-invitations { font-size:11px;line-height:1.6;color:#78716c;overflow-wrap:anywhere;margin-bottom:8px; }
.referral-invitations p { margin:0; }
.referral-record { padding:10px; }
.referral-record p { margin-top:4px;line-height:1.5; }
.referral-empty { margin:0;padding:10px; }
@media(max-width:480px) {
  .referral-overlay { padding:8px; }
  .referral-dialog { border-radius:16px; }
  .referral-heading { padding:14px 58px 12px 14px; }
  .referral-heading h2 { font-size:20px; }
  .referral-body { padding:12px; }
  .referral-steps { gap:5px; }
  .referral-steps li { padding:6px 3px; }
}
