/* ==========================================================================
   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 star halo behind avatars ---------- */
.pm-avatar-wrap.premium-halo {
    position: relative;
}
.premium-halo .pm-avatar,
.premium-halo img.pm-avatar,
.premium-avatar .pm-avatar {
    position: relative;
    z-index: 1;
}
.premium-halo::before {
    content: '';
    position: absolute;
    inset: -8px;
    z-index: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
        #f59e0b, #fbbf24, #fde68a, #fbbf24, #f59e0b,
        #fbbf24, #fde68a, #fbbf24, #f59e0b);
    animation: premium-spin 6s linear infinite;
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
}
@keyframes premium-spin {
    to { transform: rotate(360deg); }
}
.premium-halo::after {
    content: '★';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-size: 15px;
    color: #fbbf24;
    text-shadow: 0 0 6px rgba(251, 191, 36, 0.9);
}

/* ---------- 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;
}

/* 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;
}
