/* Only manual position system. Existing card design is unchanged. */
.main-content-container.dashboard-manual-layout {
    position: relative;
    min-height: 2160px;
}

.dashboard-manual-layout .dashboard-positioned-card {
    position: absolute !important;
    left: var(--card-x) !important;
    top: var(--card-y) !important;
    width: var(--card-width) !important;
    height: var(--card-height) !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    z-index: 1;
    overflow: hidden;
}

.dashboard-manual-layout .dashboard-positioned-card.dashboard-card-scroll {
    overflow-x: hidden;
    overflow-y: hidden;
    display: flex !important;
    flex-direction: column;
}

.dashboard-manual-layout .dashboard-card-scroll > .d-flex:first-child {
    flex: 0 0 auto;
}

.dashboard-manual-layout .dashboard-card-scroll > .default-table-area {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.dashboard-manual-layout .dashboard-card-scroll .table-responsive {
    height: 100%;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.dashboard-manual-layout .dashboard-card-scroll .table-responsive::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.dashboard-manual-layout .dashboard-card-scroll .table-responsive thead th {
    position: sticky;
    top: 0;
    z-index: 3;
}


.dashboard-empty-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid #d8dce8;
    border-radius: 8px;
    background: #f7f8fb;
    color: #536174;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 1px 0 rgba(15, 23, 42, .03);
}

.dashboard-empty-pill i {
    font-size: 16px;
    color: #7a8494;
}

#top_performer_body,
#top_performer_body .dashboard-top-performer {
    min-height: 100%;
}

.dashboard-top-performer {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dashboard-top-group {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(121, 109, 246, .18);
    border-radius: 8px;
    background: #ffffff;
}

.dashboard-castle-badge {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(145deg, #796df6, #00c5d5);
    color: #fff;
    box-shadow: 0 10px 22px rgba(121, 109, 246, .24);
}

.dashboard-castle-badge i {
    font-size: 24px;
    line-height: 1;
    color: #fff;
}

.dashboard-castle-badge span {
    margin-top: 2px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.dashboard-top-label {
    display: block;
    margin-bottom: 3px;
    color: #7b8494;
    font-size: 12px;
    font-weight: 700;
}

.dashboard-top-group h4 {
    margin: 0;
    color: #1f2937;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
}

.dashboard-performer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 10px;
}

.dashboard-performer-hero,
.dashboard-performer-stat,
.dashboard-performer-empty {
    min-width: 0;
    border: 1px solid #e8ebf3;
    border-radius: 8px;
    background: #fff;
}

.dashboard-performer-hero {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
}

.dashboard-performer-hero span,
.dashboard-performer-stat span {
    display: block;
    color: #7b8494;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

.dashboard-performer-hero h3,
.dashboard-performer-stat strong {
    display: block;
    margin: 4px 0 3px;
    overflow: hidden;
    color: #796df6;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-performer-hero strong,
.dashboard-performer-stat small {
    display: block;
    overflow: hidden;
    color: #536174;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-performer-stat {
    padding: 13px;
}

.dashboard-performer-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    align-self: flex-start;
    color: #536174;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.dashboard-performer-link i {
    font-size: 16px;
    transition: transform .18s ease;
}

.dashboard-performer-link:hover {
    color: #796df6;
}

.dashboard-performer-link:hover i {
    transform: translateX(2px);
}

.dashboard-performer-empty {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    color: #536174;
}

.dashboard-performer-empty i {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f7f8fb;
    color: #796df6;
    font-size: 24px;
}

.dashboard-performer-empty strong,
.dashboard-performer-empty span {
    display: block;
}

.dashboard-performer-empty strong {
    color: #1f2937;
    font-size: 15px;
    font-weight: 800;
}

.dashboard-performer-empty span {
    margin-top: 2px;
    font-size: 13px;
    line-height: 1.35;
}

@media(max-width: 1199px) {
    .dashboard-performer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media(max-width: 575px) {
    .dashboard-top-group,
    .dashboard-performer-hero,
    .dashboard-performer-empty {
        align-items: flex-start;
    }

    .dashboard-performer-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}


.dashboard-top-performer.premium {
    gap: 16px;
}

.dashboard-top-group.premium {
    position: relative;
    overflow: hidden;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(121, 109, 246, .22);
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 58%, #eefbff 100%);
    box-shadow: 0 18px 36px rgba(15, 23, 42, .07);
}

.dashboard-top-group.premium::after {
    content: "";
    position: absolute;
    right: -45px;
    top: -75px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(0, 197, 213, .13);
}

.dashboard-group-icon {
    position: relative;
    z-index: 1;
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(121, 109, 246, .20);
}

.dashboard-group-icon img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.dashboard-top-group.premium > div:last-child {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.dashboard-top-group.premium h4 {
    color: #172033;
    font-size: 22px;
    font-weight: 900;
}

.dashboard-top-group.premium p {
    max-width: 620px;
    margin: 5px 0 0;
    color: #667085;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.dashboard-top-group.premium .dashboard-top-label {
    color: #796df6;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .2px;
    text-transform: uppercase;
}

.dashboard-performer-grid.premium {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-performer-card {
    position: relative;
    min-width: 0;
    min-height: 188px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 14px 14px;
    overflow: hidden;
    border: 1px solid #e7eaf3;
    border-radius: 10px;
    background: #fff;
    text-align: center;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .06);
}

.dashboard-performer-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 52px;
    background: linear-gradient(90deg, rgba(121, 109, 246, .13), rgba(0, 197, 213, .13));
}

.dashboard-performer-photo-wrap {
    position: relative;
    z-index: 1;
    width: 70px;
    height: 70px;
    margin-bottom: 10px;
}

.dashboard-performer-photo-wrap > img.rounded-circle,
.dashboard-performer-photo-wrap > div.rounded-circle {
    width: 64px !important;
    height: 64px !important;
    border: 4px solid #fff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .16);
}

.dashboard-place-ribbon {
    position: absolute;
    right: -5px;
    bottom: -4px;
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: drop-shadow(0 5px 8px rgba(15, 23, 42, .20));
}

.dashboard-performer-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
    width: 100%;
}

.dashboard-performer-copy span {
    display: block;
    min-height: 30px;
    color: #667085;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.25;
    text-transform: uppercase;
}

.dashboard-performer-copy strong {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: #172033;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-performer-copy small {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: #796df6;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-profile-btn {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 34px;
    margin-top: auto;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: #172033;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.dashboard-profile-btn:hover,
.dashboard-profile-btn:focus {
    background: #796df6;
    box-shadow: 0 10px 20px rgba(121, 109, 246, .24);
    transform: translateY(-1px);
}

#dashboardPerformerProfileModal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 30px 70px rgba(15, 23, 42, .24);
}

#dashboardPerformerProfileModal .modal-header {
    border: 0;
    padding: 18px 20px 0;
}

#dashboardPerformerProfileModal .modal-title {
    color: #172033;
    font-size: 18px;
    font-weight: 900;
}

#dashboardPerformerProfileModal .modal-body {
    padding: 18px 22px 22px;
}

