.btfy-ref-modal[hidden]{display:none!important}.btfy-ref-modal{position:fixed;inset:0;z-index:999999;font-family:inherit}.btfy-ref-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.78)}.btfy-ref-dialog{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:min(440px,calc(100vw - 28px));max-height:90vh;overflow:auto;background:#1b1b1b;color:#fff;border:1px solid #363636;border-radius:18px;padding:28px;text-align:center;box-shadow:0 20px 90px #0009}.btfy-ref-x{position:absolute;right:14px;top:10px;background:none;border:0;color:#fff;font-size:28px;cursor:pointer}.btfy-ref-gift{font-size:38px;color:#c6ff00}.btfy-ref-dialog h2{font-size:25px;font-weight:500;color:#fff;margin:10px 0}.btfy-ref-dialog p{font-size:14px;line-height:1.6;color:#c5c5c5}.btfy-ref-dialog strong{color:#fff}.btfy-ref-duo{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:22px 0}.btfy-ref-duo>div{background:#282828;padding:18px;border-radius:10px}.btfy-ref-duo strong{display:block;font-size:32px;color:#c6ff00}.btfy-ref-duo span{font-size:11px;color:#ddd}.btfy-ref-primary,.btfy-ref-linkrow button{background:#c6ff00!important;color:#111!important;border:0;border-radius:8px;padding:12px 15px;font-weight:700;text-decoration:none;cursor:pointer}.btfy-ref-member label{display:block;text-align:left;font-size:11px;color:#aaa;margin-bottom:8px}.btfy-ref-linkrow{display:flex;gap:8px}.btfy-ref-linkrow input{min-width:0;flex:1;background:#292929;color:#fff;border:1px solid #444;border-radius:7px;padding:10px;font-size:12px}.btfy-ref-dialog small{display:block;margin-top:20px;color:#999;font-size:11px;line-height:1.5}

/* Backdrop blur and browser/theme-proof close button */
.btfy-ref-modal .btfy-ref-backdrop{background:rgba(0,0,0,.35)!important;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.btfy-ref-modal .btfy-ref-dialog .btfy-ref-x,.btfy-ref-modal .btfy-ref-dialog .btfy-ref-x:hover,.btfy-ref-modal .btfy-ref-dialog .btfy-ref-x:focus{appearance:none!important;-webkit-appearance:none!important;display:grid!important;place-items:center!important;position:absolute!important;top:12px!important;right:12px!important;width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;padding:0!important;margin:0!important;border:1px solid #3b3b3b!important;border-radius:50%!important;background:#101010!important;background-image:none!important;color:#fff!important;fill:#fff!important;box-shadow:none!important;text-shadow:none!important;font:400 22px/1 Arial,sans-serif!important;opacity:1!important;cursor:pointer!important}
.btfy-ref-modal .btfy-ref-dialog .btfy-ref-x:focus-visible{outline:2px solid #c6ff00!important;outline-offset:2px!important}
@media(prefers-reduced-transparency:reduce){.btfy-ref-modal .btfy-ref-backdrop{-webkit-backdrop-filter:none;backdrop-filter:none;background:rgba(0,0,0,.9)!important}}

/* v1.4: no delayed content reveal; gentle opening transition */
.btfy-ref-modal:not([hidden]) .btfy-ref-backdrop{animation:btfy-ref-fade .18s ease-out both}
.btfy-ref-modal:not([hidden]) .btfy-ref-dialog{animation:btfy-ref-enter .2s ease-out both}
.btfy-ref-stats{min-height:1.6em}
@keyframes btfy-ref-fade{from{opacity:0}to{opacity:1}}
@keyframes btfy-ref-enter{from{opacity:0;transform:translate(-50%,-49%) scale(.985)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
@media(prefers-reduced-motion:reduce){.btfy-ref-modal:not([hidden]) .btfy-ref-backdrop,.btfy-ref-modal:not([hidden]) .btfy-ref-dialog{animation:none}}
