#viewCountModal .modal-content {
    border: none;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    font-family: "Rubik", sans-serif;
    padding: 20px;
    overflow: hidden;
}

#viewCountModal .modal-header {
    border-bottom: none;
    padding: 10px 15px 20px;
}

#viewCountModal .modal-title {
    width: 100%;
    color: #111827;
    font-size: 20px;
    font-weight: 500;
    text-align: center;
}

#viewCountModal .modal-body {
    padding: 0 !important;
    overflow-y: auto;
}

#viewCountModal .btn-close-modal {
    position: absolute;
    z-index: 10;
    display: flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    color: #4b5563;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

#viewCountModal .btn-close-modal:hover {
    background: #e5e7eb;
    color: #111827;
}

[dir="ltr"] #viewCountModal .btn-close-modal {
    right: 20px;
    left: auto;
}

.vc-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 30px 15px;
}

.vc-stat-card {
    display: flex;
    min-height: 200px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    border-radius: 20px;
    background: rgba(232, 186, 0, 0.05);
    box-shadow: 1px 4px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

.vc-stat-card.mid-card {
    background: rgba(56, 89, 46, 0.05);
}

.vc-stat-icon {
    margin-bottom: auto;
    font-size: 40px;
}

.vc-stat-icon.gold {
    color: #e8ba00;
}

.vc-stat-icon.green {
    color: #38592e;
}

.vc-stat-content-wrapper {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
}

.vc-stat-value {
    margin-bottom: 5px;
    color: #111827;
    font-size: 40px;
    font-weight: 500;
    line-height: 1.2;
    text-align: start;
}

.vc-stat-label {
    color: #7d7c6e;
    font-size: 18px;
    font-weight: 400;
    text-align: start;
}

.vc-section-title {
    margin-bottom: 15px;
    color: #111827;
    font-size: 16px;
    font-weight: 500;
}

.vc-viewer-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.vc-viewer-card {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    padding: 15px 20px;
}

.vc-viewer-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.vc-viewer-avatar {
    display: flex;
    width: 55px;
    height: 55px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 1px 4px 5px rgba(0, 0, 0, 0.1);
    font-size: 26px;
}

.vc-viewer-avatar.school {
    color: #38592e;
}

.vc-viewer-avatar.teacher,
.vc-viewer-avatar.parent {
    color: #e8ba00;
}

.vc-viewer-avatar.supplier,
.vc-viewer-avatar.default {
    color: #6b7280;
}

.vc-viewer-details h6 {
    margin: 0 0 4px;
    color: #111827;
    font-size: 16px;
    font-weight: 500;
}

.vc-viewer-details p {
    margin: 0;
    color: #9ca3af;
    font-size: 13px;
}

.vc-role-badge {
    position: absolute;
    top: 0;
    min-width: 89px;
    justify-content: center;
    padding: 6px 20px;
    color: #111827;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

[dir="ltr"] .vc-role-badge {
    right: 0;
    border-bottom-left-radius: 12px;
}

.vc-role-badge.school {
    background: linear-gradient(180deg, rgba(107, 114, 128, 0.12) 0%, rgba(56, 89, 46, 0.6) 100%);
}

.vc-role-badge.teacher,
.vc-role-badge.parent {
    background: linear-gradient(180deg, rgba(107, 114, 128, 0.12) 0%, rgba(232, 186, 0, 0.6) 100%);
}

.vc-role-badge.supplier,
.vc-role-badge.default {
    background: linear-gradient(180deg, rgba(107, 114, 128, 0.12) 0%, rgba(107, 114, 128, 0.6) 100%);
}

.vc-progress-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vc-progress-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    padding: 15px 20px;
}

.vc-progress-label-wrap {
    min-width: 80px;
}

.vc-progress-role {
    color: #111827;
    font-size: 15px;
    font-weight: 500;
}

.vc-progress-count-wrap {
    display: flex;
    min-width: 80px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.vc-progress-count-number {
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.vc-progress-count-label {
    color: #6b7280;
    font-size: 13px;
}

.vc-progress-track-wrap {
    position: relative;
    flex: 1;
    padding: 20px 0;
}

.vc-progress-track {
    position: relative;
    width: 100%;
    height: 8px;
    margin-top: 10px;
    border-radius: 4px;
    background: #fdf3c8;
}

.vc-progress-fill {
    position: absolute;
    top: 0;
    height: 100%;
    border-radius: 4px;
    background: #e8ba00;
}

[dir="ltr"] .vc-progress-fill {
    right: auto;
    left: 0;
}

.vc-progress-thumb {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    border: 3.5px solid #e8ba00;
    border-radius: 50%;
    background: #fff;
}

[dir="ltr"] .vc-progress-thumb {
    transform: translate(-50%, -50%);
}

.vc-progress-tooltip {
    position: absolute;
    top: -30px;
    border-radius: 4px;
    background: #e8ba00;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 6px;
}

[dir="ltr"] .vc-progress-tooltip {
    transform: translateX(-50%);
}

.vc-footer-action {
    margin-top: 30px;
    text-align: right;
}

.vc-btn-close {
    min-width: 120px;
    cursor: pointer;
    border: none;
    border-radius: 10px;
    background: linear-gradient(180deg, #fdf3c8 0%, #e8ba00 100%);
    box-shadow: 0 4px 10px rgba(232, 186, 0, 0.2);
    color: #111827;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 30px;
    transition: transform 0.2s;
}

.vc-btn-close:hover {
    transform: translateY(-2px);
}

html[dir="rtl"] #viewCountModal .btn-close-modal,
[dir="rtl"] #viewCountModal .btn-close-modal {
    right: auto;
    left: 20px;
}

html[dir="rtl"] .vc-role-badge,
[dir="rtl"] .vc-role-badge {
    left: 0;
    border-bottom-right-radius: 12px;
}

html[dir="rtl"] .vc-progress-fill,
[dir="rtl"] .vc-progress-fill {
    right: 0;
    left: auto;
}

html[dir="rtl"] .vc-progress-thumb,
[dir="rtl"] .vc-progress-thumb {
    transform: translate(50%, -50%);
}

html[dir="rtl"] .vc-progress-tooltip,
[dir="rtl"] .vc-progress-tooltip {
    transform: translateX(50%);
}

html[dir="rtl"] .vc-footer-action,
[dir="rtl"] .vc-footer-action {
    text-align: left;
}

html[dir="rtl"] .vc-section-title,
[dir="rtl"] .vc-section-title,
html[dir="rtl"] .vc-viewer-details h6,
[dir="rtl"] .vc-viewer-details h6 {
    text-align: right;
}

@media (max-width: 576px) {
    .vc-stats-grid {
        grid-template-columns: 1fr;
    }
}

#schoolFavoriteInsightsModal .modal-content {
    border: none;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    font-family: "Rubik", sans-serif;
    padding: 20px;
    overflow: hidden;
}

#schoolFavoriteInsightsModal .modal-header {
    border-bottom: none;
    padding: 10px 15px 20px;
}

#schoolFavoriteInsightsModal .modal-title {
    width: 100%;
    color: #111827;
    font-size: 20px;
    font-weight: 500;
    text-align: center;
}

