/* =====================================================================
   Profile customization effects + author profile popup
   Shared by: community-posts.html, post-view.html, account.html
   Effect ids MUST stay in sync with assets/js/profile-effects.js
   and the validation catalog in user-auth-api.php
   ===================================================================== */

/* --------------------------- Username styles ------------------------- */
.fx-name {
    display: inline-block;
    font-weight: 800;
    line-height: 1.25;
    background-clip: border-box;
}

/* simple public glow (first unlock) */
.fx-name--glow {
    color: #f3e8ff;
    animation: fxGlowPulse 2.4s ease-in-out infinite;
}
@keyframes fxGlowPulse {
    0%, 100% { text-shadow: 0 0 4px rgba(192, 132, 252, 0.45), 0 0 9px rgba(147, 51, 234, 0.25); }
    50% { text-shadow: 0 0 9px rgba(192, 132, 252, 0.9), 0 0 20px rgba(147, 51, 234, 0.6); }
}

/* violet gradient */
.fx-name--gradient-violet {
    background: linear-gradient(100deg, #c084fc, #a855f7, #7c3aed, #d8b4fe, #a855f7);
    background-size: 260% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 1px 6px rgba(147, 51, 234, 0.35));
    animation: fxGradientSlide 4.5s linear infinite;
}

/* aqua gradient */
.fx-name--gradient-aqua {
    background: linear-gradient(100deg, #67e8f9, #22d3ee, #38bdf8, #818cf8, #22d3ee);
    background-size: 260% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 1px 6px rgba(56, 189, 248, 0.35));
    animation: fxGradientSlide 4s linear infinite;
}

/* sunset gradient */
.fx-name--gradient-sunset {
    background: linear-gradient(100deg, #fda4af, #fb7185, #f59e0b, #fbbf24, #f472b6, #fb7185);
    background-size: 280% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 1px 6px rgba(251, 113, 133, 0.35));
    animation: fxGradientSlide 3.6s linear infinite;
}

/* metallic chrome (NEW) */
.fx-name--chrome {
    background: linear-gradient(100deg, #64748b, #e2e8f0, #ffffff, #94a3b8, #f1f5f9, #64748b);
    background-size: 260% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 1px 3px rgba(148, 163, 184, 0.6));
    animation: fxGradientSlide 3s linear infinite;
}

/* aurora flow (NEW) */
.fx-name--aurora {
    background: linear-gradient(100deg, #34d399, #22d3ee, #a855f7, #34d399, #4ade80);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 0 7px rgba(52, 211, 153, 0.45));
    animation: fxGradientSlide 3.2s linear infinite, fxAuroraHue 6s ease-in-out infinite;
}
@keyframes fxAuroraHue {
    0%, 100% { filter: drop-shadow(0 0 7px rgba(52, 211, 153, 0.45)) hue-rotate(0deg); }
    50% { filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.55)) hue-rotate(40deg); }
}

/* rainbow attention loop */
.fx-name--rainbow {
    background: linear-gradient(100deg, #f87171, #fbbf24, #34d399, #22d3ee, #a855f7, #f472b6, #f87171);
    background-size: 320% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: fxGradientSlide 2.6s linear infinite;
}

/* gold shine with moving highlight band */
.fx-name--gold {
    background: linear-gradient(100deg, #b45309, #fbbf24, #fffbeb, #fde68a, #d97706, #fbbf24);
    background-size: 260% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.55));
    animation: fxGradientSlide 3s linear infinite;
}

/* neon pulse attention loop */
.fx-name--neon {
    color: #f5d0fe;
    text-shadow: 0 0 4px #f0abfc, 0 0 9px #e879f9, 0 0 16px #d946ef, 0 0 26px #a21caf;
    animation: fxNeonFlicker 1.9s ease-in-out infinite;
}
@keyframes fxNeonFlicker {
    0%, 100% { text-shadow: 0 0 4px #f0abfc, 0 0 9px #e879f9, 0 0 16px #d946ef, 0 0 26px #a21caf; opacity: 1; }
    43% { text-shadow: 0 0 6px #f5d0fe, 0 0 14px #f0abfc, 0 0 24px #e879f9, 0 0 34px #c026d3; }
    47% { opacity: 0.72; }
    50% { opacity: 1; }
}

@keyframes fxGradientSlide {
    0% { background-position: 0% 50%; }
    100% { background-position: 260% 50%; }
}

@media (prefers-reduced-motion: reduce) {
    .fx-name { animation: none !important; }
}

/* --------------------------- Avatar effects -------------------------- */
/* .fx-avatar wraps a round avatar element (must be a perfect circle so the
   image corners never poke through the ring / particle effects). */
.fx-avatar {
    position: relative;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    isolation: isolate;
}
.fx-avatar > * {
    position: relative;
    z-index: 2;
    border-radius: 50%;
    overflow: hidden;
}
.fx-avatar img {
    border-radius: 50%;
    object-fit: cover;
}

/* soft gradient ring */
.fx-avatar--ring::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, #c084fc, #7c3aed);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 1;
}

/* rotating gradient ring */
.fx-avatar--ring-glow::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(from 0deg, #a855f7, #22d3ee, #f472b6, #a855f7);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: fxSpin 4s linear infinite;
    z-index: 1;
}
.fx-avatar--ring-glow::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.45);
    z-index: 0;
}