.dashboard-profile-modal-hero {
    text-align: center;
}

.dashboard-profile-modal-photo {
    position: relative;
    width: 104px;
    height: 104px;
    margin: 0 auto 12px;
}

.dashboard-profile-modal-photo > img.rounded-circle,
.dashboard-profile-modal-photo > div.rounded-circle {
    width: 96px !important;
    height: 96px !important;
    border: 5px solid #fff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .18);
}

.dashboard-profile-modal-photo > img:not(.rounded-circle) {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.dashboard-profile-modal-hero span {
    color: #796df6;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.dashboard-profile-modal-hero h3 {
    margin: 5px 0 3px;
    color: #172033;
    font-size: 24px;
    font-weight: 900;
}

.dashboard-profile-modal-hero p {
    margin: 0;
    color: #667085;
    font-size: 13px;
    font-weight: 700;
}

.dashboard-profile-modal-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.dashboard-profile-modal-stats div {
    padding: 14px;
    border: 1px solid #e7eaf3;
    border-radius: 10px;
    background: #f8fbff;
}

.dashboard-profile-modal-stats span,
.dashboard-profile-modal-stats strong {
    display: block;
}

.dashboard-profile-modal-stats span {
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.dashboard-profile-modal-stats strong {
    margin-top: 4px;
    color: #172033;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
}

@media(max-width: 1199px) {
    .dashboard-performer-grid.premium {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media(max-width: 575px) {
    .dashboard-top-group.premium {
        align-items: flex-start;
        padding: 15px;
    }

    .dashboard-top-group.premium h4 {
        font-size: 19px;
    }

    .dashboard-performer-grid.premium,
    .dashboard-profile-modal-stats {
        grid-template-columns: minmax(0, 1fr);
    }
}


.dashboard-top-shell {
    padding: 14px !important;
    overflow: hidden;
    border: 1px solid rgba(138, 165, 255, .28) !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, #f4efff 0%, #f4fbff 42%, #ffffff 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 14px 35px rgba(69, 91, 150, .10);
}

#top_performer_body {
    min-height: 100%;
}

.dashboard-performer-showcase {
    position: relative;
    min-height: 100%;
    padding: 10px;
    overflow: hidden;
    border-radius: 14px;
    background: rgba(255, 255, 255, .64);
    backdrop-filter: blur(14px);
}

.dashboard-performer-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 10% 8%, rgba(255, 214, 238, .62), transparent 24%),
        radial-gradient(circle at 72% 0%, rgba(189, 224, 255, .70), transparent 30%),
        radial-gradient(circle at 94% 18%, rgba(211, 204, 255, .55), transparent 20%);
}

.dashboard-showcase-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.dashboard-showcase-title {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 13px;
}

.dashboard-title-icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #fff3d7, #f0e8ff);
    font-size: 30px;
    box-shadow: 0 12px 25px rgba(121, 109, 246, .16);
}

.dashboard-title-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.dashboard-showcase-title h3 {
    margin: 0;
    color: #11194d;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.15;
}

.dashboard-showcase-title p {
    margin: 5px 0 0;
    color: #55607a;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.dashboard-showcase-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
}

.dashboard-vip-pill {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 18px 8px 9px;
    border: 1px solid rgba(121, 109, 246, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    color: #6459ee;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 10px 24px rgba(121, 109, 246, .10);
    white-space: nowrap;
}

.dashboard-vip-pill img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
}

.dashboard-view-all {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 20px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #6d5df6, #7b4dff);
    cursor: pointer;
    appearance: none;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(109, 93, 246, .28);
}

.dashboard-view-all i {
    font-size: 18px;
}

.dashboard-performer-grid.premium {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-performer-card {
    position: relative;
    min-width: 0;
    min-height: 205px;
    display: block;
    padding: 22px 24px 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 14px;
    text-align: left;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 16px 32px rgba(31, 40, 95, .10);
}

.dashboard-performer-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 86% 2%, rgba(255,255,255,.56), transparent 23%),
        linear-gradient(120deg, rgba(255,255,255,.0), rgba(255,255,255,.35));
}

