/* DAYSTY popups: one design for toasts, dialogs, sheets and live pop-ups */
:root { --pop-bg: #17171D; --pop-line: rgba(255,255,255,.13); --pop-shadow: 0 18px 50px rgba(0,0,0,.55); --pop-red: #E11D48; --pop-violet: #7C3AED; }

/* toasts made by DaystyUI */
.d-ui-toasts { position: fixed; z-index: 10050; left: 50%; transform: translateX(-50%); bottom: calc(88px + env(safe-area-inset-bottom)); display: grid; gap: 8px; width: min(420px, calc(100vw - 24px)); pointer-events: none; }
.d-ui-toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(23,23,29,.97); color: #fff; border: 1px solid var(--pop-line); box-shadow: var(--pop-shadow); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font: 600 14px/1.35 var(--d-font-body, system-ui, sans-serif); cursor: pointer; animation: uiUp .22s ease-out; }
.d-ui-toast.is-out { opacity: 0; transform: translateY(6px); transition: opacity .18s, transform .18s; }
.d-ui-toast__ic { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 800 13px/1 var(--d-font-body, sans-serif); font-style: normal; background: rgba(124,58,237,.35); }
.d-ui-toast__ic::before { content: "i"; }
.d-ui-toast.is-ok .d-ui-toast__ic { background: rgba(34,197,94,.3); color: #86EFAC; }
.d-ui-toast.is-ok .d-ui-toast__ic::before { content: "\2713"; }
.d-ui-toast.is-error { border-color: rgba(225,29,72,.5); }
.d-ui-toast.is-error .d-ui-toast__ic { background: rgba(225,29,72,.3); color: #FDA4AF; }
.d-ui-toast.is-error .d-ui-toast__ic::before { content: "!"; }
.d-ui-toast__t { min-width: 0; overflow-wrap: anywhere; }

/* dialogs */
.d-ui-scrim { position: fixed; z-index: 10040; inset: 0; display: grid; place-items: center; padding: 14px; background: rgba(0,0,0,.62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: uiFade .16s ease-out; }
.d-ui-scrim.is-out { opacity: 0; transition: opacity .15s; }
.d-ui-dialog { width: min(400px, 100%); display: grid; gap: 10px; padding: 20px; border-radius: 20px; background: var(--pop-bg); color: #F4EFE9; border: 1px solid var(--pop-line); box-shadow: var(--pop-shadow); animation: uiPop .2s ease-out; }
.d-ui-dialog__h { margin: 0; font: 800 19px/1.25 var(--d-font-body, system-ui, sans-serif); }
.d-ui-dialog__p { margin: 0; font-size: 14.5px; line-height: 1.5; color: rgba(255,255,255,.75); overflow-wrap: anywhere; }
.d-ui-dialog__acts { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }
.d-ui-btn { min-height: 44px; padding: 0 18px; border: 1px solid var(--pop-line); border-radius: 999px; background: rgba(255,255,255,.06); color: #fff; font: 700 14px var(--d-font-body, system-ui, sans-serif); cursor: pointer; }
.d-ui-btn:hover { background: rgba(255,255,255,.12); }
.d-ui-btn--main { border-color: transparent; background: linear-gradient(135deg, var(--pop-red), var(--pop-violet)); }
.d-ui-btn--main:hover { filter: brightness(1.1); background: linear-gradient(135deg, var(--pop-red), var(--pop-violet)); }
.d-ui-dialog.is-danger .d-ui-btn--main { background: var(--pop-red); }
.d-ui-btn:focus-visible, .d-ui-input:focus-visible { outline: 2px solid #A78BFA; outline-offset: 2px; }
.d-ui-input { width: 100%; box-sizing: border-box; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--pop-line); background: #0F0F14; color: #fff; font-size: 15px; }
.d-ui-lock { overflow: hidden; }
@media (max-width: 560px) {
  .d-ui-scrim { align-items: end; padding: 0; }
  .d-ui-dialog { width: 100%; border-radius: 22px 22px 0 0; padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); animation: uiSheet .22s ease-out; }
  .d-ui-dialog__acts { display: grid; grid-template-columns: 1fr 1fr; }
  .d-ui-dialog__acts .d-ui-btn:only-child { grid-column: 1 / -1; }
}

/* the older toasts get the same look */
html body .d-watch__toast, html body .d-mtoast, html body .d-lpt, html body .d-privtoast { padding: 12px 16px; border-radius: 14px; background: rgba(23,23,29,.97); color: #fff; border: 1px solid var(--pop-line); box-shadow: var(--pop-shadow); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font: 600 14px/1.35 var(--d-font-body, system-ui, sans-serif); animation: uiUp .22s ease-out; }
html body .d-watch__toast { bottom: calc(88px + env(safe-area-inset-bottom)); max-width: min(420px, calc(100vw - 24px)); text-align: center; }

/* "is live" and message pop-ups */
html body .d-pop { overflow: hidden; border-radius: 18px; background: rgba(23,23,29,.98); border: 1px solid var(--pop-line); box-shadow: var(--pop-shadow); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: uiDown .26s ease-out; }
html body .d-pop--live { border-color: rgba(225,29,72,.55); }
html body .d-pop::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--pop-red), var(--pop-violet)); transform-origin: left; animation: uiBar 15s linear forwards; }
html body .d-pop--msg::after { animation-duration: 8s; }
html body .d-pop__go { background: linear-gradient(135deg, var(--pop-red), var(--pop-violet)); }
html body .d-pop__x { width: 34px; height: 34px; }

/* sheets: private session, gifts, live message, guest panel, reports */
html body .d-pm__box, html body .d-gsheet__panel, html body .d-dm, html body .d-gpanel { background: var(--pop-bg); border: 1px solid var(--pop-line); box-shadow: var(--pop-shadow); }
html body .d-pm, html body .d-rep, html body .d-gscrim { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
@media (max-width: 560px) { html body .d-pm { align-items: end; padding: 0; } html body .d-pm__box { width: 100%; border-radius: 22px 22px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); } }

@keyframes uiUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes uiDown { from { opacity: 0; transform: translate(-50%, -12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes uiFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes uiPop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes uiSheet { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes uiBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .d-ui-toast, .d-ui-scrim, .d-ui-dialog, html body .d-pop, html body .d-pop::after { animation-duration: .01s !important; } }