/* rotating rainbow ring (NEW) */
.fx-avatar--rainbow-ring::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(from 0deg, #f87171, #fbbf24, #34d399, #22d3ee, #a855f7, #f472b6, #f87171);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: fxSpin 3.4s linear infinite;
    filter: saturate(1.2);
    z-index: 1;
}

/* single orbiting particle */
.fx-avatar--orbit::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px dashed rgba(34, 211, 238, 0.4);
    animation: fxSpin 9s linear infinite;
    z-index: 1;
}
.fx-avatar--orbit::after {
    content: '';
    position: absolute;
    top: -9px;
    left: 50%;
    width: 9px;
    height: 9px;
    margin-left: -4.5px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 10px 2px #22d3ee;
    transform-origin: 4.5px calc(50% + 9px);
    animation: fxOrbit 3.2s linear infinite;
    z-index: 3;
}

/* two orbiting particles (NEW) */
.fx-avatar--orbit-duo::before,
.fx-avatar--orbit-duo::after {
    content: '';
    position: absolute;
    top: -9px;
    left: 50%;
    width: 9px;
    height: 9px;
    margin-left: -4.5px;
    border-radius: 50%;
    transform-origin: 4.5px calc(50% + 9px);
    z-index: 3;
}
.fx-avatar--orbit-duo::before {
    background: #a855f7;
    box-shadow: 0 0 10px 2px #a855f7;
    animation: fxOrbit 3.6s linear infinite;
}
.fx-avatar--orbit-duo::after {
    background: #22d3ee;
    box-shadow: 0 0 10px 2px #22d3ee;
    animation: fxOrbit 3.6s linear infinite;
    animation-delay: -1.8s;
}

/* pulse rings */
.fx-avatar--pulse::before,
.fx-avatar--pulse::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    border: 2px solid rgba(168, 85, 247, 0.65);
    animation: fxPulseRing 2.4s ease-out infinite;
    z-index: 1;
}
.fx-avatar--pulse::after { animation-delay: 1.2s; }

/* sparkle particles */
.fx-avatar--sparkle::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 12% 20%, #fff 0 1.6px, transparent 2.2px),
        radial-gradient(circle at 82% 12%, #fde68a 0 1.6px, transparent 2.2px),
        radial-gradient(circle at 90% 78%, #fff 0 1.6px, transparent 2.2px),
        radial-gradient(circle at 20% 85%, #c084fc 0 1.6px, transparent 2.2px),
        radial-gradient(circle at 50% 3%, #fff 0 1.3px, transparent 2px),
        radial-gradient(circle at 6% 55%, #fde68a 0 1.3px, transparent 2px);
    animation: fxSparkle 1.7s ease-in-out infinite;
    z-index: 3;
    pointer-events: none;
}
.fx-avatar--sparkle::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 1;
}

/* flame ring */
.fx-avatar--flame::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(from 0deg, #f97316, #ef4444, #f59e0b, #ef4444, #f97316);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: fxSpin 2.1s linear infinite;
    filter: drop-shadow(0 0 7px rgba(249, 115, 22, 0.75));
    z-index: 1;
}
.fx-avatar--flame::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    box-shadow: 0 0 14px 2px rgba(249, 115, 22, 0.55);
    animation: fxFlicker 0.85s ease-in-out infinite;
    z-index: 0;
}

@keyframes fxSpin { to { transform: rotate(360deg); } }
@keyframes fxOrbit { to { transform: rotate(360deg); } }
@keyframes fxPulseRing {
    0% { transform: scale(1); opacity: 0.85; }
    100% { transform: scale(1.8); opacity: 0; }
}
@keyframes fxSparkle {
    0%, 100% { opacity: 0.3; transform: rotate(0deg) scale(0.96); }
    50% { opacity: 1; transform: rotate(10deg) scale(1.04); }
}
@keyframes fxFlicker {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .fx-avatar::before, .fx-avatar::after { animation: none !important; }
}

/* --------------------------- Bio link buttons ------------------------ */
.fx-bio-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}
.fx-bio-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(168, 85, 247, 0.4);
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(168, 85, 247, 0.08));
    color: #e9d5ff;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    direction: ltr;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.fx-bio-link i {
    font-size: 0.95rem;
    color: #c084fc;
    flex-shrink: 0;
}
.fx-bio-link span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 170px;
}
.fx-bio-link:hover {
    transform: translateY(-2px);
    border-color: rgba(168, 85, 247, 0.8);
    box-shadow: 0 8px 18px rgba(147, 51, 234, 0.35);
    color: #fff;
}

