.ygp-overlay{--ygp-brand:var(--yalla-color-primary,#C13B6B);--ygp-on-brand:var(--yalla-color-on-primary,#fff);--ygp-ink:#1f2430;--ygp-muted:#6b7280;--ygp-soft:color-mix(in srgb,var(--ygp-brand) 8%,#fff);--ygp-line:color-mix(in srgb,var(--ygp-brand) 35%,#fff);position:fixed;inset:0;z-index:2147483000;display:flex;align-items:flex-end;justify-content:center;direction:rtl;background:rgba(17,17,20,.55);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);opacity:0;visibility:hidden;transition:opacity .25s ease,visibility .25s ease}
.ygp-overlay.is-open{opacity:1;visibility:visible}
.ygp-card{position:relative;width:100%;background:#fff;border-radius:28px 28px 0 0;padding:26px 20px calc(22px + env(safe-area-inset-bottom,0px));text-align:center;box-shadow:0 -12px 40px rgba(0,0,0,.2);max-height:92dvh;overflow-y:auto;-webkit-overflow-scrolling:touch;transform:translateY(100%);transition:transform .32s cubic-bezier(.2,.8,.3,1)}
.ygp-overlay.is-open .ygp-card{transform:none}
.ygp-card::before{content:"";display:block;width:44px;height:4px;margin:0 auto 14px;border-radius:4px;background:#e2e4e8}
.ygp-close{position:absolute;top:14px;inset-inline-start:14px;width:44px;height:44px;border:0;border-radius:50%;background:#f1f2f4;color:#4b5563;font-size:22px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;-webkit-tap-highlight-color:transparent;transition:background .2s ease}
.ygp-close:active{background:#e5e7eb}
.ygp-gift{font-size:50px;line-height:1;margin:4px 0 12px}
.ygp-title{margin:0 0 10px;font-size:27px;font-weight:800;line-height:1.35;color:var(--ygp-ink)}
.ygp-title span{display:block;color:var(--ygp-brand)}
.ygp-sub{margin:0 auto 18px;max-width:34ch;font-size:15.5px;line-height:1.85;color:var(--ygp-muted)}
.ygp-sub b{color:var(--ygp-brand);font-weight:800}
.ygp-code{display:flex;align-items:center;gap:8px;padding:8px;margin-bottom:14px;border:2px dashed var(--ygp-line);border-radius:16px;background:var(--ygp-soft)}
.ygp-code-text{flex:1 1 auto;min-width:0;font-size:21px;font-weight:800;letter-spacing:.5px;color:var(--ygp-brand);direction:ltr;unicode-bidi:isolate;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ygp-copy{flex:0 0 auto;min-height:44px;border:0;border-radius:12px;padding:0 16px;font-size:15px;font-weight:700;cursor:pointer;-webkit-tap-highlight-color:transparent;background:color-mix(in srgb,var(--ygp-brand) 18%,#fff);color:var(--ygp-brand);transition:background .2s ease}
.ygp-copy:active{background:color-mix(in srgb,var(--ygp-brand) 30%,#fff)}
.ygp-copy.is-done{background:#1f9254;color:#fff}
.ygp-cta{display:block;width:100%;min-height:54px;border:0;border-radius:16px;padding:15px 18px;font-size:17px;font-weight:800;cursor:pointer;text-decoration:none;-webkit-tap-highlight-color:transparent;background:var(--ygp-brand);color:var(--ygp-on-brand);transition:filter .2s ease}
.ygp-cta:hover,.ygp-cta:active{filter:brightness(.93);color:var(--ygp-on-brand)}
.ygp-wa{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;margin-top:10px;font-size:14.5px;font-weight:600;color:var(--ygp-muted);text-decoration:none;transition:color .2s ease}
.ygp-wa svg{width:19px;height:19px;fill:#25D366;flex:0 0 auto}
.ygp-wa:hover{color:var(--ygp-brand)}
body.ygp-locked{overflow:hidden}
@media (min-width:480px){.ygp-overlay{align-items:center;padding:24px}.ygp-card{max-width:420px;border-radius:26px;padding:32px 28px 26px;max-height:calc(100vh - 48px);box-shadow:0 24px 60px rgba(0,0,0,.22);transform:translateY(18px) scale(.97);transition:transform .3s cubic-bezier(.2,.8,.3,1)}.ygp-card::before{display:none}.ygp-gift{font-size:54px}.ygp-title{font-size:30px}}
@media (max-width:340px){.ygp-title{font-size:24px}.ygp-code-text{font-size:18px}.ygp-copy{padding:0 12px;font-size:14px}.ygp-cta{font-size:16px}}
@media (max-height:560px){.ygp-gift{font-size:38px;margin-bottom:8px}.ygp-title{font-size:22px}.ygp-sub{margin-bottom:12px;font-size:14.5px;line-height:1.7}}
@media (prefers-reduced-motion:reduce){.ygp-overlay,.ygp-card{transition:none}}