/* Smart rating prompt: presentation only; votes are processed by yascode_likeposts. */
.dm-rating-prompt[hidden] { display: none !important; }
.dm-rating-prompt { position: fixed; inset: 0; z-index: 100120; display: grid; place-items: center; padding: 22px; opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility .22s ease; }
.dm-rating-prompt.is-open { opacity: 1; visibility: visible; }
.dm-rating-prompt__backdrop { position: absolute; inset: 0; background: rgba(4, 8, 18, .76); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dm-rating-prompt__dialog { position: relative; z-index: 1; display: flex; width: min(100%, 460px); max-height: min(88vh, 680px); overflow-y: auto; flex-direction: column; align-items: center; padding: 32px 30px 24px; color: var(--dm-text, #fff); text-align: center; background: var(--dm-surface, #fff); border: 1px solid var(--dm-border, #e4e7ef); border-radius: 25px; box-shadow: 0 28px 90px rgba(0, 0, 0, .34); transform: translateY(12px) scale(.985); transition: transform .24s cubic-bezier(.2,.75,.25,1); outline: none; }
body.dark .dm-rating-prompt__dialog { background: #151d2d; border-color: rgba(255,255,255,.1); color: #fff; }
.dm-rating-prompt.is-open .dm-rating-prompt__dialog { transform: translateY(0) scale(1); }
.dm-rating-prompt__close { position: absolute; top: 13px; inset-inline-end: 13px; display: grid; width: 36px; height: 36px; place-items: center; color: var(--dm-muted, #727b8e); background: var(--dm-surface-2, #f3f5fa); border: 1px solid var(--dm-border, #e4e7ef); border-radius: 50%; cursor: pointer; transition: color .18s ease, background .18s ease, transform .18s ease; }
.dm-rating-prompt__close:hover { color: var(--dm-text, #fff); transform: rotate(90deg); }
.dm-rating-prompt__icon { display: grid; width: 54px; height: 54px; margin: 3px 0 13px; place-items: center; color: #f5b942; background: linear-gradient(145deg, rgba(245,185,66,.22), rgba(245,185,66,.07)); border: 1px solid rgba(245,185,66,.3); border-radius: 18px; box-shadow: 0 8px 25px rgba(245,185,66,.1); }
.dm-rating-prompt__icon i { font-size: 23px; filter: drop-shadow(0 2px 5px rgba(245,185,66,.25)); }
.dm-rating-prompt__eyebrow { margin-bottom: 7px; color: #cf9220; font-size: 12px; font-weight: 800; letter-spacing: .1px; }
body.dark .dm-rating-prompt__eyebrow { color: #ffc65e; }
.dm-rating-prompt__title { margin: 0; color: var(--dm-text, #182033); font-size: 21px; font-weight: 850; line-height: 1.65; }
.dm-rating-prompt__desc { max-width: 340px; margin: 5px 0 17px; color: var(--dm-muted, #727b8e); font-size: 13px; line-height: 1.9; }
.dm-rating-prompt .dm-stars--prompt { display: flex; flex-direction: column; align-items: center; gap: 7px; margin: 0 0 15px; color: var(--dm-text, #182033); }
.dm-rating-prompt .dm-stars--prompt .dm-stars__row { display: inline-flex; flex-direction: row; justify-content: center; gap: 7px; direction: rtl; }
.dm-rating-prompt .dm-stars--prompt .dm-star { display: grid; width: 47px; height: 47px; padding: 0; place-items: center; color: rgba(140,148,162,.42); background: var(--dm-surface-2, #f3f5fa); border: 1px solid var(--dm-border, #e4e7ef); border-radius: 14px; font-size: 21px; cursor: pointer; transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.dm-rating-prompt .dm-stars--prompt .dm-star:hover, .dm-rating-prompt .dm-stars--prompt .dm-star.is-hover { color: #ffc642; background: rgba(245,185,66,.13); border-color: rgba(245,185,66,.52); transform: translateY(-2px); }
.dm-rating-prompt .dm-stars--prompt .dm-star.is-on { color: #f5b942; background: rgba(245,185,66,.13); border-color: rgba(245,185,66,.34); }
.dm-rating-prompt .dm-stars--prompt .dm-star:focus-visible, .dm-rating-prompt__close:focus-visible, .dm-rating-prompt__later:focus-visible { outline: 2px solid #e4a62e; outline-offset: 3px; }
.dm-rating-prompt__scale { display: flex; width: min(100%, 267px); align-items: center; justify-content: space-between; gap: 12px; margin: -1px 0 8px; direction: rtl; color: var(--dm-muted, #727b8e); font-size: 11px; line-height: 1.5; }
.dm-rating-prompt__scale span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.dm-rating-prompt__scale b { display: inline-grid; width: 19px; height: 19px; place-items: center; color: #b77a0c; background: rgba(245,185,66,.14); border: 1px solid rgba(245,185,66,.32); border-radius: 6px; font-size: 10px; font-weight: 850; }
body.dark .dm-rating-prompt__scale { color: rgba(255,255,255,.62); }
.dm-rating-prompt .dm-stars--prompt .dm-stars__info { justify-content: center; font-size: 12px; }
.dm-rating-prompt__later { padding: 7px 18px; color: var(--dm-muted, #727b8e); background: transparent; border: 0; border-radius: 10px; font-size: 12px; font-weight: 700; cursor: pointer; transition: color .18s ease, background .18s ease; }
.dm-rating-prompt__later:hover { color: var(--dm-text, #182033); background: var(--dm-surface-2, #f3f5fa); }
html.dm-rating-prompt-open { overflow: hidden; }
@media (max-width: 640px) {
  .dm-rating-prompt { align-items: end; padding: 0; }
  .dm-rating-prompt__dialog { width: 100%; max-height: min(88vh, 700px); padding: 27px 20px calc(21px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; border-bottom: 0; transform: translateY(24px); }
  .dm-rating-prompt.is-open .dm-rating-prompt__dialog { transform: translateY(0); }
  .dm-rating-prompt__title { font-size: 19px; }
  .dm-rating-prompt .dm-stars--prompt .dm-star { width: 45px; height: 45px; }
}
@media (prefers-reduced-motion: reduce) {
  .dm-rating-prompt, .dm-rating-prompt__dialog, .dm-rating-prompt__close, .dm-rating-prompt__star, .dm-rating-prompt__later { transition: none !important; }
}