/* --------------------------- Author trigger -------------------------- */
.fx-author-trigger {
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    font: inherit;
    color: inherit;
    text-align: inherit;
}
.fx-author-trigger:hover .fx-name:not([class*="fx-name--"]) { color: #c4b5fd; }

/* --------------------------- Profile popup --------------------------- */
.fx-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(4, 4, 8, 0.72);
    backdrop-filter: blur(6px);
    opacity: 0;
    animation: fxModalFade 0.22s ease forwards;
}
@keyframes fxModalFade { to { opacity: 1; } }
.fx-modal.fx-closing { animation: fxModalFadeOut 0.18s ease forwards; }
@keyframes fxModalFadeOut { to { opacity: 0; } }

.fx-card {
    position: relative;
    width: min(430px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 22px;
    border: 1px solid rgba(147, 51, 234, 0.32);
    background: linear-gradient(160deg, #17111f 0%, #0d0913 100%);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
    padding: 0 24px 24px;
    transform: translateY(14px) scale(0.97);
    animation: fxCardIn 0.26s cubic-bezier(0.2, 0.9, 0.3, 1.1) forwards;
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    text-align: center;
}
@keyframes fxCardIn { to { transform: translateY(0) scale(1); } }

.fx-card-banner {
    position: relative;
    height: 120px;
    margin: 0 -24px;
    border-radius: 22px 22px 0 0;
    background: radial-gradient(circle at 30% 0%, rgba(147, 51, 234, 0.45), transparent 70%),
        linear-gradient(120deg, rgba(168, 85, 247, 0.3), rgba(34, 211, 238, 0.15));
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.fx-card-banner.has-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 9, 19, 0.15), rgba(13, 9, 19, 0.85));
}
.fx-card-banner:not(.has-cover)::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transform: translateX(-100%);
    animation: fxBannerShimmer 3.5s infinite;
}
@keyframes fxBannerShimmer { 60%, 100% { transform: translateX(100%); } }

