/* ==========================================================================
   Croplod — Formal look (global)
   گوشه‌های تیز و رسمی برای تمام سرویس‌های اکوسیستم + اسکرول‌بار ریز
   ========================================================================== */

/* ---------- Thin, tidy scrollbars (مثل اسکرول‌بار سایدبار) ---------- */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb, rgba(100, 116, 139, 0.5)) transparent;
}
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb, rgba(100, 116, 139, 0.5));
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
    background-color: var(--scrollbar-thumb, rgba(100, 116, 139, 0.75));
}
::-webkit-scrollbar-corner {
    background: transparent;
}

/* ---------- Sharp corners for shared components (all services) ---------- */
.account-card,
.stat-card,
.wallet-hero,
.auth-card,
.checkout-card,
.profile-card,
.pm-card,
.lib-card,
.plus-card,
.list-group {
    border-radius: 10px !important;
}

.btn,
.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-danger,
.btn-sm,
.btn-lg,
.btn-block {
    border-radius: 6px !important;
}

.list-item,
.soc-search-card,
.soc-search,
.post {
    border-radius: 8px !important;
}

.badge,
.chip,
.wallet-chip,
.soc-history-chip {
    border-radius: 4px !important;
}

.empty-state,
.empty-state-icon,
.account-sidebar-link {
    border-radius: 8px !important;
}

.account-header-action-btn {
    border-radius: 8px !important;
}

/* Modal panels: رسمی‌تر */
.profile-modal,
.confirm-modal,
.modal,
.modal-content {
    border-radius: 12px !important;
}

/* Cards inside feeds (post cards are .post — already covered) */
.soc-feed-card,
.soc-layout-main .account-card,
.soc-layout-side .account-card {
    border-radius: 10px !important;
}

/* Premium header avatar ring */
.account-header-avatar.premium-header-avatar {
    position: relative;
    box-shadow: 0 0 0 2px var(--bg-card, #fff), 0 0 14px 1px rgba(251, 191, 36, 0.6);
}

/* Premium avatar ring on posts/comments */
.post-avatar.premium-avatar,
.soc-avatar-mini.premium-avatar {
    position: relative;
    border-radius: 50%;
}

/* ---------- Premium upgrade CTA ---------- */
.cr-upgrade-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 45%, #f59e0b 100%);
    color: #1a1205 !important;
    font-weight: 800;
    font-size: 13.5px;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 18px -4px rgba(245, 158, 11, 0.65);
    transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}
.cr-upgrade-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px -4px rgba(245, 158, 11, 0.85);
    filter: brightness(1.04);
    color: #1a1205 !important;
}
.cr-upgrade-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.cr-upgrade-btn-sm {
    padding: 7px 14px;
    font-size: 12.5px;
    border-radius: 6px;
}

/* Sidebar upgrade link */
.cr-upgrade-sidebar-link {
    background: linear-gradient(135deg, rgba(245,158,11,.14), rgba(251,191,36,.08)) !important;
    border: 1px solid rgba(245,158,11,.35);
    color: #b45309 !important;
    font-weight: 800 !important;
    margin: 2px 10px;
    width: calc(100% - 20px);
}
/* Premium badge chip */
.cr-premium-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #1a1205;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 4px;
}
.cr-premium-chip svg {
    width: 12px;
    height: 12px;
}


/* ---------- Premium profile hero: twinkle stars behind avatar ---------- */
.premium-profile-hero {
    position: relative;
    overflow: hidden;
}

.premium-profile-stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.premium-profile-stars i {
    position: absolute;
    display: block;
    width: 6px;
    height: 6px;
    background: #fbbf24;
    border-radius: 50%;
    box-shadow: 0 0 8px 1px rgba(251, 191, 36, 0.55);
    opacity: 0;
    animation: premium-star-twinkle 3.2s ease-in-out infinite;
}

.premium-profile-stars i:nth-child(1)  { top: 30%;  left: 38%; animation-delay: 0s; }
.premium-profile-stars i:nth-child(2)  { top: 22%;  left: 46%; animation-delay: .4s; }
.premium-profile-stars i:nth-child(3)  { top: 34%;  left: 55%; animation-delay: .8s; }
.premium-profile-stars i:nth-child(4)  { top: 40%;  left: 42%; animation-delay: 1.2s; }
.premium-profile-stars i:nth-child(5)  { top: 24%;  left: 52%; animation-delay: 1.6s; }
.premium-profile-stars i:nth-child(6)  { top: 28%;  left: 34%; animation-delay: 2.0s; }
.premium-profile-stars i:nth-child(7)  { top: 38%;  left: 60%; animation-delay: 2.4s; }
.premium-profile-stars i:nth-child(8)  { top: 18%;  left: 48%; animation-delay: .6s; }
.premium-profile-stars i:nth-child(9)  { top: 42%;  left: 50%; animation-delay: 1.0s; }
.premium-profile-stars i:nth-child(10) { top: 26%;  left: 62%; animation-delay: 1.4s; }
.premium-profile-stars i:nth-child(11) { top: 36%;  left: 30%; animation-delay: 1.8s; }
.premium-profile-stars i:nth-child(12) { top: 20%;  left: 40%; animation-delay: 2.2s; }

@keyframes premium-star-twinkle {
    0%, 100% { opacity: 0; transform: translateY(8px) scale(.6); }
    50%      { opacity: 1; transform: translateY(0) scale(1); }
}