#schoolFavoriteInsightsModal .modal-body {
    max-height: min(78vh, 760px);
    padding: 0 15px !important;
    overflow-y: auto;
}

#schoolFavoriteInsightsModal .btn-close-modal {
    position: absolute;
    z-index: 10;
    display: flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    color: #4b5563;
    cursor: pointer;
}

[dir="ltr"] #schoolFavoriteInsightsModal .btn-close-modal {
    right: 20px;
    left: auto;
}

html[dir="rtl"] #schoolFavoriteInsightsModal .btn-close-modal,
[dir="rtl"] #schoolFavoriteInsightsModal .btn-close-modal {
    right: auto;
    left: 20px;
}

.school-favorite-title-icon,
.school-favorite-stat-icon,
#schoolFavoriteInsightsModal .vc-viewer-phone i {
    color: #b42338;
}

.school-favorite-stats-grid {
    grid-template-columns: minmax(240px, 380px);
    justify-content: center;
    margin-top: 10px;
}

.school-favorite-stats-grid .vc-stat-card {
    min-height: 150px;
    background: linear-gradient(145deg, rgba(180, 35, 56, 0.04), rgba(232, 186, 0, 0.08));
}

.school-favorite-filter-wrap {
    margin: 10px 0 18px;
}

.school-favorite-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.school-favorite-filter {
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: #4b5563;
    cursor: pointer;
    font-size: 13px;
    padding: 7px 15px;
    transition: 0.2s ease;
}

.school-favorite-filter:hover,
.school-favorite-filter.is-active {
    border-color: #e8ba00;
    background: #111827;
    color: #fff;
}

.school-favorite-role-breakdown {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.school-favorite-role-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #f1e5bd;
    border-radius: 12px;
    background: #fffcf3;
    color: #4b5563;
    padding: 12px 14px;
}

.school-favorite-role-stat strong {
    color: #111827;
    font-size: 18px;
}

.school-favorite-card-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin-inline-start: auto;
}

.school-favorite-card-actions .vc-role-badge {
    position: static;
    border-radius: 999px;
}

.school-favorite-reveal-btn {
    border: 0;
    background: transparent;
    color: #926e00;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    padding: 0;
    margin-inline-start: 6px;
}

.school-favorite-reveal-btn:disabled,
.vc-viewer-list.is-loading {
    cursor: wait;
    opacity: 0.55;
}

.school-favorite-empty i {
    margin-bottom: 8px;
    color: #c7a84b;
    font-size: 34px;
}

@media (max-width: 576px) {
    #schoolFavoriteInsightsModal .modal-content {
        border-radius: 18px;
        padding: 14px;
    }

    #schoolFavoriteInsightsModal .modal-body {
        padding: 0 4px !important;
    }

    .school-favorite-role-breakdown {
        grid-template-columns: 1fr;
    }

    #schoolFavoriteInsightsModal .vc-viewer-card {
        align-items: flex-start;
        gap: 12px;
        padding: 14px;
    }

    .school-favorite-card-actions {
        min-width: 72px;
    }
}
