.referral-sheet { background:#fff; }
.referral-page { --ref-text:#334155; --ref-muted:#626e80; --ref-line:#e1e6ed; background:#fff; color:var(--ref-text); }
.referral-header { padding:8px 20px 0; text-align:center; }
.referral-campaign { display:table; max-width:100%; margin:0 auto; padding:5px 22px; border-radius:30px; background:var(--badge); color:var(--accent-hover); font-size:15px; font-weight:600; line-height:1.5; overflow-wrap:anywhere; }
.referral-masthead { display:flex; align-items:center; justify-content:center; gap:9px; padding:24px 18px 0; margin:0; color:#000; }
.referral-masthead > svg { color:#7950b5; flex:0 0 38px; width:38px; height:38px; }
.referral-masthead h1 { color:inherit; font-family:var(--display); font-size:30px; font-weight:800; line-height:1.25; letter-spacing:-.4px; }
.referral-form { padding:20px 20px 0; }
.referral-form .field-label { margin-bottom:8px; color:var(--ref-text); font-size:16px; line-height:1.5; }
.referral-form .upi-field { min-height:54px; }
.referral-form .upi-field input { min-height:50px; padding-block:12px; }
.referral-field-helper { margin:6px 2px 0; color:var(--ref-muted); font-size:11px; line-height:1.5; }
.referral-split { min-width:0; margin:20px 0 0; padding:0; border:0; }
.referral-split legend { padding:0; color:var(--ref-text); font-size:16px; font-weight:600; line-height:1.5; }
.referral-total { margin:3px 0 12px; color:var(--ref-muted); font-size:12px; line-height:1.5; }
.referral-split-boxes { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.referral-user-share,.referral-your-share { display:block; min-width:0; padding:11px 13px; border:1.5px solid var(--accent); border-radius:18px; background:#fff; }
.referral-user-share:focus-within { box-shadow:0 0 0 3px var(--badge); }
.referral-your-share { border-color:transparent; background:#f0f2f5; }
.referral-user-share > span,.referral-your-share > span { display:flex; align-items:center; justify-content:space-between; gap:3px; color:var(--ref-text); font-size:12px; font-weight:500; line-height:1.5; }
.referral-edit-hint,.referral-auto-hint { font-size:10px; font-weight:500; color:var(--accent-hover); }
.referral-auto-hint { color:var(--ref-muted); }
.referral-amount-input { display:flex; align-items:center; min-height:45px; color:var(--accent-hover); font-size:28px; font-weight:600; line-height:1.4; }
.referral-amount-input > span { font-size:25px; }
.referral-amount-input input { width:100%; min-width:0; min-height:45px; padding:0; border:0; outline:0; background:transparent; color:inherit; font-size:28px; font-weight:600; line-height:1.4; appearance:textfield; }
.referral-your-share output { display:block; padding-top:3px; color:var(--ref-text); font-size:28px; font-weight:600; line-height:1.5; overflow-wrap:anywhere; }
.referral-user-share.has-error { border-color:#a71d40; }
.referral-split-help { margin-top:9px; color:var(--ref-muted); font-size:11px; line-height:1.5; text-align:center; }
.referral-page .referral-action { width:100%; min-height:52px; margin-top:17px; padding:11px 16px; font-family:inherit; font-size:16px; font-weight:600; box-shadow:0 4px 8px #172b4621; }
.referral-action svg { flex-basis:19px; width:19px; height:19px; }
.referral-page .ticket-divider { --line:var(--ref-line); margin-top:14px; }
.referral-how { padding:4px 20px 25px; }
.referral-how ol { display:grid; gap:12px; margin:0; padding:0; list-style:none; }
.referral-how li { display:flex; align-items:flex-start; gap:10px; }
.referral-how svg { flex:0 0 28px; width:28px; height:28px; margin-top:-2px; color:var(--accent); }
.referral-how p { padding-top:1px; font-size:13px; line-height:1.6; }
.referral-success { padding-top:22px; text-align:center; }
.referral-success-heading { margin:0 20px 20px; text-align:center; }
.referral-success-heading > div { min-width:0; }
.referral-success h2 { margin:0; color:var(--accent); font-family:var(--display); font-size:29px; line-height:1.2; font-weight:700; }
.referral-success-intro { margin:5px 0 0; color:var(--ref-muted); font-size:12px; line-height:1.6; }
.referral-split-summary { position:relative; display:grid; grid-template-columns:1fr 1fr; margin:0 20px; border:1px solid var(--ref-line); border-radius:18px; background:#f4f6f8; }
.referral-split-summary > div { display:flex; flex-direction:column; gap:3px; padding:13px 10px; }
.referral-split-summary > div:first-child { border-right:1px dashed #cdd5df; }
.referral-split-summary > div > span { color:var(--ref-muted); font-size:12px; line-height:1.5; }
.referral-split-summary strong { color:var(--accent-hover); font-size:27px; font-weight:600; line-height:1.4; }
.referral-split-summary > div:last-child strong { color:var(--ref-text); }
.referral-split-plus { position:absolute; top:calc(50% - 11px); left:calc(50% - 11px); display:grid; place-items:center; width:22px; height:22px; border:1px solid var(--ref-line); border-radius:50%; background:#fff; color:var(--ref-muted); font-size:14px; }
.referral-success-footer { padding:0 20px 20px; }
.referral-payment { display:flex; flex-wrap:wrap; justify-content:center; gap:3px 8px; margin:6px 0; color:var(--ref-muted); font-size:11px; line-height:1.7; }
.referral-payment strong { min-width:0; color:var(--ref-text); font-weight:500; overflow-wrap:anywhere; }
.referral-link-area { padding:0 20px; }
.referral-link-card { padding:16px; border:1px solid var(--ref-line); border-radius:22px; background:#f7f8fa; text-align:left; }
.referral-link-card > label { display:flex; align-items:center; gap:10px; margin-bottom:12px; color:var(--ref-text); font-size:14px; font-weight:600; }
.referral-link-area textarea { display:block; width:100%; min-height:64px; field-sizing:content; resize:none; padding:0; border:0; border-radius:4px; background:transparent; color:var(--ref-text); font:400 13px/1.8 'Poppins',sans-serif; overflow-wrap:anywhere; }
.referral-link-card .referral-action { min-height:48px; margin-top:14px; padding:11px 14px; border-radius:16px; font-size:15px; box-shadow:0 3px 6px #172b4614; }
.referral-copy-status { min-height:18px; margin:8px 0 0; color:var(--accent-hover); font-size:11px; line-height:1.6; }
.referral-success .ticket-divider { margin-top:2px; }
.referral-result-actions { display:flex; justify-content:space-between; gap:8px; margin-top:1px; }
.referral-result-actions button,.referral-result-actions a { display:flex; align-items:center; justify-content:center; gap:6px; min-height:44px; padding:8px 3px; border:0; background:transparent; color:var(--accent-hover); font-size:12px; font-weight:500; text-decoration:underline; text-underline-offset:4px; }
.referral-result-actions svg { width:15px; height:15px; }
@media (max-width:359px) {
  .referral-header,.referral-form,.referral-how,.referral-link-area { padding-inline:17px; }
  .referral-masthead h1 { font-size:29px; }
  .referral-masthead > svg { width:34px; height:34px; flex-basis:34px; }
  .referral-user-share,.referral-your-share { padding-inline:10px; }
  .referral-amount-input input,.referral-your-share output { font-size:25px; }
  .referral-edit-hint,.referral-auto-hint { font-size:9px; }
  .referral-split-summary { margin-inline:17px; }
  .referral-success-heading { margin-inline:17px; }
  .referral-success h2 { font-size:27px; }
  .referral-link-card { padding:13px; }
  .referral-success-footer { padding-inline:17px; }
}
@media (forced-colors:active) {
  .referral-user-share,.referral-your-share,.referral-split-summary { outline:1px solid CanvasText; }
}

.referral-selected-split { margin-top:13px; }
.referral-selected-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:5px; }
.referral-selected-heading h2 { color:var(--ref-text); font-size:16px; font-weight:600; line-height:1.5; }
.referral-selected-heading button { display:flex; align-items:center; gap:5px; min-height:44px; margin-right:-4px; padding:8px 4px 8px 10px; border:0; background:transparent; color:var(--accent-hover); font-size:13px; font-weight:500; }
.referral-selected-heading button svg { width:15px; height:15px; }
.referral-selected-split .referral-split-summary { margin:0; text-align:center; }
.referral-split-dialog { width:min(368px,calc(100% - 32px)); max-height:calc(100dvh - 32px); margin:auto; padding:18px 20px 20px; overflow-y:auto; overscroll-behavior:contain; border:1px solid #e1e6ed; border-radius:26px; background:#fff; color:var(--ref-text); box-shadow:0 20px 70px #15233938; }
.referral-split-dialog::backdrop { background:#15233980; backdrop-filter:blur(3px); }
.referral-dialog-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:3px; }
.referral-dialog-heading h2 { color:var(--ref-text); font-family:var(--display); font-size:28px; font-weight:700; line-height:1.3; }
.referral-dialog-heading > button { display:grid; place-items:center; flex:0 0 44px; width:44px; height:44px; margin-right:-7px; border:0; border-radius:50%; background:#f0f2f5; color:var(--ref-muted); }
.referral-dialog-heading > button svg { width:19px; height:19px; }
.referral-split-dialog .referral-split { margin:0; }
.referral-split-dialog .referral-total { margin:0 0 17px; }
.referral-dialog-actions { display:grid; grid-template-columns:1fr 1.5fr; gap:10px; margin-top:20px; }
.referral-dialog-actions .referral-action { margin:0; }
.referral-cancel { min-height:52px; padding:10px; border:1px solid #d6dde7; border-radius:30px; background:#fff; color:var(--ref-text); font-size:14px; font-weight:500; }
@media (max-width:359px) { .referral-split-dialog { padding-inline:17px; } .referral-dialog-heading h2 { font-size:26px; } }
