/* Favorites modal — flat Stage-themed design, matched to the chat-history /
   notifications / transactions modals. Surface #141417 (same as the leaderboard
   modal). Each row is a floating card; mutual favourites get a subtle pink accent
   + a pink heart. Gender = tinted pills; verification = gradient tier (kept).
   Modal width/height (max-width 700 / max-height calc(80vh-80px)) UNCHANGED. */

@keyframes favSpin { to { transform: rotate(360deg); } }
@keyframes favRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* scrollbar hiding */
.favorites-modal-content { scrollbar-width: none; -ms-overflow-style: none; }
.favorites-modal-content::-webkit-scrollbar { display: none; }
#favoritesContent { scrollbar-width: none; -ms-overflow-style: none; }
#favoritesContent::-webkit-scrollbar { display: none; }

/* ── list = floating cards (JS appends .favorite-item into #favoritesList) ── */
#favoritesList { display: flex; flex-direction: column; gap: 8px; }
.favorite-item {
    position: relative; display: flex; align-items: center; gap: 13px; padding: 11px 13px; border-radius: 16px; cursor: pointer;
    border: 1px solid rgba(255,255,255,0.07); background: rgba(255,255,255,0.04);
    transition: transform .16s, border-color .16s, background .16s; animation: favRise .4s ease both;
}
.favorite-item:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.07); }
/* mutual is indicated only by the pink heart by the name — no row accent. */

.favorite-avatar-wrapper { flex: none; position: relative; }
.favorite-avatar { width: 46px; height: 46px; border-radius: 50% !important; object-fit: cover; border: 2px solid rgba(255,255,255,0.10); transition: border-color .16s; display: block; }
.favorite-item:hover .favorite-avatar { border-color: rgba(255,255,255,0.22); }

.favorite-info { flex: 1; min-width: 0; }
.favorite-username { color: #fff; font-weight: 700; font-size: 15px; margin: 0; display: flex; align-items: center; gap: 6px; line-height: 1.2; }
.favorite-username .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* mutual heart (replaces the 💕 emoji) */
.favorite-heart { color: #ff5a8a; display: inline-flex; flex: none; }
.favorite-heart svg { width: 14px; height: 14px; }
.favorite-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; min-width: 0; }

/* gender badge — tinted pill (chat-history style) */
.favorite-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 7px; flex: none; }
.favorite-badge.male { background: rgba(56,151,240,0.16); color: #7bbcff; }
.favorite-badge.female { background: rgba(255,46,104,0.16); color: #ff7aa3; }
.favorite-flag { font-size: 14px; line-height: 1; flex: none; }
.favorite-time { color: rgba(255,255,255,0.4); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* verification badges (gradient gold/blue tier — kept separate per design system) */
.favorite-verification-badge { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 50%; font-size: 9px; color: #fff; font-weight: bold; flex: none; }
.favorite-verification-badge.gold { background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%); }
.favorite-verification-badge.blue { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }

/* remove button (subtle, always visible; red on hover — like the notifications delete) */
.favorite-remove-btn {
    flex: none; width: 28px; height: 28px; border: 0; border-radius: 8px; cursor: pointer; background: transparent;
    color: rgba(255,255,255,0.28); font-size: 15px; line-height: 1; display: grid; place-items: center; padding: 0;
    transition: color .15s, background .15s;
}
.favorite-remove-btn:hover { color: #ff5470; background: rgba(255,84,112,0.12); }

/* ── login-required (wrapper #favoritesLoginRequired toggled block; .fav-login flex) ── */
.fav-login { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }
.fav-login-ic { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7); }
.fav-login-ic svg { width: 17px; height: 17px; }
.fav-login-txt { flex: 1; min-width: 0; }
.fav-login-txt .t { color: #fff; font-weight: 700; font-size: 13px; }
.fav-login-txt .d { color: rgba(255,255,255,0.4); font-size: 11.5px; margin-top: 1px; }

/* ── empty state (wrapper #favoritesEmpty toggled block; .fav-empty flex) ── */
.fav-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 54px 24px 46px; gap: 16px; animation: favRise .4s ease both; }
.fav-empty-ic { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.07); color: rgba(255,255,255,0.6); }
.fav-empty-ic svg { width: 30px; height: 30px; }
.fav-empty-msg { font-size: 15.5px; font-weight: 700; color: rgba(255,255,255,0.72); }
.fav-empty-sub { font-size: 12.5px; color: rgba(255,255,255,0.4); max-width: 250px; line-height: 1.45; }

/* end-of-list line */
.fav-end { text-align: center; color: rgba(255,255,255,0.3); font-size: 12px; }

/* ── Mobile fullscreen (PRESERVED — width/height unchanged) ── */
@media (max-width: 900px) {
    #meetgleFavoritesModal { padding: 0 !important; }
    #meetgleFavoritesModal > .favorites-modal-content {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        height: 100svh !important;
        max-height: 100vh !important;
        max-height: 100svh !important;
        border-radius: 0 !important;
    }
    #favoritesContent { max-height: calc(100svh - 80px) !important; }
}