.dashboard-performer-card-rose {
    background: linear-gradient(135deg, #ffe2ec 0%, #fff6f9 56%, #fff 100%);
    --accent: #ff5a55;
    --button: linear-gradient(90deg, #ff4d69, #bb35f0);
    --spark: #ff9ca7;
}

.dashboard-performer-card-blue {
    background: linear-gradient(135deg, #dff2ff 0%, #eef8ff 55%, #fff 100%);
    --accent: #1885ff;
    --button: linear-gradient(90deg, #10bde9, #1684fb);
    --spark: #56b6ff;
}

.dashboard-performer-card-green {
    background: linear-gradient(135deg, #d5fff1 0%, #ebfff6 55%, #fff 100%);
    --accent: #05a963;
    --button: linear-gradient(90deg, #17c96f, #05a96a);
    --spark: #3edb94;
}

.dashboard-performer-card-violet {
    background: linear-gradient(135deg, #eee8ff 0%, #f7f2ff 55%, #fff 100%);
    --accent: #7157ff;
    --button: linear-gradient(90deg, #7a5af8, #5142ef);
    --spark: #9b72ff;
}

.dashboard-sparkle {
    position: absolute;
    z-index: 1;
    color: var(--spark);
    font-size: 18px;
    opacity: .72;
}

.dashboard-sparkle-a { left: 31%; top: 18%; }
.dashboard-sparkle-b { left: 63%; top: 27%; font-size: 14px; opacity: .55; }
.dashboard-sparkle-c { right: 8%; top: 13%; font-size: 21px; }

.dashboard-performer-photo-wrap {
    position: relative;
    z-index: 2;
    width: 72px;
    height: 72px;
    margin: 0 0 8px;
}

.dashboard-performer-photo-wrap > img.rounded-circle,
.dashboard-performer-photo-wrap > div.rounded-circle {
    width: 64px !important;
    height: 64px !important;
    border: 4px solid #fff;
    box-shadow: 0 10px 18px rgba(18, 29, 72, .18);
}

.dashboard-place-ribbon {
    position: absolute;
    right: 0;
    bottom: 2px;
    z-index: 3;
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 4px 7px rgba(18,29,72,.18));
}

.dashboard-performer-copy {
    position: relative;
    z-index: 3;
    max-width: calc(100% - 116px);
}

.dashboard-performer-copy span {
    display: block;
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}

.dashboard-performer-copy strong {
    display: block;
    margin-top: 7px;
    overflow: hidden;
    color: #11194d;
    font-size: 22px;
    font-weight: 950;
    line-height: 1.08;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-performer-copy small {
    display: block;
    margin-top: 7px;
    overflow: hidden;
    color: var(--accent);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-card-art {
    position: absolute;
    right: 25px;
    top: 58px;
    z-index: 2;
    min-width: 96px;
    color: var(--accent);
    font-size: 78px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    filter: drop-shadow(0 14px 18px rgba(18,29,72,.13));
}

.dashboard-performer-card-violet .dashboard-card-art {
    font-size: 92px;
    transform: rotate(180deg) skewX(-7deg);
    letter-spacing: -18px;
}

.dashboard-profile-btn {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 18px;
    z-index: 4;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    border: 0;
    border-radius: 10px;
    background: var(--button);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 12px 24px rgba(31, 40, 95, .13);
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.dashboard-profile-btn i {
    font-size: 18px;
}

.dashboard-profile-btn:hover,
.dashboard-profile-btn:focus {
    filter: saturate(1.08) brightness(1.02);
    box-shadow: 0 15px 26px rgba(31, 40, 95, .18);
    transform: translateY(-1px);
}

@media(max-width: 1399px) {
    .dashboard-performer-card { padding: 20px 18px 18px; }
    .dashboard-card-art { right: 16px; font-size: 66px; }
    .dashboard-performer-copy { max-width: calc(100% - 94px); }
    .dashboard-profile-btn { left: 18px; right: 18px; }
}

@media(max-width: 1199px) {
    .dashboard-showcase-head { align-items: flex-start; flex-direction: column; }
    .dashboard-showcase-actions { width: 100%; justify-content: space-between; }
    .dashboard-performer-grid.premium { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media(max-width: 575px) {
    .dashboard-top-shell { padding: 10px !important; }
    .dashboard-showcase-title { align-items: flex-start; }
    .dashboard-showcase-title h3 { font-size: 18px; }
    .dashboard-title-icon { width: 48px; height: 48px; flex-basis: 48px; font-size: 25px; }
    .dashboard-showcase-actions { align-items: stretch; flex-direction: column; gap: 10px; }
    .dashboard-vip-pill, .dashboard-view-all { width: 100%; justify-content: center; }
    .dashboard-performer-grid.premium { grid-template-columns: minmax(0, 1fr); }
    .dashboard-performer-card { min-height: 205px; }
    .dashboard-profile-modal-stats { grid-template-columns: minmax(0, 1fr); }
}

.dashboard-performer-showcase {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 12px;
}

.dashboard-showcase-head {
    margin-bottom: 0;
}

.dashboard-group-spotlight {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 76px;
    padding: 12px 16px;
    overflow: hidden;
    border: 1px solid rgba(121, 109, 246, .16);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255,255,255,.82), rgba(239,247,255,.88));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.88), 0 12px 26px rgba(31,40,95,.08);
}

.dashboard-group-spotlight::after {
    content: "";
    position: absolute;
    right: -30px;
    top: -55px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(121, 109, 246, .10);
}

.dashboard-group-medal {
    position: relative;
    z-index: 1;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(121,109,246,.16);
}

.dashboard-group-medal img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.dashboard-group-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
    flex: 1 1 auto;
}

.dashboard-group-copy span,
.dashboard-group-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-group-copy span {
    color: #6459ee;
    font-size: 11px;
    font-weight: 950;
    line-height: 1.2;
    text-transform: uppercase;
}

.dashboard-group-copy strong {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: #11194d;
    font-size: 18px;
    font-weight: 950;
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-group-copy small {
    margin-top: 3px;
    color: #64708d;
    font-size: 12px;
    font-weight: 850;
}

.dashboard-group-avatars {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    padding-left: 10px;
}

.dashboard-group-avatar {
    display: inline-flex;
    margin-left: -10px;
}

.dashboard-group-avatar:first-child {
    margin-left: 0;
}

.dashboard-group-avatar > img,
.dashboard-group-avatar > div {
    border: 3px solid #fff;
    box-shadow: 0 8px 16px rgba(18,29,72,.14);
}

.dashboard-performer-grid.premium {
    flex: 1 1 auto;
    align-items: stretch;
}

.dashboard-performer-card {
    min-height: 238px;
    display: flex;
    flex-direction: column;
    padding: 20px 22px 18px;
}

.dashboard-performer-photo-wrap,
.dashboard-performer-copy,
.dashboard-profile-btn {
    flex: 0 0 auto;
}

.dashboard-performer-copy {
    max-width: calc(100% - 104px);
    min-height: 82px;
    margin-bottom: 14px;
}

.dashboard-card-art {
    top: 62px;
    right: 22px;
    font-size: 66px;
    opacity: .95;
}

.dashboard-performer-card-blue .dashboard-card-art {
    font-size: 76px;
    transform: rotate(-10deg);
}

.dashboard-performer-card-green .dashboard-card-art {
    font-size: 78px;
}

.dashboard-performer-card-violet .dashboard-card-art {
    right: 30px;
    top: 78px;
    font-size: 78px;
    transform: rotate(-10deg) skewX(-12deg);
    letter-spacing: 0;
}

.dashboard-profile-btn {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: auto;
}

@media(max-width: 1399px) {
    .dashboard-performer-card { min-height: 238px; padding: 18px; }
    .dashboard-card-art { right: 16px; font-size: 60px; }
    .dashboard-performer-copy { max-width: calc(100% - 88px); }
}

@media(max-width: 575px) {
    .dashboard-group-spotlight { align-items: flex-start; flex-wrap: wrap; }
    .dashboard-group-avatars { width: 100%; padding-left: 0; }
    .dashboard-performer-copy { max-width: calc(100% - 92px); }
}

.dashboard-profile-details-title {
    margin: 18px 0 10px;
    color: #172033;
    font-size: 14px;
    font-weight: 950;
}

.dashboard-profile-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.dashboard-profile-detail,
.dashboard-profile-empty {
    min-width: 0;
    padding: 12px;
    border: 1px solid #e7eaf3;
    border-radius: 10px;
    background: #fff;
}

.dashboard-profile-detail span,
.dashboard-profile-detail strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-profile-detail span {
    color: #667085;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
    white-space: nowrap;
}

.dashboard-profile-detail strong {
    margin-top: 5px;
    color: #172033;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.dashboard-profile-empty {
    grid-column: 1 / -1;
    color: #667085;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

#dashboardGroupProfileModal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 30px 70px rgba(15,23,42,.24);
}

#dashboardGroupProfileModal .modal-header {
    border: 0;
    padding: 18px 20px 0;
}

#dashboardGroupProfileModal .modal-title {
    color: #172033;
    font-size: 18px;
    font-weight: 950;
}

#dashboardGroupProfileModal .modal-body {
    padding: 18px 22px 22px;
}

.dashboard-group-modal-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(121,109,246,.16);
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fbff, #fff);
}

.dashboard-group-modal-head span,
.dashboard-group-modal-head p {
    display: block;
    margin: 0;
}

.dashboard-group-modal-head span {
    color: #6459ee;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.dashboard-group-modal-head h3 {
    margin: 4px 0;
    color: #172033;
    font-size: 22px;
    font-weight: 950;
}

.dashboard-group-modal-head p {
    color: #667085;
    font-size: 13px;
    font-weight: 800;
}

.dashboard-group-modal-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-height: 58vh;
    margin-top: 14px;
    overflow-y: auto;
    padding-right: 4px;
}

.dashboard-group-member-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    min-width: 0;
    padding: 14px;
    border: 1px solid #e7eaf3;
    border-radius: 12px;
    background: #fff;
}

.dashboard-group-member-rank {
    position: absolute;
    right: 12px;
    top: 10px;
    color: #c0c6d5;
    font-size: 11px;
    font-weight: 950;
}

.dashboard-group-member-main {
    min-width: 0;
}

.dashboard-group-member-main strong,
.dashboard-group-member-main span,
.dashboard-group-member-score strong,
.dashboard-group-member-score span,
.dashboard-group-member-meta span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-group-member-main strong {
    color: #172033;
    font-size: 15px;
    font-weight: 950;
}

.dashboard-group-member-main span,
.dashboard-group-member-score span,
.dashboard-group-member-meta span {
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.dashboard-group-member-score {
    padding-right: 26px;
    text-align: right;
}

.dashboard-group-member-score strong {
    color: #16a765;
    font-size: 18px;
    font-weight: 950;
}

.dashboard-group-member-meta {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px;
    padding-top: 8px;
    border-top: 1px solid #eef1f6;
}

@media(max-width: 767px) {
    .dashboard-profile-details-grid,
    .dashboard-group-modal-list,
    .dashboard-group-member-meta {
        grid-template-columns: minmax(0, 1fr);
    }

    .dashboard-group-member-card {
        grid-template-columns: auto 1fr;
    }

    .dashboard-group-member-score {
        grid-column: 1 / -1;
        padding-right: 0;
        text-align: left;
    }
}

body.dark .dashboard-top-shell,
body.dark-theme .dashboard-top-shell,
body[data-theme="dark"] .dashboard-top-shell,
html.dark .dashboard-top-shell,
html.dark-theme .dashboard-top-shell,
html[data-theme="dark"] .dashboard-top-shell {
    border-color: rgba(121, 109, 246, .28) !important;
    background: linear-gradient(135deg, #111827 0%, #101827 48%, #17142a 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 14px 35px rgba(0,0,0,.28);
}

body.dark .dashboard-performer-showcase,
body.dark-theme .dashboard-performer-showcase,
body[data-theme="dark"] .dashboard-performer-showcase,
html.dark .dashboard-performer-showcase,
html.dark-theme .dashboard-performer-showcase,
html[data-theme="dark"] .dashboard-performer-showcase {
    background: rgba(15, 23, 42, .72);
    color: #e5e7eb;
}

body.dark .dashboard-performer-showcase::before,
body.dark-theme .dashboard-performer-showcase::before,
body[data-theme="dark"] .dashboard-performer-showcase::before,
html.dark .dashboard-performer-showcase::before,
html.dark-theme .dashboard-performer-showcase::before,
html[data-theme="dark"] .dashboard-performer-showcase::before {
    background:
        radial-gradient(circle at 10% 8%, rgba(121, 109, 246, .22), transparent 28%),
        radial-gradient(circle at 72% 0%, rgba(0, 197, 213, .16), transparent 32%),
        radial-gradient(circle at 94% 18%, rgba(255, 90, 85, .12), transparent 24%);
}

body.dark .dashboard-showcase-title h3,
body.dark-theme .dashboard-showcase-title h3,
body[data-theme="dark"] .dashboard-showcase-title h3,
html.dark .dashboard-showcase-title h3,
html.dark-theme .dashboard-showcase-title h3,
html[data-theme="dark"] .dashboard-showcase-title h3,
body.dark .dashboard-performer-copy strong,
body.dark-theme .dashboard-performer-copy strong,
body[data-theme="dark"] .dashboard-performer-copy strong,
html.dark .dashboard-performer-copy strong,
html.dark-theme .dashboard-performer-copy strong,
html[data-theme="dark"] .dashboard-performer-copy strong,
body.dark .dashboard-group-copy strong,
body.dark-theme .dashboard-group-copy strong,
body[data-theme="dark"] .dashboard-group-copy strong,
html.dark .dashboard-group-copy strong,
html.dark-theme .dashboard-group-copy strong,
html[data-theme="dark"] .dashboard-group-copy strong {
    color: #f8fafc;
}

body.dark .dashboard-showcase-title p,
body.dark-theme .dashboard-showcase-title p,
body[data-theme="dark"] .dashboard-showcase-title p,
html.dark .dashboard-showcase-title p,
html.dark-theme .dashboard-showcase-title p,
html[data-theme="dark"] .dashboard-showcase-title p,
body.dark .dashboard-group-copy small,
body.dark-theme .dashboard-group-copy small,
body[data-theme="dark"] .dashboard-group-copy small,
html.dark .dashboard-group-copy small,
html.dark-theme .dashboard-group-copy small,
html[data-theme="dark"] .dashboard-group-copy small {
    color: #aab4c8;
}

body.dark .dashboard-title-icon,
body.dark-theme .dashboard-title-icon,
body[data-theme="dark"] .dashboard-title-icon,
html.dark .dashboard-title-icon,
html.dark-theme .dashboard-title-icon,
html[data-theme="dark"] .dashboard-title-icon,
body.dark .dashboard-group-medal,
body.dark-theme .dashboard-group-medal,
body[data-theme="dark"] .dashboard-group-medal,
html.dark .dashboard-group-medal,
html.dark-theme .dashboard-group-medal,
html[data-theme="dark"] .dashboard-group-medal {
    background: rgba(30, 41, 59, .92);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 12px 24px rgba(0,0,0,.22);
}

body.dark .dashboard-vip-pill,
body.dark-theme .dashboard-vip-pill,
body[data-theme="dark"] .dashboard-vip-pill,
html.dark .dashboard-vip-pill,
html.dark-theme .dashboard-vip-pill,
html[data-theme="dark"] .dashboard-vip-pill,
body.dark .dashboard-group-spotlight,
body.dark-theme .dashboard-group-spotlight,
body[data-theme="dark"] .dashboard-group-spotlight,
html.dark .dashboard-group-spotlight,
html.dark-theme .dashboard-group-spotlight,
html[data-theme="dark"] .dashboard-group-spotlight {
    border-color: rgba(121, 109, 246, .28);
    background: linear-gradient(135deg, rgba(30,41,59,.92), rgba(17,24,39,.92));
    color: #a99dff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 12px 26px rgba(0,0,0,.22);
}

body.dark .dashboard-performer-card,
body.dark-theme .dashboard-performer-card,
body[data-theme="dark"] .dashboard-performer-card,
html.dark .dashboard-performer-card,
html.dark-theme .dashboard-performer-card,
html[data-theme="dark"] .dashboard-performer-card {
    border-color: rgba(148, 163, 184, .18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 16px 32px rgba(0,0,0,.25);
}

body.dark .dashboard-performer-card-rose,
body.dark-theme .dashboard-performer-card-rose,
body[data-theme="dark"] .dashboard-performer-card-rose,
html.dark .dashboard-performer-card-rose,
html.dark-theme .dashboard-performer-card-rose,
html[data-theme="dark"] .dashboard-performer-card-rose {
    background: linear-gradient(135deg, rgba(80, 24, 43, .96), rgba(31, 41, 55, .96));
}

body.dark .dashboard-performer-card-blue,
body.dark-theme .dashboard-performer-card-blue,
body[data-theme="dark"] .dashboard-performer-card-blue,
html.dark .dashboard-performer-card-blue,
html.dark-theme .dashboard-performer-card-blue,
html[data-theme="dark"] .dashboard-performer-card-blue {
    background: linear-gradient(135deg, rgba(15, 54, 84, .96), rgba(31, 41, 55, .96));
}

body.dark .dashboard-performer-card-green,
body.dark-theme .dashboard-performer-card-green,
body[data-theme="dark"] .dashboard-performer-card-green,
html.dark .dashboard-performer-card-green,
html.dark-theme .dashboard-performer-card-green,
html[data-theme="dark"] .dashboard-performer-card-green {
    background: linear-gradient(135deg, rgba(15, 75, 52, .96), rgba(31, 41, 55, .96));
}

body.dark .dashboard-performer-card-violet,
body.dark-theme .dashboard-performer-card-violet,
body[data-theme="dark"] .dashboard-performer-card-violet,
html.dark .dashboard-performer-card-violet,
html.dark-theme .dashboard-performer-card-violet,
html[data-theme="dark"] .dashboard-performer-card-violet {
    background: linear-gradient(135deg, rgba(50, 38, 92, .96), rgba(31, 41, 55, .96));
}

body.dark #dashboardPerformerProfileModal .modal-content,
body.dark-theme #dashboardPerformerProfileModal .modal-content,
body[data-theme="dark"] #dashboardPerformerProfileModal .modal-content,
html.dark #dashboardPerformerProfileModal .modal-content,
html.dark-theme #dashboardPerformerProfileModal .modal-content,
html[data-theme="dark"] #dashboardPerformerProfileModal .modal-content,
body.dark #dashboardGroupProfileModal .modal-content,
body.dark-theme #dashboardGroupProfileModal .modal-content,
body[data-theme="dark"] #dashboardGroupProfileModal .modal-content,
html.dark #dashboardGroupProfileModal .modal-content,
html.dark-theme #dashboardGroupProfileModal .modal-content,
html[data-theme="dark"] #dashboardGroupProfileModal .modal-content {
    background: #111827;
    color: #e5e7eb;
}

body.dark #dashboardPerformerProfileModal .modal-title,
body.dark-theme #dashboardPerformerProfileModal .modal-title,
body[data-theme="dark"] #dashboardPerformerProfileModal .modal-title,
html.dark #dashboardPerformerProfileModal .modal-title,
html.dark-theme #dashboardPerformerProfileModal .modal-title,
html[data-theme="dark"] #dashboardPerformerProfileModal .modal-title,
body.dark #dashboardGroupProfileModal .modal-title,
body.dark-theme #dashboardGroupProfileModal .modal-title,
body[data-theme="dark"] #dashboardGroupProfileModal .modal-title,
html.dark #dashboardGroupProfileModal .modal-title,
html.dark-theme #dashboardGroupProfileModal .modal-title,
html[data-theme="dark"] #dashboardGroupProfileModal .modal-title,
body.dark .dashboard-profile-modal-hero h3,
body.dark-theme .dashboard-profile-modal-hero h3,
body[data-theme="dark"] .dashboard-profile-modal-hero h3,
html.dark .dashboard-profile-modal-hero h3,
html.dark-theme .dashboard-profile-modal-hero h3,
html[data-theme="dark"] .dashboard-profile-modal-hero h3,
body.dark .dashboard-profile-details-title,
body.dark-theme .dashboard-profile-details-title,
body[data-theme="dark"] .dashboard-profile-details-title,
html.dark .dashboard-profile-details-title,
html.dark-theme .dashboard-profile-details-title,
html[data-theme="dark"] .dashboard-profile-details-title,
body.dark .dashboard-profile-detail strong,
body.dark-theme .dashboard-profile-detail strong,
body[data-theme="dark"] .dashboard-profile-detail strong,
html.dark .dashboard-profile-detail strong,
html.dark-theme .dashboard-profile-detail strong,
html[data-theme="dark"] .dashboard-profile-detail strong,
body.dark .dashboard-group-modal-head h3,
body.dark-theme .dashboard-group-modal-head h3,
body[data-theme="dark"] .dashboard-group-modal-head h3,
html.dark .dashboard-group-modal-head h3,
html.dark-theme .dashboard-group-modal-head h3,
html[data-theme="dark"] .dashboard-group-modal-head h3,
body.dark .dashboard-group-member-main strong,
body.dark-theme .dashboard-group-member-main strong,
body[data-theme="dark"] .dashboard-group-member-main strong,
html.dark .dashboard-group-member-main strong,
html.dark-theme .dashboard-group-member-main strong,
html[data-theme="dark"] .dashboard-group-member-main strong {
    color: #f8fafc;
}

body.dark .dashboard-profile-modal-hero p,
body.dark-theme .dashboard-profile-modal-hero p,
body[data-theme="dark"] .dashboard-profile-modal-hero p,
html.dark .dashboard-profile-modal-hero p,
html.dark-theme .dashboard-profile-modal-hero p,
html[data-theme="dark"] .dashboard-profile-modal-hero p,
body.dark .dashboard-profile-detail span,
body.dark-theme .dashboard-profile-detail span,
body[data-theme="dark"] .dashboard-profile-detail span,
html.dark .dashboard-profile-detail span,
html.dark-theme .dashboard-profile-detail span,
html[data-theme="dark"] .dashboard-profile-detail span,
body.dark .dashboard-group-member-main span,
body.dark-theme .dashboard-group-member-main span,
body[data-theme="dark"] .dashboard-group-member-main span,
html.dark .dashboard-group-member-main span,
html.dark-theme .dashboard-group-member-main span,
html[data-theme="dark"] .dashboard-group-member-main span,
body.dark .dashboard-group-member-score span,
body.dark-theme .dashboard-group-member-score span,
body[data-theme="dark"] .dashboard-group-member-score span,
html.dark .dashboard-group-member-score span,
html.dark-theme .dashboard-group-member-score span,
html[data-theme="dark"] .dashboard-group-member-score span,
body.dark .dashboard-group-member-meta span,
body.dark-theme .dashboard-group-member-meta span,
body[data-theme="dark"] .dashboard-group-member-meta span,
html.dark .dashboard-group-member-meta span,
html.dark-theme .dashboard-group-member-meta span,
html[data-theme="dark"] .dashboard-group-member-meta span {
    color: #aab4c8;
}

body.dark .dashboard-profile-modal-stats div,
body.dark-theme .dashboard-profile-modal-stats div,
body[data-theme="dark"] .dashboard-profile-modal-stats div,
html.dark .dashboard-profile-modal-stats div,
html.dark-theme .dashboard-profile-modal-stats div,
html[data-theme="dark"] .dashboard-profile-modal-stats div,
body.dark .dashboard-profile-detail,
body.dark-theme .dashboard-profile-detail,
body[data-theme="dark"] .dashboard-profile-detail,
html.dark .dashboard-profile-detail,
html.dark-theme .dashboard-profile-detail,
html[data-theme="dark"] .dashboard-profile-detail,
body.dark .dashboard-profile-empty,
body.dark-theme .dashboard-profile-empty,
body[data-theme="dark"] .dashboard-profile-empty,
html.dark .dashboard-profile-empty,
html.dark-theme .dashboard-profile-empty,
html[data-theme="dark"] .dashboard-profile-empty,
body.dark .dashboard-group-modal-head,
body.dark-theme .dashboard-group-modal-head,
body[data-theme="dark"] .dashboard-group-modal-head,
html.dark .dashboard-group-modal-head,
html.dark-theme .dashboard-group-modal-head,
html[data-theme="dark"] .dashboard-group-modal-head,
body.dark .dashboard-group-member-card,
body.dark-theme .dashboard-group-member-card,
body[data-theme="dark"] .dashboard-group-member-card,
html.dark .dashboard-group-member-card,
html.dark-theme .dashboard-group-member-card,
html[data-theme="dark"] .dashboard-group-member-card {
    border-color: rgba(148, 163, 184, .18);
    background: #1f2937;
}

body.dark .dashboard-group-member-meta,
body.dark-theme .dashboard-group-member-meta,
body[data-theme="dark"] .dashboard-group-member-meta,
html.dark .dashboard-group-member-meta,
html.dark-theme .dashboard-group-member-meta,
html[data-theme="dark"] .dashboard-group-member-meta {
    border-top-color: rgba(148, 163, 184, .18);
}

.dashboard-group-avatar {
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    transition: transform .18s ease, z-index .18s ease;
}

.dashboard-group-avatar:hover,
.dashboard-group-avatar:focus {
    position: relative;
    z-index: 5;
    transform: translateY(-8px) scale(1.08);
}

.dashboard-group-avatars {
    overflow: visible;
    padding-top: 8px;
    padding-bottom: 8px;
}

.dashboard-group-modal-hero {
    overflow: hidden;
    border: 1px solid rgba(121,109,246,.16);
    border-radius: 14px;
    background: #fff;
}

.dashboard-group-modal-cover {
    min-height: 120px;
    background:
        radial-gradient(circle at 12% 0%, rgba(121,109,246,.22), transparent 26%),
        radial-gradient(circle at 86% 18%, rgba(0,197,213,.20), transparent 28%),
        linear-gradient(135deg, #dfeeff, #f6f0ff 58%, #fff);
}

.dashboard-group-modal-hero .dashboard-group-modal-head {
    margin-top: -22px;
    border: 0;
    border-radius: 0;
    background: rgba(255,255,255,.92);
}

.dashboard-group-modal-count {
    margin-left: auto;
    padding: 10px 14px;
    border: 1px solid rgba(121,109,246,.16);
    border-radius: 12px;
    color: #6459ee;
    font-size: 13px;
    font-weight: 950;
    white-space: nowrap;
}

.dashboard-group-member-card {
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.dashboard-group-member-card:hover,
.dashboard-group-member-card:focus {
    border-color: rgba(121,109,246,.35);
    box-shadow: 0 14px 28px rgba(31,40,95,.10);
    transform: translateY(-2px);
}

.dashboard-group-member-profile {
    grid-column: 1 / -1;
    justify-self: start;
    min-height: 30px;
    padding: 7px 12px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #6d5df6, #7b4dff);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

body.dark .dashboard-performer-card::before,
body.dark-theme .dashboard-performer-card::before,
body[data-theme="dark"] .dashboard-performer-card::before,
html.dark .dashboard-performer-card::before,
html.dark-theme .dashboard-performer-card::before,
html[data-theme="dark"] .dashboard-performer-card::before {
    background:
        radial-gradient(circle at 86% 2%, rgba(255,255,255,.10), transparent 24%),
        linear-gradient(120deg, rgba(255,255,255,0), rgba(255,255,255,.06));
}

body.dark .dashboard-card-art,
body.dark-theme .dashboard-card-art,
body[data-theme="dark"] .dashboard-card-art,
html.dark .dashboard-card-art,
html.dark-theme .dashboard-card-art,
html[data-theme="dark"] .dashboard-card-art {
    opacity: .58;
    filter: drop-shadow(0 10px 14px rgba(0,0,0,.22));
}

body.dark .dashboard-sparkle,
body.dark-theme .dashboard-sparkle,
body[data-theme="dark"] .dashboard-sparkle,
html.dark .dashboard-sparkle,
html.dark-theme .dashboard-sparkle,
html[data-theme="dark"] .dashboard-sparkle {
    opacity: .48;
}

body.dark .dashboard-group-modal-hero,
body.dark-theme .dashboard-group-modal-hero,
body[data-theme="dark"] .dashboard-group-modal-hero,
html.dark .dashboard-group-modal-hero,
html.dark-theme .dashboard-group-modal-hero,
html[data-theme="dark"] .dashboard-group-modal-hero {
    border-color: rgba(148,163,184,.18);
    background: #111827;
}

body.dark .dashboard-group-modal-cover,
body.dark-theme .dashboard-group-modal-cover,
body[data-theme="dark"] .dashboard-group-modal-cover,
html.dark .dashboard-group-modal-cover,
html.dark-theme .dashboard-group-modal-cover,
html[data-theme="dark"] .dashboard-group-modal-cover {
    background:
        radial-gradient(circle at 12% 0%, rgba(121,109,246,.24), transparent 28%),
        radial-gradient(circle at 86% 18%, rgba(0,197,213,.16), transparent 30%),
        linear-gradient(135deg, #0f172a, #111827 60%, #181528);
}

body.dark .dashboard-group-modal-hero .dashboard-group-modal-head,
body.dark-theme .dashboard-group-modal-hero .dashboard-group-modal-head,
body[data-theme="dark"] .dashboard-group-modal-hero .dashboard-group-modal-head,
html.dark .dashboard-group-modal-hero .dashboard-group-modal-head,
html.dark-theme .dashboard-group-modal-hero .dashboard-group-modal-head,
html[data-theme="dark"] .dashboard-group-modal-hero .dashboard-group-modal-head {
    background: rgba(17,24,39,.94);
}

body.dark .dashboard-group-modal-count,
body.dark-theme .dashboard-group-modal-count,
body[data-theme="dark"] .dashboard-group-modal-count,
html.dark .dashboard-group-modal-count,
html.dark-theme .dashboard-group-modal-count,
html[data-theme="dark"] .dashboard-group-modal-count {
    border-color: rgba(121,109,246,.28);
    color: #a99dff;
    background: rgba(30,41,59,.92);
}

.dashboard-group-modal-cover {
    position: relative;
    display: block;
    min-height: 190px;
    background:
        linear-gradient(180deg, rgba(15,23,42,.05), rgba(15,23,42,.30)),
        radial-gradient(circle at 16% 18%, rgba(121,109,246,.34), transparent 22%),
        radial-gradient(circle at 82% 10%, rgba(0,197,213,.28), transparent 26%),
        linear-gradient(135deg, #d9edff 0%, #efe9ff 56%, #ffffff 100%);
}

.dashboard-group-modal-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, transparent 0 35%, rgba(255,255,255,.24) 36% 42%, transparent 43% 100%),
        repeating-linear-gradient(135deg, rgba(255,255,255,.18) 0 2px, transparent 2px 18px);
    opacity: .75;
}

.dashboard-group-modal-hero .dashboard-group-modal-head {
    margin-top: 0;
}

body.dark .dashboard-card-art,
body.dark-theme .dashboard-card-art,
body[data-theme="dark"] .dashboard-card-art,
html.dark .dashboard-card-art,
html.dark-theme .dashboard-card-art,
html[data-theme="dark"] .dashboard-card-art {
    color: rgba(2, 6, 23, .62) !important;
    opacity: .62;
    filter: none;
    text-shadow: 0 1px 0 rgba(255,255,255,.04);
}

body.dark .dashboard-sparkle,
body.dark-theme .dashboard-sparkle,
body[data-theme="dark"] .dashboard-sparkle,
html.dark .dashboard-sparkle,
html.dark-theme .dashboard-sparkle,
html[data-theme="dark"] .dashboard-sparkle {
    color: rgba(2, 6, 23, .55) !important;
    opacity: .75;
    text-shadow: 0 1px 0 rgba(255,255,255,.04);
}

body.dark .dashboard-group-modal-cover,
body.dark-theme .dashboard-group-modal-cover,
body[data-theme="dark"] .dashboard-group-modal-cover,
html.dark .dashboard-group-modal-cover,
html.dark-theme .dashboard-group-modal-cover,
html[data-theme="dark"] .dashboard-group-modal-cover {
    min-height: 190px;
    background:
        linear-gradient(180deg, rgba(2,6,23,.18), rgba(2,6,23,.72)),
        radial-gradient(circle at 16% 18%, rgba(121,109,246,.28), transparent 24%),
        radial-gradient(circle at 82% 10%, rgba(0,197,213,.16), transparent 28%),
        linear-gradient(135deg, #111827 0%, #0f172a 58%, #181528 100%);
}

body.dark .dashboard-group-modal-cover::after,
body.dark-theme .dashboard-group-modal-cover::after,
body[data-theme="dark"] .dashboard-group-modal-cover::after,
html.dark .dashboard-group-modal-cover::after,
html.dark-theme .dashboard-group-modal-cover::after,
html[data-theme="dark"] .dashboard-group-modal-cover::after {
    background:
        linear-gradient(120deg, transparent 0 35%, rgba(255,255,255,.07) 36% 42%, transparent 43% 100%),
        repeating-linear-gradient(135deg, rgba(255,255,255,.045) 0 2px, transparent 2px 18px);
    opacity: 1;
}

.dashboard-status-section {
    width: 100%;
    display: grid;
    gap: 8px;
}

.dashboard-status-section + .dashboard-status-section {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(148,163,184,.22);
}

.dashboard-status-title {
    display: block;
    color: #1f2937;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.dashboard-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

body.dark .dashboard-status-title,
body.dark-theme .dashboard-status-title,
body[data-theme="dark"] .dashboard-status-title,
html.dark .dashboard-status-title,
html.dark-theme .dashboard-status-title,
html[data-theme="dark"] .dashboard-status-title {
    color: #f8fafc;
}

#dashboardPerformerProfileModal {
    z-index: 1095;
}

.dashboard-group-avatars,
.dashboard-group-avatar {
    overflow: visible !important;
}

.dashboard-group-avatar {
    transition: transform .18s ease, filter .18s ease, z-index .18s ease;
    position: relative;
}

.dashboard-group-avatar:hover,
.dashboard-group-avatar:focus-visible {
    transform: translateY(-9px) scale(1.04) !important;
    z-index: 12;
    filter: drop-shadow(0 12px 18px rgba(31,40,95,.20));
}

.dashboard-group-modal-hero {
    overflow: hidden !important;
    border-radius: 18px !important;
}

.dashboard-group-modal-cover {
    display: block !important;
    position: relative !important;
    height: clamp(240px, 28vw, 320px) !important;
    min-height: 240px !important;
    flex: 0 0 auto !important;
    overflow: hidden !important;
    background:
        linear-gradient(180deg, rgba(15,23,42,.08), rgba(15,23,42,.42)),
        radial-gradient(circle at 18% 18%, rgba(121,109,246,.34), transparent 24%),
        radial-gradient(circle at 80% 8%, rgba(0,197,213,.24), transparent 28%),
        linear-gradient(135deg, #1a1a2e 0%, #16213e 56%, #0f3460 100%) !important;
}

.dashboard-group-modal-cover::before {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 16px;
    background: url('assets/images/1stPlaceIconImage.png') center / 98px 98px no-repeat;
    opacity: .12;
    filter: drop-shadow(0 16px 32px rgba(121,109,246,.18));
    z-index: 1;
}

.dashboard-group-modal-cover::after {
    z-index: 2;
    pointer-events: none;
}

.dashboard-group-modal-hero .dashboard-group-modal-head {
    position: relative;
    z-index: 3;
    margin-top: -48px !important;
    margin-left: 18px;
    margin-right: 18px;
    margin-bottom: 18px;
    border-radius: 16px !important;
    box-shadow: 0 18px 38px rgba(31,40,95,.15);
}

body.dark .dashboard-performer-card::before,
body.dark-theme .dashboard-performer-card::before,
body[data-theme="dark"] .dashboard-performer-card::before,
html.dark .dashboard-performer-card::before,
html.dark-theme .dashboard-performer-card::before,
html[data-theme="dark"] .dashboard-performer-card::before {
    background:
        radial-gradient(circle at 86% 2%, rgba(0,0,0,.46), transparent 24%),
        linear-gradient(120deg, rgba(0,0,0,0), rgba(0,0,0,.36)) !important;
}

body.dark .dashboard-card-art,
body.dark-theme .dashboard-card-art,
body[data-theme="dark"] .dashboard-card-art,
html.dark .dashboard-card-art,
html.dark-theme .dashboard-card-art,
html[data-theme="dark"] .dashboard-card-art,
body.dark .dashboard-sparkle,
body.dark-theme .dashboard-sparkle,
body[data-theme="dark"] .dashboard-sparkle,
html.dark .dashboard-sparkle,
html.dark-theme .dashboard-sparkle,
html[data-theme="dark"] .dashboard-sparkle {
    color: rgba(0,0,0,.62) !important;
    opacity: .82 !important;
    filter: none !important;
    text-shadow: 0 1px 0 rgba(255,255,255,.035) !important;
}

body.dark .dashboard-group-modal-cover,
body.dark-theme .dashboard-group-modal-cover,
body[data-theme="dark"] .dashboard-group-modal-cover,
html.dark .dashboard-group-modal-cover,
html.dark-theme .dashboard-group-modal-cover,
html[data-theme="dark"] .dashboard-group-modal-cover {
    height: clamp(240px, 28vw, 320px) !important;
    min-height: 240px !important;
    background:
        linear-gradient(180deg, rgba(2,6,23,.24), rgba(2,6,23,.82)),
        radial-gradient(circle at 18% 18%, rgba(20,26,41,.94), transparent 26%),
        radial-gradient(circle at 80% 8%, rgba(17,24,39,.88), transparent 30%),
        linear-gradient(135deg, #0a0a14 0%, #0b0d1f 58%, #0f0a1f 100%) !important;
}

body.dark .dashboard-group-modal-cover::before,
body.dark-theme .dashboard-group-modal-cover::before,
body[data-theme="dark"] .dashboard-group-modal-cover::before,
html.dark .dashboard-group-modal-cover::before,
html.dark-theme .dashboard-group-modal-cover::before,
html[data-theme="dark"] .dashboard-group-modal-cover::before {
    opacity: .08;
    filter: none;
}

body.dark .dashboard-group-modal-cover::after,
body.dark-theme .dashboard-group-modal-cover::after,
body[data-theme="dark"] .dashboard-group-modal-cover::after,
html.dark .dashboard-group-modal-cover::after,
html.dark-theme .dashboard-group-modal-cover::after,
html[data-theme="dark"] .dashboard-group-modal-cover::after {
    background:
        linear-gradient(120deg, transparent 0 35%, rgba(0,0,0,.32) 36% 42%, transparent 43% 100%),
        repeating-linear-gradient(135deg, rgba(0,0,0,.18) 0 2px, transparent 2px 18px) !important;
    opacity: .95 !important;
}

@media(max-width: 991px) {
    .main-content-container.dashboard-manual-layout {
        min-height: 0 !important;
    }

    .dashboard-manual-layout .dashboard-positioned-card {
        position: static !important;
        width: auto !important;
        height: auto !important;
        margin-bottom: 24px !important;
    }
}

.dashboard-group-modal-avatar {
    width: 88px;
    height: 88px;
    flex: 0 0 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(255,255,255,.95);
    box-shadow: 0 12px 28px rgba(31,40,95,.18);
    overflow: hidden;
}

.dashboard-group-modal-avatar img,
.dashboard-group-modal-avatar div {
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.dark .dashboard-group-modal-avatar,
html[data-theme="dark"] .dashboard-group-modal-avatar {
    background: rgba(30,41,59,.92);
}


/* Performer profile popup: stat boxes were unreadable in dark mode */
body.dark .dashboard-profile-modal-stats strong,
body.dark-theme .dashboard-profile-modal-stats strong,
body[data-theme="dark"] .dashboard-profile-modal-stats strong,
html.dark .dashboard-profile-modal-stats strong,
html.dark-theme .dashboard-profile-modal-stats strong,
html[data-theme="dark"] .dashboard-profile-modal-stats strong {
    color: #f8fafc;
}

body.dark .dashboard-profile-modal-stats span,
body.dark-theme .dashboard-profile-modal-stats span,
body[data-theme="dark"] .dashboard-profile-modal-stats span,
html.dark .dashboard-profile-modal-stats span,
html.dark-theme .dashboard-profile-modal-stats span,
html[data-theme="dark"] .dashboard-profile-modal-stats span {
    color: #a8b3c7;
}


/* Ticket & To-Do status widget */
#estar_order_summary_chart { display: flex; flex-direction: column; gap: 12px; }
.dstat-block { padding: 11px 14px; border: 1px solid rgba(128,128,128,.22); border-radius: 12px; }
.dstat-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.dstat-head h4 { margin: 0 0 2px; font-size: 16px; font-weight: 700; color: inherit; }
.dstat-head span { font-size: 12px; opacity: .7; }
.dstat-pct { text-align: right; }
.dstat-pct strong { display: block; font-size: 24px; line-height: 1; font-weight: 800; color: inherit; }
.dstat-bar { display: flex; height: 10px; overflow: hidden; border-radius: 999px; background: rgba(128,128,128,.22); }
.dstat-seg { display: block; height: 100%; }
.dstat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.dstat-cell { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.dstat-cell strong { font-size: 17px; font-weight: 700; color: inherit; }
.dstat-cell span { font-size: 11px; opacity: .7; }
.dstat-dot { width: 8px; height: 8px; border-radius: 50%; margin-bottom: 3px; }
.dstat-pending { background: #f59e0b; }
.dstat-process { background: #3b82f6; }
.dstat-completed { background: #22c55e; }
.dstat-rejected { background: #ef4444; }

/* =========================================================
   UPCOMING RANK: pehle text, phir logo
========================================================= */
[data-todo-level-card] .tr-level-next img {
    order: 99 !important;
    margin: 0 !important;
}

[data-todo-level-card] .tr-level-next:has(> img),
[data-todo-level-card] .tr-level-next :has(> img) {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}