.fx-close {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.45);
    color: #f4f4f5;
    cursor: pointer;
    transition: 0.18s ease;
}
.fx-close:hover { background: rgba(244, 63, 94, 0.35); color: #fff; }

.fx-card-avatar {
    position: relative;
    z-index: 3;
    width: 96px;
    height: 96px;
    margin: -48px auto 0;
}
.fx-card-avatar .fx-avatar-inner {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #7c3aed, #c026d3);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    font-size: 1.7rem;
    border: 4px solid #0d0913;
}
.fx-card-avatar .fx-avatar-inner img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.fx-card-name { margin: 14px 0 2px; font-size: 1.3rem; }
.fx-card-username { color: #8b8b96; font-size: 0.8rem; direction: ltr; }
.fx-card-role {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    background: rgba(147, 51, 234, 0.16);
    color: #c4b5fd;
    border: 1px solid rgba(147, 51, 234, 0.3);
}
.fx-card-role.is-admin { background: rgba(245, 158, 11, 0.16); color: #fbbf24; border-color: rgba(245, 158, 11, 0.35); }

.fx-card-bio {
    margin: 16px 0 4px;
    color: #cbd5e1;
    font-size: 0.85rem;
    line-height: 1.9;
    white-space: pre-wrap;
    word-break: break-word;
}

.fx-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 18px 0 4px;
}
.fx-card-stat {
    padding: 12px 6px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(147, 51, 234, 0.16);
}
.fx-card-stat b { display: block; font-size: 1.15rem; color: #fff; }
.fx-card-stat span { font-size: 0.66rem; color: #9ca3af; }

.fx-card-links { margin-top: 16px; }
.fx-card-links .fx-bio-links { justify-content: center; }

.fx-card-loading, .fx-card-error {
    padding: 40px 10px;
    color: #9ca3af;
    font-size: 0.85rem;
}
.fx-card-error { color: #fda4af; }
.fx-spin { animation: fxSpin 1s linear infinite; display: inline-block; }

@media (max-width: 480px) {
    .fx-card { padding: 0 18px 20px; }
    .fx-card-stat b { font-size: 1rem; }
}

/* --------------------- Account customizer panel --------------------- */
.fx-customizer { grid-column: 1 / -1; margin-top: 4px; display: grid; gap: 20px; }
.fx-customizer .fx-picker-block { display: grid; gap: 12px; }
.fx-picker-label { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 0.88rem; color: #ddd6fe; }
.fx-picker-label small { color: #8b8b96; font-weight: 600; }

.fx-progress {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    font-size: 0.8rem;
    color: #c4b5fd;
}
.fx-progress span { display: inline-flex; align-items: center; gap: 6px; }
.fx-progress b { color: #fff; font-size: 0.95rem; }

.fx-preview {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 22px;
    border-radius: 16px;
    background: radial-gradient(circle at 50% 0%, rgba(147, 51, 234, 0.16), transparent 70%), rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(147, 51, 234, 0.2);
}
.fx-preview small { color: #8b8b96; font-size: 0.68rem; }
.fx-preview-avatar { position: relative; width: 76px; height: 76px; }
.fx-preview-avatar .fx-avatar-inner {
    width: 76px; height: 76px; border-radius: 50%; overflow: hidden;
    display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 1.3rem;
    background: linear-gradient(135deg, #7c3aed, #c026d3); border: 3px solid #0d0913;
}
.fx-preview-avatar .fx-avatar-inner img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.fx-preview-name { font-size: 1.4rem; font-weight: 800; }

.fx-option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.fx-option {
    position: relative;
    display: grid;
    gap: 8px;
    padding: 14px 12px 10px;
    border-radius: 13px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    text-align: center;
    transition: 0.18s ease;
}
.fx-option:hover { border-color: rgba(139, 92, 246, 0.5); background: rgba(139, 92, 246, 0.08); }
.fx-option.is-active { border-color: var(--ac-purple, #8b5cf6); background: rgba(139, 92, 246, 0.16); box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.4); }
.fx-option.is-locked { cursor: not-allowed; opacity: 0.72; }
.fx-option.is-locked:hover { border-color: rgba(148, 163, 184, 0.16); background: rgba(255, 255, 255, 0.02); }
.fx-option-demo { display: grid; place-items: center; min-height: 42px; }
.fx-option-demo .fx-name { font-size: 1.05rem; }
.fx-option-demo .fx-avatar { width: 36px; height: 36px; }
.fx-option-demo .fx-avatar .fx-avatar-inner { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #7c3aed, #c026d3); overflow: hidden; }
.fx-option-title { font-size: 0.74rem; font-weight: 700; color: #e4e4e7; }
.fx-option-lock {
    display: flex; align-items: center; justify-content: center; gap: 5px;
    font-size: 0.62rem; color: #f59e0b; font-weight: 700;
}
.fx-option.is-unlocked .fx-option-lock { color: #22c55e; }
.fx-option-tier { position: absolute; top: 6px; left: 8px; font-size: 0.55rem; color: #8b8b96; }

.fx-links-editor { display: grid; gap: 10px; }
.fx-link-row { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 8px; align-items: center; }
.fx-link-row input {
    width: 100%; background: rgba(17, 17, 24, 0.8); border: 1px solid rgba(147, 51, 234, 0.28);
    color: #fff; padding: 9px 12px; border-radius: 9px; font: inherit; font-size: 0.82rem;
}
.fx-link-row input:focus { outline: none; border-color: #9333ea; }
.fx-link-remove {
    display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px;
    border: 1px solid rgba(244, 63, 94, 0.3); background: rgba(244, 63, 94, 0.1); color: #fda4af; cursor: pointer;
}
.fx-link-remove:hover { background: rgba(244, 63, 94, 0.2); color: #fff; }
.fx-links-empty { color: #8b8b96; font-size: 0.78rem; padding: 4px 2px; }

@media (max-width: 560px) {
    .fx-link-row { grid-template-columns: 1fr auto; }
    .fx-link-row input:first-child { grid-column: 1 / -1; }
}

/* ---------------------- Account cover uploader ---------------------- */
.cover-uploader { margin-bottom: 16px; }
.cover-preview {
    position: relative;
    height: 96px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.25);
    background: linear-gradient(120deg, rgba(168, 85, 247, 0.28), rgba(34, 211, 238, 0.14));
}
.cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.cover-preview .cover-empty {
    position: absolute; inset: 0; display: grid; place-items: center;
    color: #cbd5e1; font-size: 0.68rem; gap: 4px;
}
.cover-preview .cover-empty i { font-size: 1.3rem; color: #c4b5fd; }
.cover-actions { display: flex; gap: 8px; margin-top: 10px; justify-content: center; }
.cover-actions .soft-button,
.cover-actions .danger-button { font-size: 0.7rem; min-height: 36px; padding: 7px 12px; }
