


.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.profile-main {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.profile-avatar-large {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a9eff, #667eea);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(74, 158, 255, 0.3);
    flex-shrink: 0;
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-info-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-name {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.profile-role {
    font-size: 13px;
    color: #8a8fa3;
}

.profile-settings-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(74, 158, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.profile-settings-btn:active {
    transform: scale(0.9);
    background: rgba(74, 158, 255, 0.1);
}

.profile-joined {
    font-size: 13px;
    color: #8a8fa3;
    padding: 12px 16px;
    background: rgba(10, 14, 39, 0.4);
    border-radius: 12px;
}

.profile-joined span {
    color: #4a9eff;
    font-weight: 600;
}


.top-workers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
}

.top-workers-list::-webkit-scrollbar {
    width: 4px;
}

.top-workers-list::-webkit-scrollbar-track {
    background: rgba(10, 14, 39, 0.4);
    border-radius: 2px;
}

.top-workers-list::-webkit-scrollbar-thumb {
    background: rgba(74, 158, 255, 0.3);
    border-radius: 2px;
}

.top-workers-list::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 158, 255, 0.5);
}

.top-worker-card {
    background: rgba(10, 14, 39, 0.6);
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(74, 158, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-worker-card.top-1 {
    border-color: rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.05);
}

.top-worker-card.top-2 {
    border-color: rgba(192, 192, 192, 0.3);
    background: rgba(192, 192, 192, 0.05);
}

.top-worker-card.top-3 {
    border-color: rgba(205, 127, 50, 0.3);
    background: rgba(205, 127, 50, 0.05);
}

.top-worker-rank {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(74, 158, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #4a9eff;
    flex-shrink: 0;
}

.top-worker-card.top-1 .top-worker-rank {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
}

.top-worker-card.top-2 .top-worker-rank {
    background: rgba(192, 192, 192, 0.2);
    color: #C0C0C0;
}

.top-worker-card.top-3 .top-worker-rank {
    background: rgba(205, 127, 50, 0.2);
    color: #CD7F32;
}

.top-worker-info {
    flex: 1;
    min-width: 0;
}

.top-worker-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-worker-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.top-worker-stat {
    font-size: 11px;
    color: #8a8fa3;
}

.top-worker-stat span {
    color: #4a9eff;
    font-weight: 600;
}

.top-worker-earnings {
    font-size: 15px;
    font-weight: 700;
    color: #2ecc71;
    flex-shrink: 0;
}


#personalStats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.personal-stat-card {
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid rgba(74, 158, 255, 0.08);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
}

.personal-stat-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.personal-stat-label {
    font-size: 13px;
    color: #8a8fa3;
    font-weight: 500;
}

.personal-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}


.period-switcher {
    position: relative;
    display: inline-block;
}

.period-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid rgba(74, 158, 255, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.period-btn:hover {
    background: rgba(74, 158, 255, 0.2);
    border-color: rgba(74, 158, 255, 0.5);
}

.period-btn.open {
    background: linear-gradient(135deg, #4a9eff, #667eea);
    border-color: transparent;
}

.period-icon {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.period-btn.open .period-icon {
    transform: rotate(180deg);
}

.period-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 140px;
    background: rgba(15, 20, 50, 0.95);
    border: 1px solid rgba(74, 158, 255, 0.3);
    border-radius: 10px;
    padding: 4px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.period-option {
    padding: 10px 16px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.period-option:hover {
    background: rgba(74, 158, 255, 0.2);
}

.profile-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}

.profile-section-header h2 {
    margin: 0;
    font-size: 18px;
    color: #fff;
    flex-shrink: 0;
}


.treasury-section {
    margin-top: 20px;
    padding: 16px;
    background: rgba(74, 158, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(74, 158, 255, 0.2);
}

.treasury-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.treasury-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.treasury-value {
    font-size: 18px;
    font-weight: 700;
    color: #4a9eff;
}

